Hi, I have geoserver 1.7.6, and I’m working with layers wms, but I need work with wfs for work with search, then, Wow I know if I have services WFS??
Thanks
Arturo Juárez Lima |
---|
Hi, I have geoserver 1.7.6, and I’m working with layers wms, but I need work with wfs for work with search, then, Wow I know if I have services WFS??
Thanks
Arturo Juárez Lima |
---|
By default GeoServer publishes layers with both WMS and WFS. So you if you have a WMS layer named "topp:states" (must be a vector layer) for instance, you can get the feature for it with:
http://…/geoserver/wfs?request=getfeature&typename=topp:states
Or just do a WFS capabilities request to see all the layers available:
http://…/geoserver/wfs?request=getcapabilities
Hope that helps.
-Justin
Arturo Juárez Lima wrote:
Hi, I have geoserver 1.7.6, and I'm working with layers wms, but I need work with wfs for work with search, then, Wow I know if I have services WFS??
Thanks
*/Arturo Juárez Lima/*------------------------------------------------------------------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
Hi Justin, I was try with the url (http://172.16.23.21:8080/geoserver/wfs?request=getfeature&typename=topp:states) but Geoserver sent me a file XML, I am copy the first lines from this file
“<wfs:FeatureCollection numberOfFeatures=“49” timeStamp=“2009-10-14T11:16:08.661-05:00” xsi:schemaLocation=“http://www.openplans.org/topp http://172.16.23.21:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:states http://www.opengis.net/wfs http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd”>
−
gml:featureMembers
−
<topp:states gml:id=“states.1”>
−
topp:the_geom
−
<gml:MultiSurface srsName=“urn:x-ogc:def:crs:EPSG:4326”>
−
gml:surfaceMember
−
gml:Polygon
−
gml:exterior
−
gml:LinearRing
−
gml:posList
37.51099000000001 -88.071564 37.476273000000006 -88.087883 37.442852 -88.311707 37.40930899999999 -88.359177 37.420292 -88.419853 37.400757 -88.467644 37.296852 -88.511322 37.257782000000006 -88.501427 37.205669 -88.450699 37.156909999999996 -88.422516 37.098670999999996 -88.45047 37.072143999999994 -88.476799 37.06818 -88.4907 37.064769999999996 -88.517273 37.072815000000006 -88.559273 37.109047000000004 -88.61422 37.13540999999999 -88.68837 37.141182 -88.739113 37.152107 -88.746506 37.202194000000006 -88.863289 37.218407 -88.932503 37.22003599999999 -88.993172 37.185860000000005 -89.065033 37.112137000000004 …”
It’s right this respond?
Thanks
Arturo Juárez Lima |
---|
El mié, 14-10-2009 a las 12:03 -0400, Justin Deoliveira escribió:
http://.../geoserver/wfs?request=getfeature&typename=topp:states
Yup, this is the correct response to a WFS GetFeature request, it is the dataset encoded in GML.
Arturo Juárez Lima wrote:
Hi Justin, I was try with the url (http://172.16.23.21:8080/geoserver/wfs?request=getfeature&typename=topp:states) but Geoserver sent me a file XML, I am copy the first lines from this file
"<wfs:FeatureCollection numberOfFeatures="49" timeStamp="2009-10-14T11:16:08.661-05:00" xsi:schemaLocation="http://www.openplans.org/topp http://172.16.23.21:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:states http://www.opengis.net/wfs http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd">
−
<gml:featureMembers>
−
<topp:states gml:id="states.1">
−
<topp:the_geom>
−
<gml:MultiSurface srsName="urn:x-ogc:def:crs:EPSG:4326">
−
<gml:surfaceMember>
−
<gml:Polygon>
−
<gml:exterior>
−
<gml:LinearRing>
−
<gml:posList>
37.51099000000001 -88.071564 37.476273000000006 -88.087883 37.442852 -88.311707 37.40930899999999 -88.359177 37.420292 -88.419853 37.400757 -88.467644 37.296852 -88.511322 37.257782000000006 -88.501427 37.205669 -88.450699 37.156909999999996 -88.422516 37.098670999999996 -88.45047 37.072143999999994 -88.476799 37.06818 -88.4907 37.064769999999996 -88.517273 37.072815000000006 -88.559273 37.109047000000004 -88.61422 37.13540999999999 -88.68837 37.141182 -88.739113 37.152107 -88.746506 37.202194000000006 -88.863289 37.218407 -88.932503 37.22003599999999 -88.993172 37.185860000000005 -89.065033 37.112137000000004 ..."It's right this respond?
Thanks
*/Arturo Juárez Lima/*
El mié, 14-10-2009 a las 12:03 -0400, Justin Deoliveira escribió:
http://…/geoserver/wfs?request=getfeature&typename=topp:states
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
ok, but I can’t use my files, I’m use OpenLayers and this is my code, but never send me a map with the layer
1aEl mié, 14-10-2009 a las 12:24 -0400, Justin Deoliveira escribió:
Yup, this is the correct response to a WFS GetFeature request, it is the dataset encoded in GML. Arturo Juárez Lima wrote: > Hi Justin, I was try with the url > ([http://172.16.23.21:8080/geoserver/wfs?request=getfeature&typename=topp:states](http://172.16.23.21:8080/geoserver/wfs?request=getfeature&typename=topp:states)) > but Geoserver sent me a file XML, I am copy the first lines from this file > > "<wfs:FeatureCollection numberOfFeatures="49" > timeStamp="2009-10-14T11:16:08.661-05:00" > xsi:schemaLocation="[http://www.openplans.org/topp](http://www.openplans.org/topp) > [http://172.16.23.21:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:states](http://172.16.23.21:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:states) > [http://www.opengis.net/wfs](http://www.opengis.net/wfs) > [http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd](http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd)"> > − > <gml:featureMembers> > − > <topp:states gml:id="states.1"> > − > <topp:the_geom> > − > <gml:MultiSurface srsName="urn:x-ogc:def:crs:EPSG:4326"> > − > <gml:surfaceMember> > − > <gml:Polygon> > − > <gml:exterior> > − > <gml:LinearRing> > − > <gml:posList> > 37.51099000000001 -88.071564 37.476273000000006 -88.087883 37.442852 > -88.311707 37.40930899999999 -88.359177 37.420292 -88.419853 37.400757 > -88.467644 37.296852 -88.511322 37.257782000000006 -88.501427 37.205669 > -88.450699 37.156909999999996 -88.422516 37.098670999999996 -88.45047 > 37.072143999999994 -88.476799 37.06818 -88.4907 37.064769999999996 > -88.517273 37.072815000000006 -88.559273 37.109047000000004 -88.61422 > 37.13540999999999 -88.68837 37.141182 -88.739113 37.152107 -88.746506 > 37.202194000000006 -88.863289 37.218407 -88.932503 37.22003599999999 > -88.993172 37.185860000000005 -89.065033 37.112137000000004 ..." > > It's right this respond? > > Thanks > > > > */Arturo Juárez Lima/* > > > > > > > > El mié, 14-10-2009 a las 12:03 -0400, Justin Deoliveira escribió: >> http://.../geoserver/wfs?request=getfeature&typename=topp:states
Hi Arturo,
it looks like your questions are purely related to open layers usage. I'd suggest looking at the actual openlayers examples <http://openlayers.org/dev/examples/> and documentation, and even asking on the OpenLayers mailing list <http://openlayers.org/mailman/listinfo/users> to get better and quicker support, as most developers here might not be OpenLayers experts.
Best regards,
Gabriel
Arturo Juárez Lima wrote:
ok, but I can't use my files, I'm use OpenLayers and this is my code, but never send me a map with the layer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>1a</title>
</head>
<script src="http://172.16.23.21:8080/geoserver/openlayers/OpenLayers.js" type="text/javascript">
</script><body BGCOLOR=#CCCC98 onload="load();">
<div id="map" style="width: 800px; height: 500px; top:-3px; left:-350px; border: 9px solid #EBE9D4;"></div>
<script type="text/javascript">
function load(map) {
format = 'image/png';
var options = {
//maxExtent: new OpenLayers.Bounds(-100.68433823837833, 19.92869814379752,-98.97019078497003, 21.750688917229123),controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.LayerSwitcher({'ascending':false}),
new OpenLayers.Control.ScaleLine(),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.KeyboardDefaults() ],
numZoomLevels: 31,units: 'm' };
var map = new OpenLayers.Map("map", options);layer2 = new OpenLayers.Layer.WFS(
"Limites", "http://172.16.23.21:8080/geoserver/wfs?",
{typename: "geq:LMA", maxfeatures: 50},
{ featureClass: OpenLayers.Feature.WFS});
map.addLayer(layer2);//map.zoomToMaxExtent();
map.setCenter(new OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9);
}
</script></body>
</html>El mié, 14-10-2009 a las 12:24 -0400, Justin Deoliveira escribió:
Yup, this is the correct response to a WFS GetFeature request, it is the dataset encoded in GML.
Arturo Juárez Lima wrote:
> Hi Justin, I was try with the url > (http://172.16.23.21:8080/geoserver/wfs?request=getfeature&typename=topp:states) > but Geoserver sent me a file XML, I am copy the first lines from this file
> > "<wfs:FeatureCollection numberOfFeatures="49" > timeStamp="2009-10-14T11:16:08.661-05:00" > xsi:schemaLocation="http://www.openplans.org/topp > http://172.16.23.21:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:states > http://www.opengis.net/wfs > http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd">
> −
> <gml:featureMembers>
> −
> <topp:states gml:id="states.1">
> −
> <topp:the_geom>
> −
> <gml:MultiSurface srsName="urn:x-ogc:def:crs:EPSG:4326">
> −
> <gml:surfaceMember>
> −
> <gml:Polygon>
> −
> <gml:exterior>
> −
> <gml:LinearRing>
> −
> <gml:posList>
> 37.51099000000001 -88.071564 37.476273000000006 -88.087883 37.442852 > -88.311707 37.40930899999999 -88.359177 37.420292 -88.419853 37.400757 > -88.467644 37.296852 -88.511322 37.257782000000006 -88.501427 37.205669 > -88.450699 37.156909999999996 -88.422516 37.098670999999996 -88.45047 > 37.072143999999994 -88.476799 37.06818 -88.4907 37.064769999999996 > -88.517273 37.072815000000006 -88.559273 37.109047000000004 -88.61422 > 37.13540999999999 -88.68837 37.141182 -88.739113 37.152107 -88.746506 > 37.202194000000006 -88.863289 37.218407 -88.932503 37.22003599999999 > -88.993172 37.185860000000005 -89.065033 37.112137000000004 ..."
> > It's right this respond?
> > Thanks
> > > > */Arturo Juárez Lima/*
> > > > > > > > El mié, 14-10-2009 a las 12:03 -0400, Justin Deoliveira escribió:
>> http://…/geoserver/wfs?request=getfeature&typename=topp:states------------------------------------------------------------------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.