[Geoserver-users] ATTENTION:SLD_BODY in GEOSERVER 1.6 RC1

For SLD_BODY, in previous versions, I used
<NamedLayer>.
In the RC1, it no longer works, should be replaced by
<UserLayer>.
And that's OK.

Hervé
--
View this message in context: http://www.nabble.com/ATTENTION%3ASLD_BODY-in-GEOSERVER-1.6-RC1-tf4948278.html#a14167645
Sent from the GeoServer - User mailing list archive at Nabble.com.

Pouldu ha scritto:

For SLD_BODY, in previous versions, I used
<NamedLayer>.
In the RC1, it no longer works, should be replaced by
<UserLayer>.
And that's OK.

Can you give an example of before and after that I can
try out? I'm interested in the full getmap call btw.
Cheers
Andrea

In previous versions to 1.6 RC1 I used this:
Creation of the stolen client-side javascript:
SLD_footer is a variable javascript to load the SLD_BODY.
The version 1.6 RC1, with this code, SLD_BODY is not taken into account,
non-existent.

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<NamedLayer>' / / This is the problem
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
...........................
.......................... Etc. ...............

For version 1.6 RC1 changes are as follows:

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<UserLayer>'; / / correction
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
..................................
................................. Etc. .............

Sincerely

aaime wrote:

Pouldu ha scritto:

For SLD_BODY, in previous versions, I used
<NamedLayer>.
In the RC1, it no longer works, should be replaced by
<UserLayer>.
And that's OK.

Can you give an example of before and after that I can
try out? I'm interested in the full getmap call btw.
Cheers
Andrea

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/ATTENTION%3ASLD_BODY-in-GEOSERVER-1.6-RC1-tf4948278.html#a14168480
Sent from the GeoServer - User mailing list archive at Nabble.com.

Pouldu ha scritto:

In previous versions to 1.6 RC1 I used this:
Creation of the stolen client-side javascript:
SLD_footer is a variable javascript to load the SLD_BODY.
The version 1.6 RC1, with this code, SLD_BODY is not taken into account,
non-existent.

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<NamedLayer>' / / This is the problem
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
...........................
.......................... Etc. ...............

For version 1.6 RC1 changes are as follows:

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<UserLayer>'; / / correction
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
..................................
................................. Etc. .............

Ok, but what about the rest of the wms request? I need that too :slight_smile:
Cheers
Andrea

requête Wms fonctionnant sur version inférieur à < 1.6 RC1 avec topp:state

http://127.0.0.1:8080/geoserver_RC1/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&SLD_BODY=<StyledLayerDescriptor%20version%3D"1.0.0"><NamedLayer><Name>topp:states</Name><UserStyle><Name>UserSelection</Name><FeatureTypeStyle><Rule><Filter%20xmlns:gml%3D"http://www.opengis.net/gml"><PropertyIsEqualTo><PropertyName>STATE_NAME</PropertyName><Literal>Illinois</Literal></PropertyIsEqualTo></Filter><PolygonSymbolizer><Fill><CssParameter%20name%3D"fill">%23FF0000</CssParameter></Fill></PolygonSymbolizer></Rule><Rule><LineSymbolizer><Stroke/></LineSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>

Requête qui fonctionne avec 1.6RC1 avec topp:state

http://127.0.0.1:8080/geoserver_RC1/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&SLD_BODY=<StyledLayerDescriptor%20version%3D"1.0.0"><UserLayer><Name>topp:states</Name><UserStyle><Name>UserSelection</Name><FeatureTypeStyle><Rule><Filter%20xmlns:gml%3D"http://www.opengis.net/gml"><PropertyIsEqualTo><PropertyName>STATE_NAME</PropertyName><Literal>Illinois</Literal></PropertyIsEqualTo></Filter><PolygonSymbolizer><Fill><CssParameter%20name%3D"fill">%23FF0000</CssParameter></Fill></PolygonSymbolizer></Rule><Rule><LineSymbolizer><Stroke/></LineSymbolizer></Rule></FeatureTypeStyle></UserStyle></UserLayer></StyledLayerDescriptor>

aaime wrote:

Pouldu ha scritto:

In previous versions to 1.6 RC1 I used this:
Creation of the stolen client-side javascript:
SLD_footer is a variable javascript to load the SLD_BODY.
The version 1.6 RC1, with this code, SLD_BODY is not taken into account,
non-existent.

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<NamedLayer>' / / This is the problem
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
...........................
.......................... Etc. ...............

For version 1.6 RC1 changes are as follows:

SLD_footer + = '<StyledLayerDescriptor version="1.0.0">';
SLD_footer + = '<UserLayer>'; / / correction
SLD_footer + = '<Name> topp: states </ Name>';
SLD_footer + = '<UserStyle>';
SLD_footer + = '<Name> UserSelection </ Name>';
SLD_footer + = '<FeatureTypeStyle>';
SLD_footer + = '<Rule>';
..................................
................................. Etc. .............

Ok, but what about the rest of the wms request? I need that too :slight_smile:
Cheers
Andrea

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/ATTENTION%3ASLD_BODY-in-GEOSERVER-1.6-RC1-tf4948278.html#a14168971
Sent from the GeoServer - User mailing list archive at Nabble.com.