GML options not always applied.

This is a follow-up for https://github.com/openlayers/ol3/pull/711
for the GML parser. Also use goog.array.map instead of map as was
pointed out by @twpayne on the WKT review and update the example data
to use all US states as pointed out by @tschaub on the Google hangout.
This commit is contained in:
Bart van den Eijnden committed 2013-05-17 11:48:05 +02:00
1 parent e50c314c33
commit 0aa4fe258e
5 files changed
+55 -54

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection numberOfFeatures="3" timeStamp="2008-09-12T00:24:21.013-04:00" xsi:schemaLocation="http://www.openplans.org/topp http://sigma.openplans.org:80/geoserver/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=topp:states http://www.opengis.net/wfs http://sigma.openplans.org:80/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:opengeo="http://open-geo.com" xmlns:tiger="http://www.census.gov" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:seb="http://seb.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"><gml:featureMembers><topp:states gml:id="states.1"><gml:boundedBy><gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326"><gml:lowerCorner>36.986 -91.516</gml:lowerCorner><gml:upperCorner>42.509 -87.507</gml:upperCorner></gml:Envelope></gml:boundedBy><topp:the_geom><gml:MultiSurface srsName="urn:x-ogc:def:crs:EPSG:4326"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>37.511 -88.071 37.476 -88.087 37.442 -88.311 37.409 -88.359 37.421 -88.419 37.401 -88.467 37.296 -88.511 37.257 -88.501 37.205 -88.451 37.156 -88.422 37.098 -88.451 37.072 -88.476 37.068 -88.491 37.064 -88.517 37.072 -88.559 37.109 -88.614 37.135 -88.688 37.141 -88.739 37.152 -88.746 37.202 -88.863 37.218 -88.932 37.221 -88.993 37.185 -89.065 37.112 -89.116 37.093 -89.146 37.064 -89.169 37.025 -89.174 36.998 -89.151 36.988 -89.129 36.986 -89.193 37.028 -89.211 37.041 -89.237 37.087 -89.264 37.091 -89.284 37.085 -89.303 37.061 -89.309 37.027 -89.264 37.008 -89.262 36.999 -89.282 37.009 -89.311 37.049 -89.382 37.099 -89.379 37.137 -89.423 37.165 -89.441 37.224 -89.468 37.253 -89.465 37.256 -89.489 37.276 -89.513 37.304 -89.513 37.329 -89.501 37.339 -89.468 37.355 -89.435 37.411 -89.427 37.453 -89.453 37.491 -89.494 37.571 -89.524 37.615 -89.513 37.651 -89.519 37.679 -89.513 37.694 -89.521 37.706 -89.581 37.745 -89.666 37.783 -89.675 37.804 -89.691 37.841 -89.728 37.905 -89.851 37.905 -89.861 37.891 -89.866 37.875 -89.901 37.878 -89.937 37.911 -89.978 37.963 -89.958 37.969 -90.011 37.993 -90.041 38.032 -90.119 38.053 -90.134 38.088 -90.207 38.122 -90.254 38.166 -90.289 38.188 -90.336 38.234 -90.364 38.323 -90.369 38.365 -90.358 38.391 -90.339 38.427 -90.301 38.518 -90.265 38.532 -90.261 38.562 -90.241 38.611 -90.183 38.658 -90.183 38.701 -90.202 38.723 -90.196 38.773 -90.163 38.785 -90.135 38.801 -90.121 38.831 -90.113 38.853 -90.132 38.914 -90.243 38.924 -90.278 38.924 -90.319 38.962 -90.413 38.959 -90.469 38.891 -90.531 38.871 -90.571 38.881 -90.627 38.935 -90.668 39.037 -90.706 39.058 -90.707 39.093 -90.691 39.144 -90.716 39.195 -90.718 39.224 -90.732 39.247 -90.738 39.296 -90.779 39.351 -90.851 39.401 -90.947 39.444 -91.036 39.473 -91.064 39.528 -91.093 39.552 -91.156 39.601 -91.203 39.685 -91.317 39.724 -91.367 39.761 -91.373 39.803 -91.381 39.863 -91.449 39.885 -91.451 39.901 -91.434 39.921 -91.431 39.946 -91.447 40.005 -91.487 40.066 -91.504 40.134 -91.516 40.201 -91.506 40.251 -91.498 40.309 -91.486 40.371 -91.448 40.386 -91.418 40.392 -91.385 40.402 -91.372 40.447 -91.385 40.503 -91.374 40.528 -91.382 40.547 -91.412 40.572 -91.411 40.603 -91.375 40.639 -91.262 40.643 -91.214 40.656 -91.162 40.682 -91.129 40.705 -91.119 40.761 -91.092 40.833 -91.088 40.879 -91.049 40.923 -90.983 40.951 -90.961 41.071 -90.954 41.104 -90.957 41.144 -90.991 41.165 -91.018 41.176 -91.056 41.231 -91.101 41.267 -91.102 41.334 -91.073 41.401 -91.055 41.423 -91.027 41.431 -91.001 41.421 -90.949 41.444 -90.844 41.449 -90.779 41.451 -90.708 41.462 -90.658 41.509 -90.601 41.525 -90.541 41.527 -90.454 41.543 -90.434 41.567 -90.423 41.586 -90.348 41.602 -90.339 41.649 -90.341 41.722 -90.326 41.756 -90.304 41.781 -90.255 41.806 -90.195 41.931 -90.154 41.983 -90.142 42.033 -90.151 42.061 -90.168 42.103 -90.166 42.121 -90.176 42.122 -90.191 42.159 -90.231 42.197 -90.323 42.211 -90.367 42.242 -90.407 42.263 -90.417 42.341 -90.427 42.361 -90.441 42.388 -90.491 42.421 -90.563 42.461 -90.605 42.475 -90.648 42.494 -90.651 42.509 -90.638 42.508 -90.419 42.504 -89.923 42.503 -89.834 42.497 -89.401 42.497 -89.359 42.491 -88.939 42.491 -88.764 42.489 -88.706 42.491 -88.297 42.489 -88.194 42.489 -87.797 42.314 -87.836 42.156 -87.761 42.059 -87.671 41.847 -87.612 41.723 -87.529 41.469 -87.532 41.301 -87.532 41.173 -87.531 41.009 -87.532 40.745 -87.532 40.494 -87.537 40.483 -87.535 40.166 -87.535 39.887 -87.535 39.609 -87.535 39.477 -87.538 39.351 -87.541 39.338 -87.597 39.307 -87.625 39.297 -87.611 39.281 -87.615 39.258 -87.606 39.248 -87.584 39.208 -87.588 39.198 -87.594 39.196 -87.607 39.168 -87.644 39.146 -87.671 39.131 -87.659 39.113 -87.662 39.103 -87.631 39.088 -87.631 39.084 -87.612 39.062 -87.585 38.995 -87.581 38.994 -87.591 38.977 -87.547 38.963 -87.533 38.931 -87.531 38.904 -87.539 38.869 -87.559 38.857 -87Line truncated
<wfs:FeatureCollection numberOfFeatures="49" timeStamp="2013-05-17T09:43:05.282Z" xsi:schemaLocation="http://www.openplans.org/topp http://demo.opengeo.org/geoserver/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=topp%3Astates http://www.opengis.net/wfs http://demo.opengeo.org/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:osm="http://openstreemap.org" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ne="http://naturalearthdata.com"><gml:boundedBy><gml:Envelope srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326"><gml:lowerCorner>24.955967 -124.73142200000001</gml:lowerCorner><gml:upperCorner>49.371735 -66.969849</gml:upperCorner></gml:Envelope></gml:boundedBy><gml:featureMembers><topp:states gml:id="states.1"><gml:boundedBy><gml:Envelope srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326"><gml:lowerCorner>36.986771000000005 -91.516129</gml:lowerCorner><gml:upperCorner>42.50936100000001 -87.507889</gml:upperCorner></gml:Envelope></gml:boundedBy><topp:the_geom><gml:MultiSurface srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326"><gml:surfaceMember><gml:Polygon srsDimension="2"><gml:exterior><gml:LinearRing srsDimension="2"><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 -89.116821 37.093185000000005 -89.146347 37.064235999999994 -89.169548 37.025711 -89.174332 36.99844 -89.150246 36.988113 -89.12986 36.986771000000005 -89.193512 37.02897299999999 -89.210052 37.041732999999994 -89.237679 37.087124 -89.264053 37.091244 -89.284233 37.085384000000005 -89.303291 37.060908999999995 -89.3097 37.027733 -89.264244 37.008686 -89.262001 36.999207 -89.282768 37.009682 -89.310982 37.049212999999995 -89.38295 37.09908299999999 -89.37999 37.137203 -89.423798 37.165318 -89.440521 37.224266 -89.468216 37.253731 -89.465309 37.256001 -89.489594 37.276402000000004 -89.513885 37.304962 -89.513885 37.329441 -89.50058 37.339409 -89.468742 37.355717 -89.435738 37.411018 -89.427574 37.453186 -89.453621 37.491726 -89.494781 37.571957 -89.524971 37.615928999999994 -89.513367 37.650375 -89.51918 37.67984 -89.513374 37.694798000000006 -89.521523 37.706103999999996 -89.581436 37.745453 -89.666458 37.78397 -89.675858 37.804794 -89.691055 37.840992 -89.728447 37.905063999999996 -89.851715 37.905486999999994 -89.861046 37.891875999999996 -89.866814 37.875904000000006 -89.900551 37.878044 -89.937874 37.911884 -89.978912 37.963634 -89.958229 37.969318 -90.010811 37.993206 -90.041924 38.032272000000006 -90.119339 38.05395100000001 -90.134712 38.08890500000001 -90.207527 38.122169000000014 -90.254059 38.16681700000001 -90.289635 38.18871300000001 -90.336716 38.23429899999999 -90.364769 38.32355899999999 -90.369347 38.36533 -90.358688 38.39084600000001 -90.339607 38.427357 -90.301842 38.518688 -90.265785 38.532768000000004 -90.26123 38.562805 -90.240944 38.61027100000001 -90.183708 38.658772 -90.183578 38.70036300000001 -90.20224 38.72396499999999 -90.196571 38.773098000000005 -90.163399 38.785484 -90.135178 38.80051 -90.121727 38.830467 -90.113121 38.85303099999999 -90.132812 38.91450900000001 -90.243927 38.92471699999999 -90.278931 38.92490799999999 -90.31974 38.96233000000001 -90.413071 38.959179000000006 -90.469841 38.89160899999999 -90.530426 38.87132600000001 -90.570328 38.880795000000006 -90.627213 38.93525299999999 -90.668877 39.037791999999996 -90.70607 39.058178 -90.707588 39.09370000000001 -90.690399 39.14421100000001 -90.716736 39.195873000000006 -90.718193 39.22474700000001 -90.732338 39.24780999999999 -90.738083 39.29680300000001 -90.779343 39.35045199999999 -90.850494 39.40058500000001 -90.947891 39.444412 -91.036339 39.473984 -91.064384 39.52892700000001 -91.093613 39.552593 -91.156189 39.600021 -91.203247 39.68591699999999 -91.317665 39.724639999999994 -91.367088 39.76127199999999 -91.373421 39.80377200000001 -91.381714 39.86304899999999 -91.449188 39.885242000000005 -91.450989 39.90182899999999 -91.434052 39.92183700000001 -91.430389 39.94606400000001 -91.447243 40.005753 -91.487289 40.066711 -91.504005 40.134544000000005 -91.516129 40.200458999999995 -91.506546 40.25137699999999 -91.498932 40.309624000000014 -91.486694 40.371902000000006 -91.448593 40.386875 -91.418816 4Line truncated