[OpenLayers-Users] WFS not shown, but data received?!
agentsees
agentsees at gmx.net
Tue Apr 6 05:19:40 EDT 2010
Hello!
I have a big problem with adding a WFS. The content seems to load
completely (can see the complete GML Code it in Firebug), but it doesnt
appear in my map. I have tried for hours now in different ways but cant
get a result. Adding the source as WMS is no problem at all. I dont get
what the problem is, because the data is received from geoserver, but
openlayers just will not show me the content on the map. Here is an
example of the reply as seen in firebug:
|<defi:defidb gml:id="defidb.1"><defi:adresse>Mailänder Passage 51</defi:adresse||><defi:bezirk>Chorweiler</defi:bezirk><defi:viertel>Chorweiler</defi:viertel><defi:plz>50765</defi:plz||><defi:standort>Sparkasse</defi:standort><defi:lat>51.021889000000002</defi:lat><defi:lon>6.896830000000000||</defi:lon><defi:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:pos||>767751.6036877729 6625166.547120583</gml:pos></gml:Point></defi:the_geom></defi:defidb>
|
And here is the part of my code:
var options = {
resolutions: [156543.03390625, 78271.516953125,
39135.7584765625, 19567.87923828125, 9783.939619140625,
4891.9698095703125, 2445.9849047851562, 1222.9924523925781,
611.4962261962891, 305.74811309814453, 152.87405654907226,
76.43702827453613, 38.218514137268066, 19.109257068634033,
9.554628534317017, 4.777314267158508, 2.388657133579254,
1.194328566789627, 0.5971642833948135, 0.29858214169740677,
0.14929107084870338, 0.07464553542435169, 0.037322767712175846,
0.018661383856087923, 0.009330691928043961, 0.004665345964021981],
maxExtent: new
OpenLayers.Bounds(-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7),
projection: "EPSG:900913",
units: 'm'
};
map = new OpenLayers.Map( 'map', options);
var testpoints = new OpenLayers.Layer.Vector("defitest", {
strategies: [new OpenLayers.Strategy.BBOX()],
isBaseLayer: true,
displayError: true,
transparent: false,
protocol: new OpenLayers.Protocol.WFS({
url: "http://192.168.0.102:8080/geoserver/wfs",
featureType: "defidb",
srsName: "EPSG:900913",
version: "1.1.0"
})
});
map.addLayer(testpoints);
Thanks for replys in Advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100406/b6ab8b47/attachment.html
More information about the Users
mailing list