Hi,gentlemen
I'd like to add a featureType and SLD to GeoServer from my java code
but not from web pages that geoserver provides. Is this possible?
Should I start from GeoTools?
With a glance of DataFeatureTypesNewAction and SLDWizardAction, It is
possible to reach this from java codes. But it some complex to follow
for MVC architecture.Would you please show me a piece of CLEAN java
codes to reach this?
Or,can i just change some configuration files,e.g.
capabilities.xml,for what i need?
Thanks for your kindly response.
Alex
Hi Alex,
Currently there is no real programmatic interface for working with the GeoServer catalog. However, some clever folks have managed to work around this problem.
What the solution amounts to manually modifying the geoserver configuration files, catalog.xml and services.xml. And copying any data ( like styles ) into the geoserver data directory.
If you are not familiar with the geoserver data directory structure more info here:
http://docs.codehaus.org/display/GEOSDOC/GeoServer+Data+Directory
Once all the configuration is in place you can follow instructions here on how to kick start geoserver to load the new configuration.
Not elegant by any means, but folks have gotten it to work
-Justin
Alex Chew wrote:
Hi,gentlemen
I'd like to add a featureType and SLD to GeoServer from my java code
but not from web pages that geoserver provides. Is this possible?
Should I start from GeoTools?
With a glance of DataFeatureTypesNewAction and SLDWizardAction, It is
possible to reach this from java codes. But it some complex to follow
for MVC architecture.Would you please show me a piece of CLEAN java
codes to reach this?
Or,can i just change some configuration files,e.g.
capabilities.xml,for what i need?
Thanks for your kindly response.
Alex
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1004,45f62490292894820651628!
--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org
And: http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog shows you explicitly how to kick GeoServer to make it reload any modified configuration files.
Chris
Justin Deoliveira wrote:
Hi Alex,
Currently there is no real programmatic interface for working with the GeoServer catalog. However, some clever folks have managed to work around this problem.
What the solution amounts to manually modifying the geoserver configuration files, catalog.xml and services.xml. And copying any data ( like styles ) into the geoserver data directory.
If you are not familiar with the geoserver data directory structure more info here:
http://docs.codehaus.org/display/GEOSDOC/GeoServer+Data+Directory
Once all the configuration is in place you can follow instructions here on how to kick start geoserver to load the new configuration.
Not elegant by any means, but folks have gotten it to work
-Justin
Alex Chew wrote:
Hi,gentlemen
I'd like to add a featureType and SLD to GeoServer from my java code
but not from web pages that geoserver provides. Is this possible?
Should I start from GeoTools?
With a glance of DataFeatureTypesNewAction and SLDWizardAction, It is
possible to reach this from java codes. But it some complex to follow
for MVC architecture.Would you please show me a piece of CLEAN java
codes to reach this?
Or,can i just change some configuration files,e.g.
capabilities.xml,for what i need?
Thanks for your kindly response.
Alex
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org