|
From: Shashi V. <sha...@gm...> - 2021-09-08 12:53:07
|
@rohkonen Jukka Kindly check using these steps:- Layer Preview ->USA Population->Select One->SVG I'm getting results using this in geoserver2.17.2 http://localhost:8080/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp%3Astates&bbox=-124.73142200000001%2C24.955967%2C-66.969849%2C49.371735&width=768&height=330&srs=EPSG%3A4326&format=image%2Fsvg%20xml Then check Response in network. You will find the same result as I sent you in the previous email. On Wed, Sep 8, 2021 at 6:08 PM Rahkonen Jukka (MML) < juk...@ma...> wrote: > Hi, > > > > I thought that Geoserver could support SVG as an outputformat for > GetLegendGraphic but I could not get a result. > > > > > http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/svg%2Bxml&WIDTH=20&HEIGHT=20&LAYER=topp:states > > > > Error: > <ServiceException code="InvalidFormat"> > > Invalid graphic format: image/svg+xml > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* Shashi Verma <sha...@gm...> > *Lähetetty:* keskiviikko 8. syyskuuta 2021 15.10 > *Vastaanottaja:* GeoServer Users <geo...@li...> > *Aihe:* [Geoserver-users] Regarding showing text information in SVG format > > > > Dear Group Members, > > Is there any solution in GeoServer to show text information of layer in > SVG format if so pls help me it's very urgent for me. > > For instance, this is the example of MapServer which is given below:- > > <?xml version="1.0" standalone="no"?> > > <svg width="10cm" height="3cm" viewBox="0 0 1000 300" > > xmlns="http://www.w3.org/2000/svg" version="1.1"> > > <text x="250" y="180" > > font-family="Verdana" font-size="64" fill="blue" > > > Hello, out there! > > </text> > > </svg> > > > > Note:- I want to give the same text information in response which is in > red color using GeoServer. > > Kidly see that attached jpg file, the text is visible on the map I want to > provide these texts in network response. > > > > Thanks in advance > > > |