Re: [gdal-dev] Unable to obtain EPSG from OGRSpatialReference

2017-06-07 Thread Mike K
Nik Sands, thank you, you nailed it. That was my problem: the UTM coordinate system I was expecting is projected, so I needed to use those functions you listed with the "PROJCS" key to get the proper EPSG code. Once I parsed out the code, I get 32617 as expected. Thank you all! -- View th

[gdal-dev] Unable to obtain EPSG from OGRSpatialReference

2017-06-06 Thread Mike K
Hello, I have a situation in which I would like to load up a set of polygons, and determine what EPSG code they are using. I am testing with a simple square polygon in upstate New York using the UTM projection, saved into a Shapefile . I am able to create my dataset, layer, and read the geometry