1) don't load invalid geoms
2) don't output idmap for primary ids