Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:gisapi [2008/08/18 16:32]
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 = ''  
 \\ \\
 +
 +
  
 ==== Feature Class Related ==== ==== Feature Class Related ====
  
-=== Create a New Feature Class+=== Create a New Feature Class ===
   ...   ...
   shn_gis_create_feature_class($module_ref_, $category_, $name_, $description_, $icon_, $color_)   shn_gis_create_feature_class($module_ref_, $category_, $name_, $description_, $icon_, $color_)
   ...   ...
  
-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) 
 +  ... 
 + 
 \\ \\
  
Line 294: Line 323:
 Returns data about a feature class (see code for more details). Returns data about a feature class (see code for more details).
 \\ \\
 +
  
 ==== Layer Related ==== ==== Layer Related ====
Line 302: Line 332:
   ...   ...
  
-Creates a new layer+Creates a new layer\\ \\ 
 + 
 +** NOTE: This function will be recoded in the near future to take a key entry of values such **:\\ 
 + 
 +  ... 
 +  $keys = array( 
 +               'l_name' => 'a name', 
 +               'l_description' => 'a desc' 
 +          );  
 +   
 +  shn_gis_create_layer($keys) 
 +  ... 
 \\ \\
  
Line 361: Line 403:
 Returns all layers as an array of arrays such: Returns all layers as an array of arrays such:
  
-array(array(l_uuid' => 'a uuid', 'l_name' => 'a name', 'l_description' => 'a desc'),array(l_uuid' => 'a uuid', 'l_name' => 'a name', 'l_description' => 'a desc'))+  array( 
 +        array( 
 +              l_uuid' => 'a uuid', 
 +             'l_name' => 'a name', 
 +             'l_description' => 'a desc' 
 +        ), 
 +        array( 
 +              l_uuid' => 'a uuid', 
 +             'l_name' => 'a name', 
 +             'l_description' => 'a desc' 
 +        ) 
 +  )
 \\ \\
  
Line 389: Line 442:
 \\ \\
  
-=== Extras ===+==== Extras ====
  
 === Decode A Coordinate String To Array === === Decode A Coordinate String To Array ===

Navigation
QR Code
QR Code dev:gisapi (generated for current page)