Project

General

Profile

Feature #574

Updated by Alexander Watzinger over 7 years ago

[[Spatial Whitepaper]] of features. 

 *To do* 

 - multiple polygons 
 - search 
 - centerpoint for polygons (and show them in map) 
 - translations 
 

 - test without points/polygons and input sanitation 
 - new structure dump 
 - unittests 

 *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> 

Back