1

I recently downloaded the entirety of the SGMC dataset from the USGS site. The website for this data is at https://www.sciencebase.gov/catalog/item/5888bf4fe4b05ccb964bab9d. I selected the shapefile zip file version of the data. Within that zip file is a file entitled "SGMC_Geology.shp". So far so good. When I displayed that in the map view everything displays correctly. This is where the good news ends.

I tried to clip this file to some state boundary data I had previously downloaded from the state of South Dakota. The clipping happened very fast and I discovered that the resulting shape file output was entirely empty. No data and no tables. I noticed a message that indicated the geometry in the source file was not correct. So I ran the QGIS fix tool(using the structure option), redisplayed the data and was rewarded with a proper display. When I again clipped to the South Dakota border shapefile I again obtained an empty result.

I then selected all of the South Dakota entries in the original fixed SGMC shapefile, exported them using the 'export selected' option on the layer and was rewarded with a complete file. But, the exporting option resulted in file with 'invalid projection' when it should have contained the original 102039 Albers projection. This was very frustrating.

I ran the assign projection tool and it failed and left the layer with an invalid projection. So I removed the layer and reselected the clipped SGMC file and the layer yielded a "?" to the right of the layer name. I clicked on this and assigned "102039" as the projection and "magically" it projected onto the state boundary shape in my project(which was using a 32614 projection. And by the way this answering session for the "?" asked me to select the projection method from one to the other. I selected the top option and it worked.

So, is QGIS flakey, or is the SGMC shapefile flakey, or is the reprojection tool not working properly or is the fix tool not working properly or is the export selected features not working properly.

3
  • 3
    When you opened the shapefile, did you assign the ESRI:102039 projection for the layer before doing anything else?
    – user30184
    Commented Jun 6 at 17:49
  • 4
    Did you unzip all 8 files SGMC_Geology.* from the zip file before adding data into QGIS? Or at least .shp, .shx, .dbf, and .prj? Into which format did you export data? I had no problem with opening data, selecting features with the select tool, and exporting selected features into a GeoJSON file.
    – user30184
    Commented Jun 6 at 18:06
  • 1
    I did unzip all the files to a directory where I loaded them as a layer to QGIS. After downloading and displaying the data the first time I discovered I run into a geometry problem on a few of the states. So I ran the fix tool and proceeded. All worked except for South Dakota ....that was a monster .... Commented Jun 12 at 19:43

0

Browse other questions tagged or ask your own question.