[Geoserver-users] geotiff import fails on geoserver 2.6.2

Hello,

I'm trying to import a geotiff file in geoserver 2.6.2. Previously, the same
image were successfully imported in geoserver 2.2.5. But in 2.6.2, when I
try to create the geotiff store, I get the following message :

org.geotools.data.DataSourceException
    at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:225)
    at
org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:287)
...
Caused by: org.geotools.data.DataSourceException
    at
org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:412)
    at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:212)

Here is the gdalinfo output for the file :

Driver: GTiff/GeoTIFF
Files: 201503251330_MSG3_RGB321_geotiff-1.tif
Size is 3712, 2868
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS_1984",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0],
        UNIT[,0.0174532925199433]],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",2454594.686213],
    PARAMETER["false_northing",-9640998.385694999],
    UNIT["unknown",1]]
Origin = (0.000000000000000,0.000000000000000)
Pixel Size = (2043.756208000000000,-2038.122442000000100)
Metadata:
  AREA_OR_POINT=Area

TIFFTAG_DOCUMENTNAME=D:\2met\PROCES~1\TEMPOU~1\201503251330_MSG3_RGB321_geotiff-1.tif
  TIFFTAG_SOFTWARE=@(#)ImageMagick 5.2.3 00/09/01 Q:8
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 0.0000000, 0.0000000) ( 22d 3' 0.00"W, 65d16'11.99"N)
Lower Left ( 0.000,-5845335.164) ( 22d 3' 0.00"W, 32d25'11.99"N)
Upper Right ( 7586423.044, 0.000) ( 46d 5'59.99"E, 65d16'11.99"N)
Lower Right ( 7586423.044,-5845335.164) ( 46d 5'59.99"E, 32d25'11.99"N)
Center ( 3793211.522,-2922667.582) ( 12d 1'30.00"E, 51d43'56.97"N)
Band 1 Block=3712x1 Type=Byte, ColorInterp=Red
Band 2 Block=3712x1 Type=Byte, ColorInterp=Green
Band 3 Block=3712x1 Type=Byte, ColorInterp=Blue

GeoServer info :

- version : 2.6.2
- container : Tomcat7
- OS : Suse Linux Enterprise Server 11 (x86_64)
- Native JAI : true
- Native JAI ImageIO : true

Thank you in advance for any suggestion to solve this problem.

Bruno

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geotiff-import-fails-on-geoserver-2-6-2-tp5200744.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Bruno,
can you send over a sample that we can play with?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Fri, Apr 10, 2015 at 10:14 AM, geobru <vbr@anonymised.com> wrote:

Hello,

I'm trying to import a geotiff file in geoserver 2.6.2. Previously, the same
image were successfully imported in geoserver 2.2.5. But in 2.6.2, when I
try to create the geotiff store, I get the following message :

org.geotools.data.DataSourceException
    at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:225)
    at
org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:287)
...
Caused by: org.geotools.data.DataSourceException
    at
org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:412)
    at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:212)

Here is the gdalinfo output for the file :

Driver: GTiff/GeoTIFF
Files: 201503251330_MSG3_RGB321_geotiff-1.tif
Size is 3712, 2868
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS_1984",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0],
        UNIT[,0.0174532925199433]],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",2454594.686213],
    PARAMETER["false_northing",-9640998.385694999],
    UNIT["unknown",1]]
Origin = (0.000000000000000,0.000000000000000)
Pixel Size = (2043.756208000000000,-2038.122442000000100)
Metadata:
  AREA_OR_POINT=Area

TIFFTAG_DOCUMENTNAME=D:\2met\PROCES~1\TEMPOU~1\201503251330_MSG3_RGB321_geotiff-1.tif
  TIFFTAG_SOFTWARE=@(#)ImageMagick 5.2.3 00/09/01 Q:8
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 0.0000000, 0.0000000) ( 22d 3' 0.00"W, 65d16'11.99"N)
Lower Left ( 0.000,-5845335.164) ( 22d 3' 0.00"W, 32d25'11.99"N)
Upper Right ( 7586423.044, 0.000) ( 46d 5'59.99"E, 65d16'11.99"N)
Lower Right ( 7586423.044,-5845335.164) ( 46d 5'59.99"E, 32d25'11.99"N)
Center ( 3793211.522,-2922667.582) ( 12d 1'30.00"E, 51d43'56.97"N)
Band 1 Block=3712x1 Type=Byte, ColorInterp=Red
Band 2 Block=3712x1 Type=Byte, ColorInterp=Green
Band 3 Block=3712x1 Type=Byte, ColorInterp=Blue

GeoServer info :

- version : 2.6.2
- container : Tomcat7
- OS : Suse Linux Enterprise Server 11 (x86_64)
- Native JAI : true
- Native JAI ImageIO : true

Thank you in advance for any suggestion to solve this problem.

Bruno

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geotiff-import-fails-on-geoserver-2-6-2-tp5200744.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

Of course.
Here is a sample, in attachment.
regards,

Bruno

201504100830_MSG3_IR_108_geotiff_grey.tif
<http://osgeo-org.1560.x6.nabble.com/file/n5200761/201504100830_MSG3_IR_108_geotiff_grey.tif&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geotiff-import-fails-on-geoserver-2-6-2-tp5200744p5200761.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear Bruno,
you either have to send it in a private email or open a JIRA and
attach it to it.

I would go for the firs tone.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Fri, Apr 10, 2015 at 11:28 AM, geobru <vbr@anonymised.com> wrote:

Hi Simone,

Of course.
Here is a sample, in attachment.
regards,

Bruno

201504100830_MSG3_IR_108_geotiff_grey.tif
<http://osgeo-org.1560.x6.nabble.com/file/n5200761/201504100830_MSG3_IR_108_geotiff_grey.tif&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geotiff-import-fails-on-geoserver-2-6-2-tp5200744p5200761.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Bruno,

I have investigated on the issue you reported an it seems that when changing from 2.2.5 to 2.6.2 version, GeoTools GeoTiffReader has become unable to parse CRS definition with undefined unit of measure definition.

For this reason you could open a JIRA ticket (https://osgeo-org.atlassian.net/projects/GEOS) in order to record the issue and then I would prepare a fix for it.

Is it also possible to use the sample data you sent us, or also a reduced one, in order to make a reproducible test case in GeoTools?

Regards,
Nicola Lagomarsini.

···

2015-04-10 11:32 GMT+02:00 Simone Giannecchini <simone.giannecchini@anonymised.com>:

Dear Bruno,
you either have to send it in a private email or open a JIRA and
attach it to it.

I would go for the firs tone.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Fri, Apr 10, 2015 at 11:28 AM, geobru <vbr@anonymised.com> wrote:

Hi Simone,

Of course.
Here is a sample, in attachment.
regards,

Bruno

201504100830_MSG3_IR_108_geotiff_grey.tif
<http://osgeo-org.1560.x6.nabble.com/file/n5200761/201504100830_MSG3_IR_108_geotiff_grey.tif>


View this message in context: http://osgeo-org.1560.x6.nabble.com/geotiff-import-fails-on-geoserver-2-6-2-tp5200744p5200761.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Nicola Lagomarsini
Junior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.