reprojection error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

reprojection error

falcone.giuseppe@gmail.com
Hi all,

I have a problem with geoserver raster reprojection.

I have a raster layer derived from an image mosaic store. In layer configuration, in the native srs field appears 'UNKNOWN' and label 'TMBOAGA2' on the right with these values:

PROJCS["TMBOAGA2",
GEOGCS["MONTE MARIO",
DATUM["MONTEMAR",
SPHEROID["INT24", 6378388.0, 297.0]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Longitude", EAST],
AXIS["Latitude", NORTH]],
PROJECTION["Transverse_Mercator"],
PARAMETER["central_meridian", 15.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["scale_factor", 0.9996],
PARAMETER["false_easting", 2520000.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["x", EAST],
AXIS["y", NORTH]]


Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and any selection I set in srs handling field,  the layer is drawn with a vertical displacement of about 150 meters down.

Any idea about this?

Thanks a lot.

Giuseppe



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: reprojection error

Stefano Iacovella

2015-01-26 10:12 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and any selection I set in srs handling field,  the layer is drawn with a vertical displacement of about 150 meters down.

Any idea about this?

Thanks a lot.

Ciao Giuseppe,

Did you try with EPSG:3004 as declared SRS?

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: reprojection error

falcone.giuseppe@gmail.com
Thanks for the quick response.

The behaviour is the same.
The geoserver version is 2.6.1

I see these metadata of a single tile with an other software:

FILENAME=404060e.ecw
DESCRIPTION=404060e.ecw
UPPER LEFT X=2443320.000
UPPER LEFT Y=4600240.000
LOWER RIGHT X=2450540.000
LOWER RIGHT Y=4594410.000
WEST LONGITUDE=14° 04' 50.2118" E
NORTH LATITUDE=41° 33' 00.2937" N
EAST LONGITUDE=14° 10' 04.2429" E
SOUTH LATITUDE=41° 29' 48.9016" N
UL CORNER LONGITUDE=14° 04' 50.2118" E
UL CORNER LATITUDE=41° 32' 57.9194" N
UR CORNER LONGITUDE=14° 10' 01.8200" E
UR CORNER LATITUDE=41° 33' 00.2937" N
LR CORNER LONGITUDE=14° 10' 04.2429" E
LR CORNER LATITUDE=41° 29' 51.2716" N
LL CORNER LONGITUDE=14° 04' 52.8864" E
LL CORNER LATITUDE=41° 29' 48.9016" N
PROJ_DESC=Transverse Mercator / ROME / meters
PROJ_DATUM=ROME 1940 [MONTE MARIO] (GREENWICH)
PROJ_UNITS=meters
COVERED AREA=42.093 sq km
NUM COLUMNS=14440
NUM ROWS=11660
NUM BANDS=3
COLOR BANDS=0,1,2
PIXEL WIDTH=0.5 meters
PIXEL HEIGHT=0.5 meters
BIT DEPTH=24
PROJ_NAME=TMBOAGA2
DATUM_NAME=MONTEMAR
TARGET_COMPRESSION=1:4

Giuseppe

2015-01-26 10:24 GMT+01:00 Stefano Iacovella <[hidden email]>:

2015-01-26 10:12 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and any selection I set in srs handling field,  the layer is drawn with a vertical displacement of about 150 meters down.

Any idea about this?

Thanks a lot.

Ciao Giuseppe,

Did you try with EPSG:3004 as declared SRS?

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: reprojection error

Stefano Iacovella
150 meters is an entity compatible with the datum shift error.
You can try  to override the EPSG:3004 SRS with the following values:

3004=PROJCS["Monte Mario / Italy zone 2",GEOGCS["Monte Mario",DATUM["Monte_Mario",SPHEROID["International 1924",6378388,297,AUTHORITY["EPSG","7022"]],TOWGS84[-168.6, -34, -38.6, -0.374, -0.679, -1.379, -
9.48],AUTHORITY["EPSG","6265"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4265"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",15],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",2520000],PARAMETER["false_northing",0],AUTHORITY["EPSG","3004"],AXIS["X",EAST],AXIS["Y",NORTH]]

You need to had the previous string in the user_projections/epsg_overrides.properties file inside the GeoServer data dir

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2015-01-26 10:44 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Thanks for the quick response.

The behaviour is the same.
The geoserver version is 2.6.1

I see these metadata of a single tile with an other software:

FILENAME=404060e.ecw
DESCRIPTION=404060e.ecw
UPPER LEFT X=2443320.000
UPPER LEFT Y=4600240.000
LOWER RIGHT X=2450540.000
LOWER RIGHT Y=4594410.000
WEST LONGITUDE=14° 04' 50.2118" E
NORTH LATITUDE=41° 33' 00.2937" N
EAST LONGITUDE=14° 10' 04.2429" E
SOUTH LATITUDE=41° 29' 48.9016" N
UL CORNER LONGITUDE=14° 04' 50.2118" E
UL CORNER LATITUDE=41° 32' 57.9194" N
UR CORNER LONGITUDE=14° 10' 01.8200" E
UR CORNER LATITUDE=41° 33' 00.2937" N
LR CORNER LONGITUDE=14° 10' 04.2429" E
LR CORNER LATITUDE=41° 29' 51.2716" N
LL CORNER LONGITUDE=14° 04' 52.8864" E
LL CORNER LATITUDE=41° 29' 48.9016" N
PROJ_DESC=Transverse Mercator / ROME / meters
PROJ_DATUM=ROME 1940 [MONTE MARIO] (GREENWICH)
PROJ_UNITS=meters
COVERED AREA=42.093 sq km
NUM COLUMNS=14440
NUM ROWS=11660
NUM BANDS=3
COLOR BANDS=0,1,2
PIXEL WIDTH=0.5 meters
PIXEL HEIGHT=0.5 meters
BIT DEPTH=24
PROJ_NAME=TMBOAGA2
DATUM_NAME=MONTEMAR
TARGET_COMPRESSION=1:4

Giuseppe

2015-01-26 10:24 GMT+01:00 Stefano Iacovella <[hidden email]>:

2015-01-26 10:12 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and any selection I set in srs handling field,  the layer is drawn with a vertical displacement of about 150 meters down.

Any idea about this?

Thanks a lot.

Ciao Giuseppe,

Did you try with EPSG:3004 as declared SRS?

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: reprojection error

falcone.giuseppe@gmail.com
Also this setting has failed. 
I created epsg_overrides.properties in user_projections and restarted tomcat. 
Also I have tried with 'force declared' and 'reproject native to declared' in SRS handling (declared srs is 3004)

Giuseppe

2015-01-26 11:00 GMT+01:00 Stefano Iacovella <[hidden email]>:
150 meters is an entity compatible with the datum shift error.
You can try  to override the EPSG:3004 SRS with the following values:

3004=PROJCS["Monte Mario / Italy zone 2",GEOGCS["Monte Mario",DATUM["Monte_Mario",SPHEROID["International 1924",6378388,297,AUTHORITY["EPSG","7022"]],TOWGS84[-168.6, -34, -38.6, -0.374, -0.679, -1.379, -
9.48],AUTHORITY["EPSG","6265"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4265"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",15],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",2520000],PARAMETER["false_northing",0],AUTHORITY["EPSG","3004"],AXIS["X",EAST],AXIS["Y",NORTH]]

You need to had the previous string in the user_projections/epsg_overrides.properties file inside the GeoServer data dir

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2015-01-26 10:44 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Thanks for the quick response.

The behaviour is the same.
The geoserver version is 2.6.1

I see these metadata of a single tile with an other software:

FILENAME=404060e.ecw
DESCRIPTION=404060e.ecw
UPPER LEFT X=2443320.000
UPPER LEFT Y=4600240.000
LOWER RIGHT X=2450540.000
LOWER RIGHT Y=4594410.000
WEST LONGITUDE=14° 04' 50.2118" E
NORTH LATITUDE=41° 33' 00.2937" N
EAST LONGITUDE=14° 10' 04.2429" E
SOUTH LATITUDE=41° 29' 48.9016" N
UL CORNER LONGITUDE=14° 04' 50.2118" E
UL CORNER LATITUDE=41° 32' 57.9194" N
UR CORNER LONGITUDE=14° 10' 01.8200" E
UR CORNER LATITUDE=41° 33' 00.2937" N
LR CORNER LONGITUDE=14° 10' 04.2429" E
LR CORNER LATITUDE=41° 29' 51.2716" N
LL CORNER LONGITUDE=14° 04' 52.8864" E
LL CORNER LATITUDE=41° 29' 48.9016" N
PROJ_DESC=Transverse Mercator / ROME / meters
PROJ_DATUM=ROME 1940 [MONTE MARIO] (GREENWICH)
PROJ_UNITS=meters
COVERED AREA=42.093 sq km
NUM COLUMNS=14440
NUM ROWS=11660
NUM BANDS=3
COLOR BANDS=0,1,2
PIXEL WIDTH=0.5 meters
PIXEL HEIGHT=0.5 meters
BIT DEPTH=24
PROJ_NAME=TMBOAGA2
DATUM_NAME=MONTEMAR
TARGET_COMPRESSION=1:4

Giuseppe

2015-01-26 10:24 GMT+01:00 Stefano Iacovella <[hidden email]>:

2015-01-26 10:12 GMT+01:00 Giuseppe Falcone <[hidden email]>:
Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and any selection I set in srs handling field,  the layer is drawn with a vertical displacement of about 150 meters down.

Any idea about this?

Thanks a lot.

Ciao Giuseppe,

Did you try with EPSG:3004 as declared SRS?

Cheers,

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas




------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users