Differences
This shows you the differences between two versions of the page.
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: | ||
|' | |' | ||
|' | |' | ||
+ | |||
==== Code for key values ==== | ==== Code for key values ==== | ||
- | $keys_ = array( | + | $keys = array( |
' | ' | ||
' | ' | ||
Line 131: | Line 132: | ||
Alternately when asking for keys you can just use | Alternately when asking for keys you can just use | ||
- | $keys_ = array(' | + | $keys = array(' |
To retrieve all the fields eg: | To retrieve all the fields eg: | ||
- | $keys_ = array(' | + | $keys = array(' |
- | shn_gis_get_features_uuid(' | + | shn_gis_get_features_uuid(' |
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_, | ||
+ | ... | ||
+ | |||
+ | 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_, | shn_gis_create_feature_class($module_ref_, | ||
... | ... | ||
- | 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( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | 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( | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | 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' | + | |
+ | | ||
+ | | ||
+ | ' | ||
+ | ' | ||
+ | | ||
+ | | ||
+ | | ||
+ | ' | ||
+ | ' | ||
+ | | ||
+ | | ||
\\ | \\ | ||
Line 389: | Line 442: | ||
\\ | \\ | ||
- | === Extras === | + | ==== Extras |
=== Decode A Coordinate String To Array === | === Decode A Coordinate String To Array === |