ThinkGeo.com    |     Documentation    |     Premium Support

Help with projection (read prj from shp programmatically)

 


      Suppose I want to import many esri's shp files above another shp file,
      Those shp files include prj files.
     
      From the forum I found the following information:
 
gis.thinkgeo.com/Support/Dis...fault.aspx
     
      Proj4Projection proj4 = new Proj4Projection();
      proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
      proj4.ExternalProjectionParametersString = Proj4Projection.GetEsriParametersString(102718);
 
      the id number 4326 is found by spatialreference.org/ref/esri/102718/
 
      or looking for c:\Program Files (x86)\ThinkGeo\Map Suite Desktop Full Edition 3.0\Documentation\Projections\*.rtf files
     
      Is there function like Int GetIdByShpPrj(string sPrjFileName) ?

Zhu,


Thanks for your post and interests in our product.


I understand that that the projection well know text is very common used attached with Shape file to describe the projection information. 

home.gdal.org/projects/opengis/wktproblems.html


I know there is a open source projection which take up tones of codes to transfer from WKT projection string to SRID in the OGC codplex, while we did not integrate it into our product because its size. You can have a try if you want.


Any more questions just feel free to let me know.


Thanks.


Yale