Hi Dominique, just 2 examples how I did it recently (Windows batchfile extract): In the first step I create the coveragestaor for the Image Mosaic (geotiff's in a Directory): curl -v -u %login% -XPUT -H "Content-type: text/plain" -d "file://MYDIRECTORY" " http://localhost:8080/geoserver/rest/WORKSPACENAME/coveragestores/XYZ/external.imagemosaic " The parts in caps are the ones you have to adjust in your case.
In the second step I update some of the Parameters of the coveragestore with a prepared XML: curl -v -u %login% -XPUT -H "Content-type: text/xml" -d @MYXML.xml " http://localhost:8080/geoserver/rest/WORKSPACENAME/coveragestores/XYZ/coverages/MYDIRECTORY.xml The content of the XML could be something like: <?xml version="1.0" encoding="ISO-8859-1"?> <coverage> <name>New name if you don't like the automatically generated</name> <title>New title if you don't like the automatically generated</title> <description>Generated from ImageMosaic</description> <keywords> <string>Whatever you like</string> <string>WCS</string> <string>ImageMosaic</string> </keywords> <parameters> <entry> <string>FootprintBehavior</string> <string>Transparent</string> </entry> </parameters> </coverage> I usually start by creating the whole thing manually so I can take a look at the created resources and then step by step rebuild it via REST. Does that help you? Cheers, Niko Am Di., 1. Okt. 2019 um 17:53 Uhr schrieb Bessette-Halsema, Dominique E < [email protected]>: > Thanks for the pointer. It would also be helpful to know if I could set > it as a parameter via the REST call that creates the coverage. > > > > *Dominique Bessette* > > > > *From:* Daniele Romagnoli <[email protected]> > *Sent:* Tuesday, October 1, 2019 8:40 AM > *To:* Bessette-Halsema, Dominique E <[email protected]> > *Cc:* [email protected] > *Subject:* Re: [Geoserver-users] programmatically add Footprint Behavior > > > > Hi, > > I see that last code change (so excluding documentation typo fixes and pom > tweaks) is from 2016 so I suppose it isn't supported anymore so much. > > You might want to check the geoserver-restconfig instead which is still > maintained and under development. > > https://pypi.org/project/geoserver-restconfig/ > > https://github.com/GeoNode/geoserver-restconfig > > > > I know that while GeoServer Manager was needing specific methods for > specific fields/resources, gs-restconfig is based on XML parsing instead. > > I'm not a developer of that project so I can't provide you feedbacks on > your specific question (footprint behavior). > > You may want to check that there. > > > > Cheers, > > Daniele > > > > > > > > > > On Tue, Oct 1, 2019 at 1:22 AM Bessette-Halsema, Dominique E < > [email protected]> wrote: > > Hello > > > > How do I programmatically set the Footprint Behavior to Cut for an image > mosaic layer definition? I don’t see a method in the class > > > > > https://github.com/geosolutions-it/geoserver-manager/blob/master/src/main/java/it/geosolutions/geoserver/rest/encoder/coverage/GSImageMosaicEncoder.java > > > > Thanks. > > > > Dominique Bessette > > _______________________________________________ > 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 > > > [email protected] > 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 Romagnoli > > Senior Software Engineer > > > > GeoSolutions S.A.S. > > Via di Montramito 3/A > > 55054 Massarosa (LU) > > Italy > > phone: +39 0584 962313 > > fax: +39 0584 1660272 > > > > http://www.geo-solutions.it > > http://twitter.com/geosolutions_it > > > > ------------------------------------------------------- > > > > Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE > 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si > precisa che ogni circostanza inerente alla presente email (il suo > contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è > riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il > messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra > operazione è illecita. Le sarei comunque grato se potesse darmene notizia. > > > > This email is intended only for the person or entity to which it is > addressed and may contain information that is privileged, confidential or > otherwise protected from disclosure. We remind that - as provided by > European Regulation 2016/679 “GDPR” - copying, dissemination or use of this > e-mail or the information herein by anyone other than the intended > recipient is prohibited. If you have received this email by mistake, please > notify us immediately by telephone or e-mail. > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
