Hello List,<br><br>This probably something of a naive question -- please don't hesitate to point out what "should be obvious."<br><br>I'm creating polygon-filled shapefiles using data extracted from a geotif. To do this, I'm using the OGRLinearRing::SetPoints() method and then adding the ring(s) to a polygon.
<br><br>My question is, what coordinate system should I be setting the points with? I want the resulting shapefile to still be georeferenced. The way I see it, I have 3 options, one of which is clearly wrong:<br><br>1. Pixel/Line coordinates from the image. (wrong)
<br>2. Linear geo coords, resulting from GDALApplyGeoTransform.<br>3. Angular geo coords, resulting from something like:<br><br>/**********************************************************/<br>OGRSpatialReference* m_TargetSRS = m_SourceSRS.CloneGeogCS();
<br><br>m_LinearCoordToAngCoord = OGRCreateCoordinateTransformation(<br> &m_SourceSRS,<br> m_TargetSRS );<br><br>m_LinearCoordToAngCoord->Transform(...)
<br>/**********************************************************/<br>where m_SourceSRS is set from the GeoTiff.<br><br>Will my shapefiles be properly georeferenced if I use the second method (and a .prj file is used)?<br><br>
Will the be properly georeferenced if I use the third (without a .prj file)?<br><br>Also, what's the correct names for the "linear geo coords" and "angular geo coords"?<br><br>Thanks!<br>- Dan<br>