Hi guys,
 
I'm trying to display the content of a GML file as a layer on top op a wms 
background.
Both the background as the gml file are in EPSG:28992 (RD new).
It just doesn't render the gml content.... 
Is there some kind of issue that i seem to forget?



<script type="text/javascript">
function init(){
var mapOptions = { 
maxResolution: 1324.21875,
numZoomLevels: 31,
projection: new OpenLayers.Projection('EPSG:28992'),
maxExtent: new OpenLayers.Bounds(10000.0,280000.0,305000.0,619000.0) 
};
map = new OpenLayers.Map('map', mapOptions );
layer = new OpenLayers.Layer.WMS.Untiled( "Grenzen", 
"http://localhost/deegree-wms/services?";, { layers: "background", transparent: 
"true"}, {'displayInLayerSwitcher':false, singleTile: false, gutter: 15, 
isBaseLayer: true, opacity: 0.4});
gml = new OpenLayers.Layer.GML("GML", "data.xml");
map.addLayers([layer, gml]);
map.zoomToExtent(new OpenLayers.Bounds(9000.0,90000.0,155000.0,29000.0));
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>

This doesn't give any errors, but it doesn't give any GML either...
Any ideas?

Met vriendelijke groeten,
with kind regards, 敬上
Léon van Berlo



 
 
This e-mail and its contents are subject to the DISCLAIMER at 
http://www.tno.nl/disclaimer/email.html
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection
xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd";>
<gml:featureMember>
<gml:MultiSurface srsName="EPSG:28992">
<gml:surfaceMembers>
<gml:Surface srsName="EPSG:28992">
<gml:patches>
<gml:PolygonPatch>
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
255464.62821287903 489206.8175671336 270923.78486717003
452104.8415968351 275420.99407569104 454634.5217766282 264177.9710543885
479088.09684796125 288350.470550189 464753.2424958005 293128.7553342426
467845.0738266587 275139.91850015847 499887.689437371 268956.25583844207
495952.6313799151 283010.03461507027 476839.4922437008
255464.62821287903 489206.8175671336</gml:posList> </gml:LinearRing> </gml:exterior> </gml:PolygonPatch>
</gml:patches>
</gml:Surface>
<gml:Surface srsName="EPSG:28992">
<gml:patches>
<gml:PolygonPatch>
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
172266.2578552401 478525.9456968961 171423.03112864244 440580.743
180417.44954568447 437769.98724467435 193346.9260201824
438894.2895468046 197000.90850210574 442267.1964531954
194752.30389784524 478807.0212724287 189974.01911379164
478807.0212724287 191660.47256698704 445077.952208521 183509.28087654267
444515.8010574559 176482.39148822858 444515.8010574559 176201.315912696
478807.0212724287 172266.2578552401 478525.9456968961</gml:posList> </gml:LinearRing> </gml:exterior> </gml:PolygonPatch>
</gml:patches>
</gml:Surface>
<gml:Surface srsName="EPSG:28992">

<gml:patches>

<gml:PolygonPatch>

<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
201779.19328615934 479369.1724234938 207119.62922127804
479650.2479990264 214427.5941851247 480212.3991500915 221735.55914897137
477963.79454583104 223140.93702663417 470936.90515751694
224265.23932876444 465315.3936468656 220611.2568468411
461380.33558940975 212460.06515639674 459412.8065606818
214146.51860959214 457726.3531074864 223422.01260216674
456883.12638088875 225951.6927819598 453510.21947449795
225951.6927819598 446764.4056617164 220330.18127130854 440018.5918489349
205152.1001925501 438051.0628202069 201779.19328615934 479369.1724234938</gml:posList> </gml:LinearRing> </gml:exterior> <gml:interior>

<gml:LinearRing>

<gml:posList srsDimension="2">
206557.4780702129 474028.7364883751 207962.85594787574
462223.56231600745 216957.27436491777 464472.1669202679
218643.72781811317 468126.1494021913 216114.04763832007
474309.8120639077 211616.83842979907 474309.8120639077 206557.4780702129 474028.7364883751</gml:posList> </gml:LinearRing>

</gml:interior>

<gml:interior>

<gml:LinearRing>

<gml:posList srsDimension="2">
209087.15825000597 454353.44620109565 210211.46055213624
441986.12087766285 218081.57666704804 443110.4231797931
220611.2568468411 447326.55681278155 222297.7103000365 450137.3125681072
217238.34994045034 452948.0683234328 213865.44303405957
454353.44620109565 209087.15825000597 454353.44620109565</gml:posList> </gml:LinearRing>

</gml:interior>

</gml:PolygonPatch>

</gml:patches>

</gml:Surface>
<gml:Surface srsName="EPSG:28992">

<gml:patches>

<gml:PolygonPatch>

<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
227638.1462351552 481055.6258766892 236351.48907666467 438894.2895468046
264740.12220545363 448450.8591149118 260242.9129969326
454353.44620109565 243940.5296160439 449294.0858415095 240848.6982851857
454915.5973521608 256026.77936394417 463347.8646181377 253216.0236086185
468688.3005532564 239443.32040752287 464753.2424958005 236070.4135011321
475153.0387905054 252934.94803308597 481617.77702775435
249843.11670222774 486396.0618118079 227638.1462351552 481055.6258766892</gml:posList> </gml:LinearRing> </gml:exterior> </gml:PolygonPatch>

</gml:patches>

</gml:Surface>
<gml:Surface srsName="EPSG:28992">

<gml:patches>

<gml:PolygonPatch>

<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
141629.02012219065 480774.55030115665 145845.1537551791
481336.7014522218 155963.8744743514 481055.6258766892 164115.06616479577
475996.2655171031 162990.7638626655 467282.9226755936 157650.3279275468
460818.1844383446 148093.7583594396 460537.10886281205
158493.55465414448 440299.66742446745 153153.11871902578
440299.66742446745 144158.70030198374 458569.5798340841
143596.54915091858 438613.21397127205 139099.33994239755
439175.3651223372 141629.02012219065 480774.55030115665</gml:posList> </gml:LinearRing> </gml:exterior> <gml:interior>

<gml:LinearRing>

<gml:posList srsDimension="2">
145564.07817964655 475715.1899415705 145283.00260411398
464472.1669202679 153996.34544562348 465315.3936468656
157931.40350307935 469531.5272798541 158212.4790786119 474871.9632149728
151747.74084136295 475715.1899415705 145564.07817964655 475715.1899415705</gml:posList> </gml:LinearRing>

</gml:interior>

</gml:PolygonPatch>

</gml:patches>

</gml:Surface>
</gml:surfaceMembers>

</gml:MultiSurface>
</gml:featureMember>
</wfs:FeatureCollection>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to