Differences

This shows you the differences between two versions of the page.

dev:gisapi [2008/08/18 16:44]
richard
dev:gisapi [2009/07/06 20:36] (current)
Line 106: Line 106:
|'f_url_edit'      |=> [str] |                         |[A Link to edit a feature/item in the owners module]| |'f_url_edit'      |=> [str] |                         |[A Link to edit a feature/item in the owners module]|
|'f_url_delete'    |=> [str] |                         |[A Link to delete a feature/item in the owners module]| |'f_url_delete'    |=> [str] |                         |[A Link to delete a feature/item in the owners module]|
 +
==== Code for key values ==== ==== Code for key values ====
-  $keys_ = array(  +  $keys = array(  
     'f_uuid'          => '',      'f_uuid'          => '',
     'f_class'         => '',      'f_class'         => '',
Line 131: Line 132:
Alternately when asking for keys you can just use Alternately when asking for keys you can just use
-  $keys_ = array('all' => '1');+  $keys = array('all' => '1');
To retrieve all the fields eg: To retrieve all the fields eg:
-  $keys_ = array('all' => '1'); +  $keys = array('all' => '1'); 
-  shn_gis_get_features_uuid('somefeatureuuid', $keys_)+  shn_gis_get_features_uuid('somefeatureuuid', $keys)
Line 187: Line 188:
Modifys a GIS feature from array of associative keys see above (uses f_module_item_ as uuid to search for entry). Modifys a GIS feature from array of associative keys see above (uses f_module_item_ as uuid to search for entry).
\\ \\
 +
==== Feature Gets ==== ==== Feature Gets ====
Line 233: Line 235:
returns a multidimensional array containing all fields specified by keys of all features in layer specified by $layer_uuid_. returns a multidimensional array containing all fields specified by keys of all features in layer specified by $layer_uuid_.
 +\\
 +
 +=== Get Features Within A Radius Of A Particular Point ===
 +
 +  ...
 +  shn_gis_get_features_in_radius($keys_, $lat_, $lon_, $radius_)
 +  ...
 +
 +Returns an array of all the features within the radius specified by $radius_ of the point specified by $lat_ and $lon_. ($keys for which fields to return)
\\ \\

Navigation
  • Navigate