gvSIG bugs #4531

Projections for Portugal are not always recognized correctly

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

Status:Closed% Done:

0%

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

Description

ESRI projections for Portugal are not always well recognized, because gvSIG searches only in the EPSG Registry when trying to match a projection file with an existing CRS code (see #4290).

Some discussions about it:
http://osgeo-org.1560.x6.nabble.com/EPSG-codes-for-Portugal-td5322515.html
http://osgeo-org.1560.x6.nabble.com/Fwd-Projections-for-Portugal-td5325819.html
https://forum.openstreetmap.org/viewtopic.php?id=57756

Sample data:
https://drive.google.com/file/d/0ByBJp2L6jySyWGh1dVh5Q2R5S1E/view?usp=sharing

I attach a patch in order to make faster projection file recognition than in gvSIG 2.3.1, detecting also ESRI WKTs when there's not an exact match in EPSG Registry. Generally, if the SR code is less of 33000 the SR is interpreted as an EPSG one (with transformation parameters predefined in GDAL), otherwise as an ESRI one (without transformation parameters). So the user has to set the transformation parameters in the last case.
The patch also contains an update of the esri.script file derived from the esri-proj-codes project (https://github.com/Esri/esri-proj-codes), licensed under the Apache License, Version 2.0.

esri_wkt.patch Magnifier (2.65 MB) Antonio Falciano, 07/10/2017 04:11 PM

gvSIG-desktop-2.4.0-org.gvsig.projection.app.jcrs-2.1.71-SNAPSHOT-2125-testing-all-all-j1_7.gvspkg - Package for testing purpose (8.03 MB) Antonio Falciano, 07/10/2017 04:12 PM

portugal_240_patch.jpg - Sample data in gvSIG 2.4.0.2827 (patched) (75.3 KB) Antonio Falciano, 07/10/2017 04:15 PM

portugal_231.jpg - Sample data in gvSIG 2.3.1 (63.6 KB) Antonio Falciano, 07/10/2017 04:15 PM

gvSIG-desktop-2.4.0-org.gvsig.projection.app.jcrs-2.1.71-SNAPSHOT-2125-testing-all-all-j1_7.gvspki - Package index for testing purpose (1.04 KB) Antonio Falciano, 07/13/2017 06:11 PM

Projections for Portugal.zip - Sample data used (1.41 MB) Antonio Falciano, 08/17/2017 05:19 PM

1836
1837

Related issues

Related to Application: gvSIG desktop - gvSIG bugs #4869: Falla al cargar una capa intentando reconocer la proyeccion. Closed 05/03/2018
Related to Application: gvSIG desktop - gvSIG bugs #4832: The PRJ file is not recognized correctly Closed 03/05/2018

Associated revisions

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

refs #4531, Patch provided by Antonio Falciano. Better recognition of the ESRI projections for Portugal

Revision 841
Added by Joaquín del Cerro Murciano almost 6 years ago

refs #4531, #4832, #4869 . Refactorizado la identificacion de la proyeccion a partir de WKT. Se han recuperado algoritmos de varias versiones anteriores y se aplican uno tras otro hasta obtener una identificacion de la proyeccion.

History

#1 Updated by Antonio Falciano almost 7 years ago

I've forgotten to attach also the package index (gvspki).

#2 Updated by Antonio Falciano almost 7 years ago

  • Status changed from New to Fixed

#3 Updated by Antonio Falciano almost 7 years ago

  • Status changed from Fixed to New

#4 Updated by Antonio Falciano over 6 years ago

gvSIG 2.3.1 & gvSIG 2.4.0 without patch

Sample data in gvSIG 2.3.1

gvSIG 2.4.0 with patch
Sample data in gvSIG 2.4.0.2827 (patched)

#5 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-2839-RC2 (rev. org.gvsig.desktop-2.0.206)

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

  • Target version changed from 2.4.0-2839-RC2 (rev. org.gvsig.desktop-2.0.206) to 2.4.0-2835 (rev. org.gvsig.desktop-2.0.202)
  • Status changed from Awaiting response to Fixed

#7 Updated by Antonio Falciano over 6 years ago

  • Status changed from Fixed to Closed

#8 Updated by Joaquín del Cerro Murciano almost 6 years ago

  • Related to gvSIG bugs #4869: Falla al cargar una capa intentando reconocer la proyeccion. added

#9 Updated by Joaquín del Cerro Murciano almost 6 years ago

Also available in: Atom PDF