Roberto,
Thank you for your fast reply and your useful tips.
>
you are welcome, please keep ML in CC to share questions and solutions
with other users (I'm FWD this mail to geoserver-mng-users ML).
> I´ve tried to use the suggested class, but I still can not understand
> how to set properties such Title of a geotiff layer before calling the
> method. Probably I´ve not found which object I should use (GSLayerEncoder
> don´t seem to let me edit those properties).
>
Well to modify that property you have to modify the resource instead of the
layer so you could use:
public boolean configureCoverage(final GSCoverageEncoder ce, final String
wsname,
final String csname)
Remember to set the GSCoverageEncoder name properly otherwise you'll get an
exception.
Carlo
>
>
> Cheers
>
>
>
> Roberto
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *carlo cancellieri
> *Sent:* Dienstag, 12. November 2013 15:45
> *To:* Ghelli Roberto
> *Cc:* [email protected]
> *Subject:* Re: [Geoserver-devel] Edit layer attributes on Geoserver via
> REST
>
>
>
> Roberto,
>
>
>
> I`m trying to modify some layer´s properties on GeoServer (vers.2.4)
> using Java objects like GeoServerRESTPublisher
> (it.geosolutions.geoserver.rest vers 1.5.x) (jre 1.6). In particular I`d
> like to update attibutes such "Title" on GeoTIFF layers. The fact is that I
> could not find the way to do it neither without unpublishing the whole
> layer and then republish it again.
>
>
>
> Using GeoServerRESTPublisher you can use the follow method to configure
> the layer:
>
>
>
> *public* *boolean* *configureLayer**(**final* String workspace*,* *final*
> String resourceName*,*
>
> *final* GSLayerEncoder layer*)* *throws* IllegalArgumentException;
>
>
>
>
>
>
>
> Note that GeoServer-Manager has it's own ML more details here:
>
> https://github.com/geosolutions-it/geoserver-manager/wiki
>
>
>
> Perhaps I could use directly some POST calls but if it already exists a
> more elegant way it would be certainly better.
>
>
>
> More details here:
>
>
> http://docs.geoserver.org/latest/en/user/rest/api/layers.html#layers-l-format
>
>
>
>
>
> Cheers,
>
> Carlo
>
>
>
>
>
> Any suggestions?
>
>
>
> thanks
>
> Ghillo
>
>
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
>
>
>
>
> --
>
> ==
>
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
>
> ==
>
>
> Dott. Carlo Cancellieri
> @cancellieric
> Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> mobile: +39 3371094494
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel