Piotr Labudda 11 лет назад
Родитель
Сommit
f05e314c69
3 измененных файлов с 37 добавлено и 2 удалено
  1. 1 1
      SE/VERSION
  2. 1 1
      SE/se-lib/TableAjax.php
  3. 35 0
      SE/se-lib/TableAjaxMap.php

+ 1 - 1
SE/VERSION

@@ -1 +1 @@
-3.9.8.1
+3.9.8.2

+ 1 - 1
SE/se-lib/TableAjax.php

@@ -1001,7 +1001,7 @@ class TableAjax extends ViewAjax {
 										linkRemoveClassName: 'remove',
 										linkRemoveAddClassNames: 'ico-remove',
 										onSelect: function(recordID, geomShape) {
-											console.log('recordID:', recordID, 'geomShape:', geomShape);
+											//console.log('recordID:', recordID, 'geomShape:', geomShape);
 											priv.mapEditorShow();
 											_mapEditor.TableAjaxMapSelectRecord(recordID, geomShape);
 										},

+ 35 - 0
SE/se-lib/TableAjaxMap.php

@@ -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; ?> -->