Hi Aleda,
if it's stiil a problem, try using 0x (Zero x) instead of # for the color.
This works for me and i've read this in some docs, but can't remember where.
HTH, Frank
Freeman, Aleda (ENV) wrote:
I am working up to a GetMap URL request that has a filter that picks out
one feature by it's id number.
First, I try NamedLayer/NamedStyle, which works:
http://64.119.128.70/geoserver/wms?request=getmap&version=1.1.0&service=
wms&SLD_BODY=<StyledLayerDescriptor+version=%221.0.0%22+xmlns%3Agml=%22h
ttp://www.opengis.net/gml%22+xmlns%3Aogc=%22http://www.opengis.net/ogc%2
2+xmlns=%22http://www.opengis.net/sld%22><NamedLayer><Name>massgis:GISDA
TA.C21E_PT</Name><NamedStyle><Name>GISDATA.C21E_PT%3A%3ADefault</Name></
NamedStyle></NamedLayer></StyledLayerDescriptor>&bbox=249667,918553,2504
54,919353&format=image/png&width=400&height=400&SRS=EPSG%3A26986
Next, I try NamedLayer/UserStyle, in an attempt to use my own color,
which doesn't work:
http://64.119.128.70/geoserver/wms?request=getmap&version=1.1.0&service=
wms&SLD_BODY=<StyledLayerDescriptor+version=%221.0.0%22+xmlns%3Agml=%22h
ttp://www.opengis.net/gml%22+xmlns%3Aogc=%22http://www.opengis.net/ogc%2
2+xmlns=%22http://www.opengis.net/sld%22><NamedLayer><Name>massgis:GISDA
TA.C21E_PT</Name><UserStyle+xmlns=%22http://www.opengis.net/sld%22><Feat
ureTypeStyle><Rule><PointSymbolizer><Geometry><PropertyName+xmlns=%22htt
p://www.opengis.net/ogc%22>SHAPE</PropertyName></Geometry><Graphic><Mark
<WellKnownName>SQUARE</WellKnownName><Fill><CssParameter+name=%22fill%2
2>#00FFFF</CssParameter></Fill></Mark><Size>5</Size></Graphic></PointSym
bolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayer
Descriptor>&bbox=249667,918553,250454,919353&format=image/png&width=400&
height=400&SRS=EPSG%3A26986
I get:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://localhost:8080/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.
dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException
code="">WIDTH and HEIGHT incorrectly specified</ServiceException>
</ServiceExceptionReport>
Using GeoServer 1.3
Do I have a syntax problem?
Does 1.3 support what I'm trying to do or is this coming in a later
version?
Thanks for any hint.
Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://maps.massgis.state.ma.us/biodiversity - Biodiversity Days
-------------------------------------------------------------------------
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
--
View this message in context: http://www.nabble.com/SLD_BODY-in-URL-GetMap-request-problem-tf2358269.html#a7111576
Sent from the GeoServer - User mailing list archive at Nabble.com.