gvSIG bugs #4674

US Stateplane projection files are not well recognized

Added by Antonio Falciano over 6 years ago. Updated over 6 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:-
Category:CRS
Target version:2.4.0-2838 (rev. org.gvsig.desktop-2.0.205)
Severity:Minor Add-on version:
gvSIG version:2.4.0 Add-on build:
gvSIG build: Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch:Yes Hito:
Add-on name:Unknown

Description

US Stateplane projection files are not well recognized due to naming (e.g. FIPS code in ESRI wkt) and/or rounding misalignments between GDAL data and the EPSG Registry.
An example of such prj file is:

PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",2296583.333333333],PARAMETER["False_Northing",9842500.0],PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Parallel_1",30.11666666666667],PARAMETER["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin",29.66666666666667],UNIT["Foot_US",0.3048006096012192]]
(Source: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Achieving-Better-WKT-gt-EPSG-Code-Autodetection-When-Importing-Layers-to-Postgis-td5335537.html)

I attach a patch which solves the issue.

stateplane.patch Magnifier (4.09 KB) Antonio Falciano, 09/23/2017 06:26 PM

stateplane_bis.patch Magnifier (3.94 KB) Antonio Falciano, 09/26/2017 03:33 PM

Associated revisions

Revision 747
Added by Joaquín del Cerro Murciano over 6 years ago

refs #4674. Patch provided by Antonio Falciano. Fixed US Stateplane projection

Revision 748
Added by Joaquín del Cerro Murciano over 6 years ago

refs #4674. Patch provided by Antonio Falciano. Fixed US Stateplane projection

History

#1 Updated by Joaquín del Cerro Murciano over 6 years ago

  • Target version changed from 2.4.0-2850-final (rev. org.gvsig.desktop-2.0.220) to 2.4.0-2838 (rev. org.gvsig.desktop-2.0.205)

#2 Updated by Joaquín del Cerro Murciano over 6 years ago

  • Status changed from New to Fixed

#3 Updated by Antonio Falciano over 6 years ago

Hi Joaquín,
I attach an additional patch that contains further improvements and corrections, because I've discovered that the MorphToESRI() method sometimes makes not possible to export the sr to Proj4. It provides a more robust approximation.
Sorry for the annoyance.

#4 Updated by Joaquín del Cerro Murciano over 6 years ago

  • Status changed from New to Fixed

Antonio Falciano wrote:

Hi Joaquín,
I attach an additional patch that contains further improvements and corrections, because I've discovered that the MorphToESRI() method sometimes makes not possible to export the sr to Proj4. It provides a more robust approximation.
Sorry for the annoyance.

Aplicados los nuevos cambios.

#5 Updated by Antonio Falciano over 6 years ago

  • Status changed from Fixed to Closed

Thank you very much.

Also available in: Atom PDF