[Geoserver-devel] add a geotiff granule to an imagemosaic

Hi,

I have followed the discussion only occasionally (and it could have stayed in geoserver-users), and I do not use image mosaics not rest myself for anything else than testing when users have troubles with them, but:

  • Do I remember right that the files to send should be zipped? At least you have sometimes used. xxx.tif.zip

  • It may not be good idea to name the archive as xxx.tif.zip. I would have a try with xxx.zip.

-Jukka Rahkonen-

(attachments)

tagCloud.png

···

Jean Pommier wrote:

Or is it something wrong in my cURL command ? I’ve tried many things. The command that gave me this log was :

curl -v -u admin:geoserver -XPOST -H “Content-type: text/plain” -d “file:///var/lib/tomcat7/webapps/geoserver26RC1/data/data/pigeo/eumet/mpe_20140910_0002.tif” “http://localhost:8081/geoserver26RC1/rest/workspaces/pigeo/coveragestores/eumetsat/external.imagemosaic?recalculate=nativebbox,latlonbbox”

Le 12/09/2014 10:25, Rahkonen Jukka (Tike) a écrit :

Hi,

Is recognized to be something else that geotiff? Log show rows like

2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.

java.io.IOException: Unrecognized file (file extension doesn’t match)

Or do I read the log too literally? Anyway, if error says “file extension doesn’t match” it would be nice to know what the extension is.

-Jukka Rahkonen-

Daniele Romagnoli wrote:

Hi,

could you please run a gdalinfo on your geotiff file and report the output?

Regards,
Daniele

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

Ing. Daniele Romagnoli
Senior 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


On Fri, Sep 12, 2014 at 9:36 AM, Jean Pommier <jean.pommier@…4067…> wrote:

Hi devs,

Sorry to bother you on this list, but I may need someone who knows geoserver/geotools internals to help me understand what happens.
I already have an open post on the users list, nothing useful comes out.
I’m trying to add a granule to an existing imagemosaic using cURL. I’m using geotiff images.
When I issue the post command that should insert the image in the mosaic and recalculate the index, nothing positive happens.
Setting the logs to geotools dev level, I get a weird (to me) error message (see below)
Can someone help me understand what happens, please ?
Thanks

Jean Pommier

Geoserver log :
2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,312 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:53,312 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,313 INFO [org.geoserver.catalog.rest] - PUT file, mimetype: text/plain
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - InterpolationConverterFactory can be applied from Strings to Interpolation only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - CRSConverterFactory can be applied from Strings to CRS only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - InterpolationConverterFactory can be applied from Strings to Interpolation only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - CRSConverterFactory can be applied from Strings to CRS only.
2014-09-12 07:28:53,326 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
2014-09-12 07:28:53,328 INFO [org.geotools.gce.imagemosaic] - Now indexing file mpe_20140910_0002.tif
2014-09-12 07:28:53,328 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:53,329 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,333 TRACE [org.geotools.factory] - ENTRY (GridCoverageFactory)
2014-09-12 07:28:53,333 TRACE [org.geotools.factory] - RETURN (GridCoverageFactory): found implementation GridCoverageFactory.
2014-09-12 07:28:53,333 DEBUG [org.geotools.gce.gtopo30] - Unrecognized file (file extension doesn’t match)
java.io.IOException: Unrecognized file (file extension doesn’t match)
at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:231)
at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:161)
at org.geotools.gce.gtopo30.GTopo30Format.accepts(GTopo30Format.java:177)
at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:188)
at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:241)
at org.geotools.gce.imagemosaic.ImageMosaicWalker.handleFile(ImageMosaicWalker.java:148)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.handleFile(ImageMosaicDirectoryWalker.java:98)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.(ImageMosaicDirectoryWalker.java:114)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.harvestCalculation(ImageMosaicReader.java:405)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.access$100(ImageMosaicReader.java:187)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource$1.harvest(ImageMosaicReader.java:202)
at org.geotools.gce.imagemosaic.ImageMosaicReader.harvest(ImageMosaicReader.java:1250)
at org.geoserver.catalog.CoverageDimensionCustomizerReader$CoverageDimensionCustomizerStructuredReader.harvest(CoverageDimensionCustomizerReader.java:121)
at org.geoserver.catalog.rest.CoverageStoreFileResource.handlePost(CoverageStoreFileResource.java:89)
at org.restlet.Finder.handle(Finder.java:296)
at org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:37)
at org.restlet.Filter.doHandle(Filter.java:105)
at org.restlet.Filter.handle(Filter.java:134)
at org.restlet.Router.handle(Router.java:444)
at org.geoserver.rest.RESTDispatcher$1.handle(RESTDispatcher.java:204)
at com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
at org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:86)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:134)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2014-09-12 07:28:53,334 TRACE [org.geotools.factory] - ENTRY (GridCoverageFactory)
2014-09-12 07:28:53,334 TRACE [org.geotools.factory] - RETURN (GridCoverageFactory): found implementation GridCoverageFactory.
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - ENTRY (DatumFactory, DATUM_FACTORY)
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - RETURN (DatumFactory, DATUM_FACTORY): found implementation DatumAliases.
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - ENTRY (MathTransformFactory, MATH_TRANSFORM_FACTORY)
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - RETURN (MathTransformFactory, MATH_TRANSFORM_FACTORY): found implementation DefaultMathTransformFactory.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,344 DEBUG [org.geotools.referencing.factory] - Échec dans la fabrique primaire: Aucun code “EPSG:4326” de l’autorité “European Petroleum Survey Group” n’a été trouvé pour un objet de type “IdentifiedObject”. La fabrique secondaire sera interrogée.
2014-09-12 07:28:53,344 DEBUG [org.geotools.coverage.grid.io.imageio.geotiff] - Logging tiePoints:
Tie point
Raster Space point (0.0, 0.0, 0.0)
Model Space point (-57.5202723635, 57.5202723635, 0.0)
Logging pixScales:
Pixel Scale
scaleX=0.056144727 is set? true
scaleY=0.056144727 is set? true
scaleZ=0.0 is set? false

