Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've obtained the following file from the US Census Bureau.

ftp://ftp2.census.gov/geo/tiger/TIGER2012/UNSD/tl_2012_42_unsd.zip

I've been working with these files and have noticed some issues with the results so I decided to investigate the tools I was using to see if they have something to do with the problem.

Steps to reproduce the problem:

Download the census shapefile from ftp://ftp2.census.gov/geo/tiger/TIGER2012/UNSD/tl_2012_42_unsd.zip.

Open shapefile with qgis.

Select Plugins>mmqgis>Transfer>Geometry Export to CSV file.

Pick a location to save the file.

Using QGIS, select Plugins>mmqgis>Transfer>Geometry Import FROM CSV file.

It will take a moment to run and then it will display the imported data. The issue should be fairly evident as there are several large polygons that are missing.

Does anyone know what is causing this? Thanks.

share|improve this question
add comment

1 Answer

I can confirm your problem. Only 457 of 501 objects get imported (even in QGIS Master).

The reason is that the other objects are multipolygons. If you try to export to sqlite, you get an error message that the geometry type of the missing objects is invalid. But importing in spatialite_gui tells me all geometries are valid.

Looks like mmqgis does not allow multipolygons for import. You can try to split them up before exporting.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.