On Wed, Apr 2, 2014 at 8:03 AM, Feniks <[email protected]> wrote:

> Hey, well I managed to create a datastore and featuretype (though I had to
> copy the mapping file "manualy") with
> curl -v -u admin:geoserver -XPOST -T datastore.xml -H "Content-type:
> text/xml" http://localhost:8090/geoserver/rest/workspaces/gsml/datastores
>
> curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
> @featuretype.xml
>
> http://localhost:8090/geoserver/rest/workspaces/gsml/datastores/gsml_GeologicUnit/featuretypes
>
> Now if only I could do something similar for the mapping file ...
>

While we don't have a file management rest api, there is a embedded ftp
server
as a community module here:
http://ares.boundlessgeo.com/geoserver/2.5.x/community-latest/geoserver-2.5-SNAPSHOT-ftp-plugin.zip

It uses the same users as GeoServer and allows you to move files within the
data dir.

Also, generically speaking, it would be nice if someone could just send a
zip with
all the schemas and mapping files as a store creation "meat", just like we
can
create a shapefile store by uploading the shapefile.

Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to