2014-09-12 07:28:53,345 DEBUG [org.geotools.gce.imagemosaic] - Nothing to process!!!

Jean Pommier – pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@…4067…
Web : www.pi-geosolutions.fr


Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk


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

Jean Pommier – pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@…4067…
Web : www.pi-geosolutions.fr

Thanks for your answer Jukka,

If you prefer, we can follow this discussion on the user list, I don’t mind.

To come back to the cURL command, it’s not that obvious (and I’d be glad to contribute improving the REST documentation with additionnal examples or tutorials when I get it to work) :

  • refering to http://docs.geoserver.org/2.5.x/en/user/rest/api/coveragestores.html it seems that external.imagemosaic shouldn’t even be available. Only file.imagemosaic.
  • refering to http://docs.geoserver.org/2.5.x/en/user/rest/examples/curl.html, it seems that external.imagemosaic would be the correct way, using a POST, to harvest new granules.
  • I couldn’t make it work using a zip file
  • I tried also pointing to a directory as documented on the cURL example : curl -v -u admin:geoserver -XPOST -H “Content-type: text/plain” -d “file:///home/jean/tmp/imagemosaic-time/new” “http://localhost:8081/geoserver26RC1/rest/workspaces/pigeo/coveragestores/eumet2/external.imagemosaic?recalculate=nativebbox,latlonbbox”
    the ‘new’ directory containing a geotiff file, same naming schema.
    The geoserver log is quite similar :
    2014-09-12 09:38:18,170 INFO [org.geotools.gce.imagemosaic] - Now indexing file mpe_20140911_0047.tif
    2014-09-12 09:38:18,171 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
    2014-09-12 09:38:18,171 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
    2014-09-12 09:38:18,172 TRACE [org.geotools.factory] - ENTRY (GridCoverageFactory)
    2014-09-12 09:38:18,172 TRACE [org.geotools.factory] - RETURN (GridCoverageFactory): found implementation GridCoverageFactory.
    2014-09-12 09:38:18,172 DEBUG [org.geotools.gce.gtopo30] - Unrecognized file (file extension doesn’t match)
    java.io.IOException: Unrecognized file (file extension doesn’t match)
    at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:231)
    at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:161)
(attachments)

tagCloud.png

···

Le 12/09/2014 11:13, Rahkonen Jukka (Tike) a écrit :

Hi,

I have followed the discussion only occasionally (and it could have stayed in geoserver-users), and I do not use image mosaics not rest myself for anything else than testing when users have troubles with them, but:

  • Do I remember right that the files to send should be zipped? At least you have sometimes used. xxx.tif.zip

  • It may not be good idea to name the archive as xxx.tif.zip. I would have a try with xxx.zip.

-Jukka Rahkonen-

Jean Pommier wrote:

Or is it something wrong in my cURL command ? I’ve tried many things. The command that gave me this log was :

curl -v -u admin:geoserver -XPOST -H “Content-type: text/plain” -d “file:///var/lib/tomcat7/webapps/geoserver26RC1/data/data/pigeo/eumet/mpe_20140910_0002.tif” “http://localhost:8081/geoserver26RC1/rest/workspaces/pigeo/coveragestores/eumetsat/external.imagemosaic?recalculate=nativebbox,latlonbbox”

Le 12/09/2014 10:25, Rahkonen Jukka (Tike) a écrit :

Hi,

Is recognized to be something else that geotiff? Log show rows like

2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.

java.io.IOException: Unrecognized file (file extension doesn’t match)

Or do I read the log too literally? Anyway, if error says “file extension doesn’t match” it would be nice to know what the extension is.

-Jukka Rahkonen-

Daniele Romagnoli wrote:

Hi,

could you please run a gdalinfo on your geotiff file and report the output?

Regards,
Daniele

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

Ing. Daniele Romagnoli
Senior 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


On Fri, Sep 12, 2014 at 9:36 AM, Jean Pommier <jean.pommier@anonymised.com> wrote:

Hi devs,

