Hi Daniele,
As far as I understand from the GeoServer REST documentation I have to create a
coverageconfig.xml file with this content:<coverage>
<nativeCoverageName>NO2</nativeCoverageName>
<name>NO2</name>
</coverage>
Change the NO2 with the name of my parameter and run this in the console:curl
-v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
@"/path/to/my_coverageconfig.xml"
"http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores/empty/coverages"
I get this error message:
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> POST /geoserver/rest/workspaces/data/coveragestores/data_new/coverages
> HTTP/1.1
> Host: localhost:8080
> Authorization: Basic YWRtaW46Z2Vvc2VydmVy
> User-Agent: curl/7.47.0
> Accept: */*
> Content-type: text/xml
> Content-Length: 113
>
* upload completely sent off: 113 out of 113 bytes
< HTTP/1.1 500 Server Error
< X-Frame-Options: SAMEORIGIN
< Transfer-Encoding: chunked
< Server: Jetty(9.2.13.v20150730)
<
* Connection #0 to host localhost left intact
The specified coverageName is unavailable
Obviously I changed the name of the workspace and the coveragestore with the
ones in my geoserver.
I am not sure if the issue could be the time passed in regex format. My file
has this date passed in the name 20180218T1200Z
and I pass this time in the indexer.xml <value>[0-9]{8}T[0-9]{9}Z</value>
Kind regards,Corina
On Thursday, May 24, 2018, 2:43:14 PM GMT+1, Daniele Romagnoli
<daniele.romagn...@geo-solutions.it> wrote:
Hi Corina,
did you already take a look at the GeoServer REST documentation?
http://docs.geoserver.org/stable/en/user/rest/workspaces.html#uploading-an-empty-mosaic
Once you created an empty ImageMosaic and harvested a prototype granule I think
that you should still Configure a coverage on the mosaic (See related paragraph
sending the converageconfig.xml)
Please, let us know if that helps.
Regards,
Daniele
On Thu, May 24, 2018 at 3:13 PM, Corina Tudorache via Geoserver-users
<geoserver-users@lists.sourceforge.net> wrote:
Hi list,
I am trying to publish a layer from an imagemosaic store. I created an empty
imagemosaic store, harvested a netcdf, but when I go to "add layer" -> "add
layer from", select the workspace and the store that corresponds to my
layer, after that select publish , I get a java error.
Caused by: java.lang. IllegalArgumentException: The specified coverageName is
unavailable at
org.geotools.gce.imagemosaic. ImageMosaicReader. checkUnspecifiedCoverage(
ImageMosaicReader.java:1099)
at
org.geotools.gce.imagemosaic. ImageMosaicReader. getOriginalEnvelope(
ImageMosaicReader.java:1212)
at
org.geoserver.catalog. SingleGridCoverage2DReader. getOriginalEnvelope(
SingleGridCoverage2DReader. java:117)
at
org.geoserver.catalog. CatalogBuilder. buildCoverageInternal(
CatalogBuilder.java:1027)
at
org.geoserver.catalog. CatalogBuilder.buildCoverage( CatalogBuilder.java:1001)
at
org.geoserver.catalog. CatalogBuilder.buildCoverage( CatalogBuilder.java:961)
at
org.geoserver.web.data.layer. NewLayerPage.buildLayerInfo(
NewLayerPage.java:388)
... 113 more
After i harvested the imagemosaic I received this message:
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> POST
> /geoserver/rest/workspaces/ data/coveragestores/data_
> empty/external.imagemosaic
> HTTP/1.1
> Host: localhost:8080
> Authorization: Basic YWRtaW46Z2Vvc2VydmVy
> User-Agent: curl/7.47.0
> Accept: */*
> Content-type: text/plain
> Content-Length: 51
>
* upload completely sent off: 51 out of 51 bytes
< HTTP/1.1 202 Accepted
< X-Frame-Options: SAMEORIGIN
< Content-Length: 0
< Server: Jetty(9.2.13.v20150730)
Any help is much appreciated.
Kind regards,
Corina
--
Sent from: http://osgeo-org.1560.x6. nabble.com/GeoServer-User- f3786390.html
------------------------------ ------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
______________________________ _________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/ talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/
userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/ geoserver/wiki/Successfully-
requesting-and-integrating- new-features-and-improvements- in-GeoServer
Geoserver-users@lists. sourceforge.net
https://lists.sourceforge.net/ lists/listinfo/geoserver-users
--
Regards,Daniele Romagnoli==GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.==
Ing. Daniele RomagnoliSenior Software Engineer
GeoSolutions S.A.S.Via di Montramito 3/A55054 Massarosa (LU)Italyphone: +39
0584 962313fax: +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------AVVERTENZE AI SENSI DEL
D.Lgs. 196/2003Le 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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users