[OpenLayers-Dev] creating geoserver new featuretype through
openlayer
Andreas Hocevar
ahocevar at opengeo.org
Thu Sep 10 14:01:01 EDT 2009
pnguwe wrote:
> Hello,
>
> I need to create a new featuretype in geoserver from openlayer. Is it
> possible? If so, can anyone give me a url how to do it?
>
Not directly from OpenLayers, but custom javascript code can get you
there. You can use the RESTconfig extension of GeoServer to configure
it. See
http://docs.geoserver.org/1.7.x/en/user/extensions/rest/index.html to
get you started.
Once you have your new feature type, you can use WFS-T (from OpenLayers)
to create and modify features. See
http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
for an example which does that.
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Dev
mailing list