Project

General

Profile

Feature #574

Updated by Stefan Eichert about 8 years ago

[[Spatial Whitepaper]] of features. 

 *To do* 

 - search 
 - centerpoint for polygons (and show them in map) 
 - translations 
 - test without points/polygons and input sanitation 

 *Interface description for GeoJSON objects* 
 <pre> 
 These JavaScript variables will be set by the application: 

 gisPointAll (without selected) 
 gisPointSelected 
 gisPolygonAll (without selected) 
 gisPolygonSelected 

 At insert/update these form fields will be used to write to database: 

 $('#gisPoints') 
 $('#gisPolygons') 

 GeoJSON structure: 

 { 
     "type": "Feature", 
     "geometry": { 
         "type": "Point/Polygon", 
         "coordinates": [12.0094131678343,47.864675435946] 
     }, 
     "properties": { 
         "title": "ObjectName", 
         "objectDescription": "ObjectDescription", 
         "siteType": "ObjectType", 
         "objectId": "134", 
         "count": "3", 
         "id": "1233", 
         "shapeType": "centerpoint/polygoncenter", 
         "name": "Prague Version 2", 
         "description": "a descriptive description" 
     } 
 }, 
 { 
   "type": "Feature" .... 
 </pre> 


 This query returns GeoJSON coordinates from one point that is garanteed inside the polygon 

 <pre> 
 SELECT ST_AsGeoJSON(ST_PointOnSurface(geom)) FROM gis.polygon; 
 </pre> 

 Backend to do:  
 union with variable GisPointAll 
 make new variable like CenterpointsSelected 

 Frontend to do: 
 Add to map of selected ones 
 zoom to bounds of centerpoints and points 



Back