Differences

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

dev:gisapi [2008/08/18 16:40]
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)
\\ \\
Line 243: Line 254:
returns a multidimensional array containing all fields specified by keys of all features using other atts as search values. To ignore any of the attributes in the search enter $att = ''   returns a multidimensional array containing all fields specified by keys of all features using other atts as search values. To ignore any of the attributes in the search enter $att = ''  
\\ \\
 +
Line 252: Line 264:
  ...   ...
-Creates a new feature_class.+Creates a new feature_class. \\ \\ 
 + 
 +** NOTE: This function will be recoded in the near future to take a key entry of values such **:\\ 
 + 
 +  ... 
 +  $keys = array( 
 +               'c_module_ref' => 'mod item uuid', 
 +               'c_name' => 'a name', 
 +               'c_description' => 'a desc', 
 +               'c_icon' => 'a hard link to an icon', 
 +               'c_color' => 'the color of line/poly', 
 +          );  
 +   
 +  shn_gis_create_feature_class($keys) 
 +  ... 
 + 
\\ \\

Navigation
  • Navigate