dear all,
I want to let users insert and symbolize their own point data;
to get it I let insert CSV in postGIS. What I need then is to create (via
PHP) for each user a new SLD, taking some parameters previously inserted in
postGIS.
Here begin the problems; even if the Style is previously defined for this
featureType, if I change it externally (via php or ajax/javascript or
whatever), do I have to "reload" the featureType with the "new" style? (the
name hasn't changed!).
I've tried to manually change ( symbol from star to circle) the SLD and
refreshing the mapBuilder viewer it doesn't change; I've to go the GeoServer
interface and refresh the FeatureType.
Do I need to reload the Catalog ??
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
Thanks!
Pere
--
View this message in context: http://www.nabble.com/dynamical-change-of-SLDs-and-Styles-tp16036739p16036739.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Not directly answering your question, but if it's for each user then you
may want to consider using an external SLD, like so
http://geoserver.org/display/GEOSDOC/SLD+Intro+Tutorial?focusedCommentId=1278609#comment-1278609
(Sorry, couldn't find the page where I learned about this feature, maybe
someone else remembers)
-Arne
pere roca wrote:
dear all,
I want to let users insert and symbolize their own point data; to get it I let insert CSV in postGIS. What I need then is to create (via
PHP) for each user a new SLD, taking some parameters previously inserted in
postGIS.
Here begin the problems; even if the Style is previously defined for this
featureType, if I change it externally (via php or ajax/javascript or
whatever), do I have to "reload" the featureType with the "new" style? (the
name hasn't changed!).
I've tried to manually change ( symbol from star to circle) the SLD and
refreshing the mapBuilder viewer it doesn't change; I've to go the GeoServer
interface and refresh the FeatureType.
Do I need to reload the Catalog ??
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
Thanks!
Pere
Hi Pere,
Yes, any changes to the underlying SLD file will not take place until they are loaded from disk again, which only occurs when you load the catalog.
I am not sure if you have seen this:
http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
But its really the only way we currently have to do this automatically from a script.
Hope that helps.
-Justin
pere roca wrote:
dear all,
I want to let users insert and symbolize their own point data; to get it I let insert CSV in postGIS. What I need then is to create (via
PHP) for each user a new SLD, taking some parameters previously inserted in
postGIS.
Here begin the problems; even if the Style is previously defined for this
featureType, if I change it externally (via php or ajax/javascript or
whatever), do I have to "reload" the featureType with the "new" style? (the
name hasn't changed!).
I've tried to manually change ( symbol from star to circle) the SLD and
refreshing the mapBuilder viewer it doesn't change; I've to go the GeoServer
interface and refresh the FeatureType.
Do I need to reload the Catalog ??
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
Thanks!
Pere
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
dear Andrea and Justin,
thanks for your comments. Justin, you are right external SLDs are
the best option in this case. I've created a php script that takes
database info and "echoes" the SLD file; my GetMap request points to
this PHP, passing some parameters.
A much more simple example of this can be checked in : (you can
change for any US state)
http://edit.csic.es/geoserver/wms?bbox=-127.61,23.73,-64.0,50.59&format=image/png&request=GetMap&width=800&height=317&srs=EPSG:4326&sld=http://edit.csic.es/gmap/states_filter.php?state=Florida
cheers,
Pere
2008/3/13, Justin Deoliveira <jdeolive@anonymised.com>:
Hi Pere,
Yes, any changes to the underlying SLD file will not take place until
they are loaded from disk again, which only occurs when you load the
catalog.
I am not sure if you have seen this:
http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
But its really the only way we currently have to do this automatically
from a script.
Hope that helps.
-Justin
pere roca wrote:
> dear all,
> I want to let users insert and symbolize their own point data;
> to get it I let insert CSV in postGIS. What I need then is to create (via
> PHP) for each user a new SLD, taking some parameters previously inserted in
> postGIS.
> Here begin the problems; even if the Style is previously defined for this
> featureType, if I change it externally (via php or ajax/javascript or
> whatever), do I have to "reload" the featureType with the "new" style? (the
> name hasn't changed!).
>
> I've tried to manually change ( symbol from star to circle) the SLD and
> refreshing the mapBuilder viewer it doesn't change; I've to go the GeoServer
> interface and refresh the FeatureType.
>
> Do I need to reload the Catalog ??
> http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
>
> Thanks!
> Pere
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com