Sorry to bother you on this list, but I may need someone who knows geoserver/geotools internals to help me understand what happens.
I already have an open post on the users list, nothing useful comes out.
I’m trying to add a granule to an existing imagemosaic using cURL. I’m using geotiff images.
When I issue the post command that should insert the image in the mosaic and recalculate the index, nothing positive happens.
Setting the logs to geotools dev level, I get a weird (to me) error message (see below)
Can someone help me understand what happens, please ?
Thanks

Jean Pommier

Geoserver log :
2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:05,019 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,312 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:53,312 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,313 INFO [org.geoserver.catalog.rest] - PUT file, mimetype: text/plain
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - InterpolationConverterFactory can be applied from Strings to Interpolation only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - CRSConverterFactory can be applied from Strings to CRS only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - InterpolationConverterFactory can be applied from Strings to Interpolation only.
2014-09-12 07:28:53,321 DEBUG [org.geotools.util] - CRSConverterFactory can be applied from Strings to CRS only.
2014-09-12 07:28:53,326 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
2014-09-12 07:28:53,328 INFO [org.geotools.gce.imagemosaic] - Now indexing file mpe_20140910_0002.tif
2014-09-12 07:28:53,328 DEBUG [org.geotools.gce.arcgrid] - ArcGridFormatFactory is availaible.
2014-09-12 07:28:53,329 DEBUG [org.geotools.gce.arcgrid] - Creating a new ArcGriFormat.
2014-09-12 07:28:53,333 TRACE [org.geotools.factory] - ENTRY (GridCoverageFactory)
2014-09-12 07:28:53,333 TRACE [org.geotools.factory] - RETURN (GridCoverageFactory): found implementation GridCoverageFactory.
2014-09-12 07:28:53,333 DEBUG [org.geotools.gce.gtopo30] - Unrecognized file (file extension doesn’t match)
java.io.IOException: Unrecognized file (file extension doesn’t match)
at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:231)
at org.geotools.gce.gtopo30.GTopo30Reader.(GTopo30Reader.java:161)
at org.geotools.gce.gtopo30.GTopo30Format.accepts(GTopo30Format.java:177)
at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:188)
at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:241)
at org.geotools.gce.imagemosaic.ImageMosaicWalker.handleFile(ImageMosaicWalker.java:148)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.handleFile(ImageMosaicDirectoryWalker.java:98)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.(ImageMosaicDirectoryWalker.java:114)
at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.harvestCalculation(ImageMosaicReader.java:405)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.access$100(ImageMosaicReader.java:187)
at org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource$1.harvest(ImageMosaicReader.java:202)
at org.geotools.gce.imagemosaic.ImageMosaicReader.harvest(ImageMosaicReader.java:1250)
at org.geoserver.catalog.CoverageDimensionCustomizerReader$CoverageDimensionCustomizerStructuredReader.harvest(CoverageDimensionCustomizerReader.java:121)
at org.geoserver.catalog.rest.CoverageStoreFileResource.handlePost(CoverageStoreFileResource.java:89)
at org.restlet.Finder.handle(Finder.java:296)
at org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:37)
at org.restlet.Filter.doHandle(Filter.java:105)
at org.restlet.Filter.handle(Filter.java:134)
at org.restlet.Router.handle(Router.java:444)
at org.geoserver.rest.RESTDispatcher$1.handle(RESTDispatcher.java:204)
at com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
at org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:86)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:134)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2014-09-12 07:28:53,334 TRACE [org.geotools.factory] - ENTRY (GridCoverageFactory)
2014-09-12 07:28:53,334 TRACE [org.geotools.factory] - RETURN (GridCoverageFactory): found implementation GridCoverageFactory.
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - ENTRY (DatumFactory, DATUM_FACTORY)
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - RETURN (DatumFactory, DATUM_FACTORY): found implementation DatumAliases.
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - ENTRY (MathTransformFactory, MATH_TRANSFORM_FACTORY)
2014-09-12 07:28:53,339 TRACE [org.geotools.factory] - RETURN (MathTransformFactory, MATH_TRANSFORM_FACTORY): found implementation DefaultMathTransformFactory.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,341 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,342 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
2014-09-12 07:28:53,343 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
2014-09-12 07:28:53,344 DEBUG [org.geotools.referencing.factory] - Échec dans la fabrique primaire: Aucun code “EPSG:4326” de l’autorité “European Petroleum Survey Group” n’a été trouvé pour un objet de type “IdentifiedObject”. La fabrique secondaire sera interrogée.
2014-09-12 07:28:53,344 DEBUG [org.geotools.coverage.grid.io.imageio.geotiff] - Logging tiePoints:
Tie point
Raster Space point (0.0, 0.0, 0.0)
Model Space point (-57.5202723635, 57.5202723635, 0.0)
Logging pixScales:
Pixel Scale
scaleX=0.056144727 is set? true
scaleY=0.056144727 is set? true
scaleZ=0.0 is set? false

2014-09-12 07:28:53,345 DEBUG [org.geotools.gce.imagemosaic] - Nothing to process!!!

Jean Pommier – pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr


Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk


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

Jean Pommier – pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

Jean Pommier – pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr