|
|
@@ -690,10 +690,23 @@ class WfsAction {
|
|
|
18.614273071289062 54.33634445792519
|
|
|
18.614273071289062 54.33614429135817
|
|
|
*/
|
|
|
+ $buildings = array();
|
|
|
+ $db = DB::getDB();
|
|
|
+ $sql = "select b.`ID`, AsWKT(b.`the_geom`) as the_geom
|
|
|
+ from `BUILDINGS` as b
|
|
|
+ where b.`ID`=1
|
|
|
+ ";
|
|
|
+ $res = $db->query($sql);
|
|
|
+ while ($r = $db->fetch($res)) {
|
|
|
+ $buildings[$r->ID] = $r->the_geom;
|
|
|
+ }
|
|
|
|
|
|
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
|
|
?>
|
|
|
<wfs:FeatureCollection xmlns:nasa="http://nasa.gov" xmlns:topp="http://www.openplans.org/topp" xmlns:usgs="http://www.usgs.gov/" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ows="http://www.opengis.net/ows" xmlns:ne="http://naturalearthdata.com" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:osm="http://openstreemap.org" xmlns:nurc="http://www.nurc.nato.int" xmlns:og="http://opengeo.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" numberOfFeatures="4" timeStamp="2014-07-16T13:22:43.307Z" xsi:schemaLocation="http://opengeo.org http://demo.opengeo.org:80/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=og%3Arestricted http://www.opengis.net/wfs http://demo.opengeo.org:80/geoserver/schemas/wfs/1.1.0/wfs.xsd">
|
|
|
+<!--
|
|
|
+<?php echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;"> (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($buildings);echo'</pre>'; ?>
|
|
|
+-->
|
|
|
<gml:boundedBy>
|
|
|
<gml:Envelope srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
|
|
<gml:lowerCorner>-180 -90</gml:lowerCorner>
|