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:40] 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 = '' | ||
\\ | \\ | ||
+ | |||
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( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | shn_gis_create_feature_class($keys) | ||
+ | ... | ||
+ | |||
\\ | \\ | ||