[OpenLayers-Users] GeoServer WFS

tino.desjardins at arcor.de tino.desjardins at arcor.de
Wed Jul 14 09:50:42 EDT 2010


Hey Robert,

have you setup the OpenLayers-Proxy?

regards

Tino

----- Original Nachricht ----
Von:     Robert Zimmermann <zimmermann at zimrob.de>
An:      users at openlayers.org
Datum:   14.07.2010 15:17
Betreff: [OpenLayers-Users] GeoServer WFS

> Hello,
> 
>  
> 
> I want to get from a GeoServer WFS a Layer in OpenLayers
> 
> A very simple problem, but nothing is working. Sorry.
> 
>  
> 
> When I get the Data with WMS all is fine.
> 
>  
> 
> I have try the following Code:
> 
>  
> 
> new OpenLayers.Layer.Vector("WFS", {
> 
>                         strategies: [new OpenLayers.Strategy.BBOX()],
> 
>                         protocol: new OpenLayers.Protocol.WFS({
> 
>                             version: "1.1.0",
> 
>                             srsName: "EPSG:31467", // this is the default
> 
>                             projection: "EPSG:31467",
> 
>                             url:  "http://zimrob.com:8080/geoserver/wfs",
> 
>                             featureType: "pcd_incidents",
> 
>                             featureNS: "http://www.zimrob.com/crimewebgis"
> 
>                         }),
> 
>                         projection: "EPSG:31467", // specified because it
> is
> different than the map
> 
>                         styleMap: styleMap
> 
>   })
> 
>  
> 
> http://zimrob.com:8080/geoserver/wfs still working.
> 
> My Map definition is this:
> 
> 
> 
> var map = new OpenLayers.Map('map', {
> 
>                                controls: [
> 
>                                                new
> OpenLayers.Control.Attribution(),
> 
>                                                new
> OpenLayers.Control.MouseDefaults(),
> 
>                                                new
> OpenLayers.Control.PanZoomBar(),
> 
>                                                new
> OpenLayers.Control.MousePosition()],
> 
>                                projection : 'EPSG:31467',
> 
>                                maxResolution: 800,
> 
>                                units: 'm',
> 
>                                fractionalZoom: true,
> 
>                                maxExtent: new OpenLayers.Bounds(3146150,
> 5223600, 4031150, 6108600)
> 
>     });
> 
>  
> 
> I hope your can help me.
> 
>  
> 
> Regards Robert.
> 
>  
> 
> 
> 
> --------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 

-- 
E-Cards: Schon fertig für die ganz Eiligen oder individuell zum Selbstgestalten - für jeden Anlass gibt´s die richtige E-Card auf arcor.de.
http://www.arcor.de/rd/footer.ecard



More information about the Users mailing list