|
|
@@ -958,6 +958,41 @@ class TableAjaxMapWfsAction {
|
|
|
<?php
|
|
|
}
|
|
|
break;
|
|
|
+ case 'POINT':
|
|
|
+ case 'MULTIPOINT': {
|
|
|
+ $points = trim($wktParts[1], '() ');
|
|
|
+ $points = str_replace(',', "\n", $points);
|
|
|
+ // <gml:pos>45.67 88.56</gml:pos>
|
|
|
+ // <gml:gml:coordinates>45.67, 88.56</gml:coordinates>
|
|
|
+ ?>
|
|
|
+ <gml:boundedBy>
|
|
|
+ <gml:Envelope srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
|
|
+ <gml:lowerCorner>-180 -90</gml:lowerCorner>
|
|
|
+ <gml:upperCorner>180 90</gml:upperCorner>
|
|
|
+ </gml:Envelope>
|
|
|
+ </gml:boundedBy>
|
|
|
+ <gml:Point srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
|
|
+ <gml:pos><?php echo $points; ?></gml:pos>
|
|
|
+ </gml:Point>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 'LINESTRING': {
|
|
|
+ $points = trim($wktParts[1], '() ');
|
|
|
+ $points = str_replace(',', "\n", $points);
|
|
|
+ ?>
|
|
|
+ <gml:boundedBy>
|
|
|
+ <gml:Envelope srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
|
|
+ <gml:lowerCorner>-180 -90</gml:lowerCorner>
|
|
|
+ <gml:upperCorner>180 90</gml:upperCorner>
|
|
|
+ </gml:Envelope>
|
|
|
+ </gml:boundedBy>
|
|
|
+ <gml:LineString srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
|
|
+ <gml:posList><?php echo $points; ?></gml:posList>
|
|
|
+ </gml:LineString>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
?>
|
|
|
<!-- UNKNOWN WKT:<?php echo $wkt; ?> -->
|