On Thu, Oct 13, 2011 at 3:53 PM, zorg <[email protected]> wrote:
> Hello
> I want to generate just a image of a layer with ine specific object of
> the layer in the center of the map
>
> But I don't know how to do this
>
> I know how to query to get information of the object
>
> url http://myip:80/geoserver/wfs
> post
> <wfs:GetFeature service="WFS" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:ogc="http://www.opengis.net/ogc">
> <wfs:Query srsName="EPSG:3945" xmlns:WORKSPACE="WORKSPACE"
> typeName="WORKSPACE:LAYER">
> <ogc:Filter>
> <ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <ogc:PropertyName>WORKSPACE:idr</ogc:PropertyName>
> <ogc:Literal>999999</ogc:Literal>
> </ogc:PropertyIsLike>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
>
> and then to generate something like that
>
> http://myip:80/geoserver/WORKSPACE/wms?SERVICE=WMS&&version=1.1.1&request=GetMap&service=WMS&layers=WORKSPACE%3ALAYER%2CWORKSPACE%3ALAYER2&styles=STYLE1%2CSTYLE2&srs=EPSG%3A3945&bbox=99917415.5068666663%2C42545544604.77%2C1918108.0935333336%2C4225124.21&width=600&height=450&format=image%2Fpng&bgcolor=0xffffff&transparent=TRUE&exceptions=application%2Fvnd.ogc.se_inimage
>
> My problem is that Is don't know how to calcute the bbox around an obect
> using information obtain by the first request maybe with gml:coordinates
>
> Don't know if I'm clear and if it's the best way to do this
>
Go into the WFS configuration and make it emit the bbox for the features,
that
way you already have it available for usage in the GML
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users