Re: [Geoserver-users] question about query and bbox

2011-10-13 Thread Andrea Aime
On Thu, Oct 13, 2011 at 3:53 PM, zorg  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
>  xmlns:wfs="http://www.opengis.net/wfs";
> xmlns:gml="http://www.opengis.net/gml";
> xmlns:ogc="http://www.opengis.net/ogc";>
>  typeName="WORKSPACE:LAYER">
> 
> 
> WORKSPACE:idr
> 99
> 
> 
> 
> 
>
>
> 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.506863%2C42545544604.77%2C1918108.093536%2C4225124.21&width=600&height=450&format=image%2Fpng&bgcolor=0xff&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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] question about query and bbox

2011-10-13 Thread zorg
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
http://www.opengis.net/wfs"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc";>



WORKSPACE:idr
99






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.506863%2C42545544604.77%2C1918108.093536%2C4225124.21&width=600&height=450&format=image%2Fpng&bgcolor=0xff&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

Thank for your help



--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users