Satshot-API
[ class tree: Satshot-API ] [ index: Satshot-API ] [ all elements ]

Class: clu_mapcenter_api

Source Location: /clu_mapcenter_api.php

Class Overview

core_api
   |
   --mapcenter_api
      |
      --clu_mapcenter_api

Provides services for attributed CLUs.


Methods


Inherited Methods

Class: mapcenter_api

mapcenter_api::add_attributes_to_vector()
Adds new attributes to the attribute table for vector VECHANDLE, based on the array ATTRIBLIST. The values of this array are attribute specifier structs, defined as follows:
mapcenter_api::analyze_extracted_image_set()
mapcenter_api::approve_autoanalysis_jobs()
Sets the jobs identified by the job tokens in array JOBTOKENS to "ready", so that they will be run by the automatic analyzer during its normal processing. The elements in
mapcenter_api::clear_autoanalysis_jobs()
Removes the autoanalysis jobs identified by the job tokens in array JOBTOKENS from the jobs list.
mapcenter_api::create_and_update_objects()
Creates new permanent geospatial objects, and/or updates existing objects, based on the specification struct OBJECTS. This includes mapping the objects to specified regions, and setting appropriate access controls.
mapcenter_api::create_grid_vector_for_boundary()
Creates a new grid polygon vector dataset for the boundary object identified by BOUNDARYID. The boundary must be one to which the current user has access. The grid is composed of polygon rectangles, each approximately square with a side length of GRIDSIZE meters. Grid squares must be at least 20 meters on a side. The grid will be clipped to the boundary boundary, so polygons near the edge of an irregularly-shaped boundary will conform to the boundary boundary, and will not be square.
mapcenter_api::create_group()
Creates a new group and returns the new groupid. Use of this method requires the "create_groups" privilege.
mapcenter_api::create_multibands_from_extracted_image_set()
Creates multiband-type analysis datasets for each of the raw extracted images in struct HILITEIMAGES. HILITEIMAGES is a struct keyed to the hiliteid of each hilited object to analyze, with values being the corresponding raw image handles, as returned by extract_image_set_around_hilited_shapes().
mapcenter_api::create_multiple_point_vectors_from_images()
As create_point_vector_from_image(), except creates a point vector for each image handle in array IMAGEHANDLES. Each point vector will be as described for create_point_vector_from_image().
mapcenter_api::create_multiple_vector_display_layers()
As create_vector_display_layer(), but creates layers for all the vector handles in array VECLIST. TITLES is an optional struct keyed to the vector handles in IMGLIST, with values being the alternative "display" name to save for each layer. Titles can be set for all, some, or none of the handles. Similarly, HILITES is an optional struct keyed to the vector handles, values being the hilite IDs for each handle's hilite boundary. This information can also be set for all, some, or no handles.
mapcenter_api::create_multiple_vector_spreadmaps_from_images()
As create_vector_spreadmap_from_image(), except creates a vector spreadmap for each image handle in array IMAGEHANDLES. Each vector spreadmap will be as described for create_vector_spreadmap_from_image().
mapcenter_api::create_point_vector_from_image()
Creates a new point vector from image IMAGEHANDLE. IMAGEHANDLE must be an analysis or edited image. Multiband analyses are supported for this method.
mapcenter_api::create_region()
Creates a new region and optionally populates it with geospatial objects (boundaries, locations, or paths). The new region will be owned by the current user.
mapcenter_api::create_user()
Creates a new user, and returns the UID of that user. Use of this method requires the "create_users" privilege.
mapcenter_api::create_vector_display_layer()
Creates a display layer for the vector VECHANDLE on the map MAPCONTEXT. VECHANDLE must correspond to a vector handle returned by a vector-creating function, or a function which returns handles for saved vector datasets, such as get_saved_datasets_for_objects(). The layer is created at the end of the layer display list, covering everything before it (its layer index is equal to the highest existing index + 1). This can be changed with move_layer().
mapcenter_api::create_vector_spreadmap_from_image()
Creates a new vector spreadmap from image IMAGEHANDLE. IMAGEHANDLE must be an analysis or edited image, and must not be a multiband analysis. The spreadmap is a vector dataset with polygons matching the colored regions of the images. Each polygon also has four attributes: zone (the zone number), zone_color (color tuple for this zone), zone_area (acreage of the entire zone), and poly_area (acreage of the specific polygon). Further attributes can be added, set, or removed with add_attributes_to_vector(), set_attributes_for_vector(), and delete_attributes_from_vector(), respectively.
mapcenter_api::delete_attributes_from_vector()
Removes the attribute columns whose names are in the array ATTRIBLIST from the vector table VECHANDLE. ATTRIBLIST is an array of strings which specify the names of attributes to drop. Attribute names must follow the naming convention given for add_attributes_to_vector(): letters, numbers, and underscores allowed, first character must be a letter. Uppercase letters are shifted to lowercase.
mapcenter_api::delete_objects()
Deletes the objects specified in OBJECTS, making them inaccessible to all users. OBJECTS is a struct keyed to the object type ("boundaries", "locations", or "paths"), with values being arrays of object IDs.
mapcenter_api::delete_saved_datasets()
Deletes the saved datasets described in DATASETLIST, which is an array of structs describing each dataset. Struct fields are as follows:
mapcenter_api::export_image_in_processed_format()
Returns the image IMAGEHANDLE (raw image only) in the format specified by FORMAT (defaults to GeoTIFF), after applying PROCESS to the raw image. The file will be named NAME, which is useful for multi-file formats where the names of the files inside the zip cannot otherwise be controlled. The image will be returned in the projection specified by COORDSYS, which defaults to latlong NAD83.
mapcenter_api::export_image_in_simple_format()
Returns the image IMAGEHANDLE (analysis, or edited image) in the format specified by FORMAT (defaults to GeoTIFF). The file will be named NAME, which is useful for multi-file formats where the names of the files inside the zip cannot otherwise be controlled. The image will be returned in the projection specified by COORDSYS, which defaults to latlong NAD83. If COORDSYS is set to an empty string, no reprojection will occur, and the image will be returned in its native projection (Universal Transverse Mercator, with appropriate zone for the location), unless FORMAT is set to "KMZ" (see below).
mapcenter_api::export_multiple_images_in_processed_format()
As export_image_in_processed_format(), but returns multiple images with handles specified in IMAGESTRUCT, in the format FORMAT, applying the process PROCESS, projected as specified by COORDSYS, with OPTIONS applied as appropriate.
mapcenter_api::export_multiple_images_in_simple_format()
As export_image_in_simple_format(), but returns multiple images with handles specified in IMAGESTRUCT, in the format FORMAT, projected as specified by COORDSYS.
mapcenter_api::export_multiple_vector_tables()
As export_vector_table(), but returns the attributes and geometries of each vector described in struct VECS. VECS is a struct keyed to the vector handles, as the VECHANDLE parameter to export_vector_table(), with values being the names as the NAME parameter to export_vector_table(). FORMAT and COORDSYS are as for export_vector_table(), and apply to all of the vectors in VECS.
mapcenter_api::export_vector_table()
Returns the attributes and geometries of the vector table VECHANDLE, in the format specified by FORMAT (defaults to ESRI Shapefile). The file will be given the name NAME, which is useful for multi-file formats where the names of the files inside the zip cannot otherwise be controlled.
mapcenter_api::extract_image_around_hilited_shape()
Extracts a portion of the scene SCENEID around the extents of the hilited shape given in HILITEID, plus a buffer area. The source scene SCENEID need not already be displayed on the map. HILITEID must be the ID of a hilited shape which corresponds to a permanent boundary, not the permanent boundary id.
mapcenter_api::extract_image_set_around_hilited_shapes()
As extract_image_around_hilited_shape(), but extracts an image for each hilited shape in array HILITELIST from scene SCENEID, and returns a struct keyed to the IDs of the hilited shapes, with values being the image handles of the extracted images.
mapcenter_api::get_accessible_regions_and_objects()
Returns a struct containing the regions and geospatial objects to which the current user has access, or the regions and objects to which a given user or group has access. The outermost struct has two keys: "regions" and "objects". The value of "regions" is a struct keyed to the regionids of the regions, with values being region description structs, as follows:
mapcenter_api::get_available_crop_types()
Returns a struct of crop type definitions, for use in field attributing. Struct keys are the crop codes (short names), values are the descriptive long names.
mapcenter_api::get_changed_data_records()
Returns a struct describing the changes in data visible to the current user since the time TIMESTAMP, in the categories specified in array CATEGORIES, with options specified in struct OPTIONS. The returned struct will be keyed to each category, with values being the data as returned by the indicated method for that category (as listed below). Calling this method is thus equivalent to calling all of the indicated methods, but filtered according to TIMESTAMP.
mapcenter_api::get_customer_balances()
Returns a struct giving the credit balances for the customer groups identified in array CUSTIDS. CUSTIDS is an array of groupids for customer groups to which the current user has access. Use of this method requires either the "view_financials" privilege or the "specialimagery" privilege; the latter will only allow the user to view the imagery credit balance, while the former allows viewing both the subscription and imagery balances.
mapcenter_api::get_customer_transaction_history()
Returns the transaction history for the customer group identified by CUSTID, which must be a customer group to which the current user has access.
mapcenter_api::get_edited_image_info()
mapcenter_api::get_fcic_crop_types()
Returns a struct describing the known Federal Crop Insurance Corporation (FCIC) crop types. This includes crop names, types, and practices.
mapcenter_api::get_fielddata_units()
Returns an array of structs describing the units used in the event records. Each struct is defined as follows:
mapcenter_api::get_group_fielddata_equipment_records()
Returns a struct describing the farming equipment recorded for the group GROUPID, used for field events (see the "equipid" field in the event record structs). GROUPID must be the current user's group, or a child of that group.
mapcenter_api::get_multiple_edited_images_info()
mapcenter_api::get_multiple_vectors_metadata()
As get_vector_metadata(), but returns the metadata of each vector in array VECHANDLES, in a struct keyed to the vector handles. Values are the metadata structs returned by get_vector_metadata().
mapcenter_api::get_multiple_vector_attribute_tables()
As get_vector_attribute_table(), but returns a table for each vector table whose handle is in VECLIST. The tables are placed in a struct keyed to the vector handle; the value is the array of rows described in get_vector_attribute_table(). CRITERION and ZONE are interpreted as for get_vector_attribute_table().
mapcenter_api::get_my_user_info()
Returns a struct describing basic information about the current user, as follows:
mapcenter_api::get_notifications()
Returns an array of notification messages reflecting changes in the system, according to CRITERIA. Notification messages are generated for the current user if the user is subscribed to that category of notification, according to the user's subscription parameters (see Notifications and Autoanalysis). The notifications are returned in reverse order of completion time, which (for digest notifications) is when compilation of the notification's data ended, not when it began. This distinction is meaningless for immediate notifications.
mapcenter_api::get_objects_analysis_costs_for_scene()
mapcenter_api::get_objects_costs_for_scenes_or_vectors()
Calculates and returns the costs in credits for performing OPERATION with the objects described in OBJECTS, and the scenes or vectors identified in SCENEIDSORVECHANDLES.
mapcenter_api::get_objects_info()
Retrieves and returns information about the objects specified in struct OBJECTS, according to options OPTIONS. OBJECTS is a struct keyed to the object type (boundaries, locations, or paths), with values being arrays of object ids. The objects must be accessible to the current user.
mapcenter_api::get_object_fielddata_records()
Returns the fielddata event, scouting, and other data records for the objects in struct OBJECTS, for the given CROPYEAR. OBJECTS is a struct keyed to the object type ('boundaries', 'locations', or 'paths'), with values being arrays of objectids of that type. The objects must be ones to which the current user has access.
mapcenter_api::get_pdfs()
Generates and returns a set of PDF reports for the items specified in TYPEITEMS, collecting information for each item based on TYPEOPTIONS, and preparing the PDFs based on PDFOPTIONS.
mapcenter_api::get_raster_pdf()
mapcenter_api::get_regions_info()
Retrieves and returns information about the regions specified in array REGIONIDS, according to options OPTIONS. REGIONS is an array of region ids accessible to the current user.
mapcenter_api::get_saved_datasets_for_objects()
Returns a struct containing information on datasets saved to the hilited objects in HILITEIDS. HILITEIDS is an array of hilite ids corresponding to saved objects (boundaries, locations, or paths). The struct is keyed to the hilite ids, with values being dataset type structs. Possible keys (dataset types) are as follows:
mapcenter_api::get_scouting_master_tables()
Returns a struct describing the master tables for the beneficial species, diseases, insects, and weeds used in scouting report records.
mapcenter_api::get_scouting_table_inputs()
Returns a struct describing the allowed inputs for certain restricted string columns in the various scouting tables.
mapcenter_api::get_vector_attribute_table()
Returns the attribute table for the vector VECHANDLE, with rows grouped according to CRITERION: 'row' means all attributes for all rows of the table are returned, while an attribute name will group the rows by that attribute. If a requested CRITERION attribute does not exist in the table, the results will be grouped by 'row'.
mapcenter_api::get_vector_metadata()
Returns metadata about the vector VECHANDLE. The metadata is returned as a struct, as follows:
mapcenter_api::get_vector_pdf()
mapcenter_api::get_visible_groups()
Returns a struct of info describing the groups visible to the current user. Users can see their own group, and the children of their group down to the bottom of their group hierarchy; they cannot see sibling groups (other groups with the same parent as their group), or subgroups of sibling groups.
mapcenter_api::get_visible_users()
Returns a struct of user info for all users visible to the current user, as defined by group membership. Only members of the current user's group, and subgroups of that group, are visible. Struct keys are the UIDs of the users, values are as defined for get_my_user_info(), except for the following keys, which will NOT be present: notification_settings, subscriptions, presets, client_preferences, customerinfo.
mapcenter_api::load_map()
Loads the map named THESTATE. Returns the map context.
mapcenter_api::load_maps()
As load_map(), but loads maps named in array STATELIST, and returns a struct of map contexts, keyed to the names from STATELIST. Names in STATELIST must be valid arguments to load_map().
mapcenter_api::prepare_new_autoanalysis_jobs_from_matches()
Prepares new autoanalysis jobs for the match records identified in array MATCHIDS. The identified match records must belong to the current user. Each new job will be created using the current user's presets, or default settings if the user has no presets. The new jobs will be in the "wait" state; a new notification will NOT be created for the new jobs, as they are part of existing matches.
mapcenter_api::process_creditcard_payment()
Processes a credit card payment of AMOUNT in US dollars, using the CARDNUMBER, EXPDATE, and CVV provided, for the current user's customer group.
mapcenter_api::query_map_layer_at_map_coordinate()
Queries the layer identified by LAYER in map MAPCONTEXT, at the point defined by map coordinates XCORD and YCORD, and returns attribute information about any intersecting vectors at that point. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified. LAYER may be the index number or the name of the layer to query. LAYER must identify a vector layer; this function does not support querying raster layers.
mapcenter_api::query_map_layer_at_pixel_point()
Queries the layer identified by LAYER in map MAPCONTEXT, at the pixel coordinates XPOINT and YPOINT, and returns attribute information about any intersecting vectors at that point. XPOINT must be in range 0 .. map width, YPOINT in range 0 .. map height. Coordinate 0,0 is top left corner of the map. LAYER must identify a vector layer; this function does not support querying raster layers.
mapcenter_api::query_map_layer_with_layer_shapes()
Queries the layer identified by TARGETLAYER in map MAPCONTEXT, using the shapes identified by integer IDs in array IDS, which are contained in the layer SOURCELAYER. For each shape from SOURCELAYER in IDS, attribute information for the intersecting shapes from TARGETLAYER will be returned. SOURCELAYER and TARGETLAYER may be the index numbers or the names of the layers. They must identify vector layers; this function does not support querying raster layers.
mapcenter_api::query_multiple_map_layers_at_map_coordinate()
As query_map_layer_at_map_coordinate(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_map_coordinate().
mapcenter_api::query_multiple_map_layers_at_pixel_point()
As query_map_layer_at_pixel_point(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_pixel_point().
mapcenter_api::record_ssr_transaction()
Records a SSR index transaction and returns the balance.
mapcenter_api::reload_multiple_saved_analyses()
As reload_saved_analysis(), but reloads multiple analyses as specified in array ANALYSISIDS.
mapcenter_api::reload_multiple_saved_edited_images()
As reload_saved_edited_image(), but reloads multiple edited images as specified in array IMAGEIDS.
mapcenter_api::reload_saved_analysis()
Reloads the saved analysis ANALYSISID from the database, using MAPCONTEXT. Returns the image handle of the reloaded analyzed image.
mapcenter_api::reload_saved_edited_image()
Reloads the saved edited image IMGID from the database. Returns the image handle of the reloaded edited image.
mapcenter_api::remove_multiple_vector_display_layers()
As remove_vector_display_layer(), but removes display layers for all vector handles in array VECLIST.
mapcenter_api::remove_vector_display_layer()
Removes the display layer for vector VECHANDLE from display on map MAPCONTEXT.
mapcenter_api::rename_objects()
Renames the objects specified in OBJECTNAMES to the given names. OBJECTNAMES is a struct keyed to the object type ("boundaries", "locations", or "paths"), with values being structs keyed to the objectid, having values of the new names for the objects.
mapcenter_api::rename_saved_datasets()
Renames the saved datasets described in DATASETLIST, which is an array of structs describing each dataset. Struct fields are as follows:
mapcenter_api::save_analysis()
Saves the analyzed image IMAGEHANDLE to database under name ANALYSISNAME. All metadata associated with the analysis, and all information needed to recreate it, are also saved.
mapcenter_api::save_edited_image()
Saves the edited image IMAGEHANDLE to database under name IMAGENAME.
mapcenter_api::save_group_fielddata_equipment_records()
Saves farming equipment records, described in array EQUIPMENT, for the group identified by GROUPID. GROUPID must identify the current user's group, or a child of that group.
mapcenter_api::save_hilited_objects()
mapcenter_api::save_multiple_analyses()
As save_analysis(), but saves all analyses with handles and names specified in struct NAMEHANDLESTRUCT. NAMEHANDLESTRUCT is keyed to the image handles, with values of the names under which to save each analysis.
mapcenter_api::save_multiple_edited_images()
As save_edited_image(), but saves all edited images with handles and names specified in struct NAMEHANDLESTRUCT. NAMEHANDLESTRUCT is keyed to the image handles, with values of the names under which to save each edited image.
mapcenter_api::save_multiple_vectors_to_multiple_objects()
As save_vector_to_object(), but saves multiple vector tables to (potentially) multiple objects, as specified in struct VECSTRUCT.
mapcenter_api::save_object_fielddata_records()
Creates and saves new event, scouting, or data records for the given CROPYEAR as described in the array EVENTS. EVENTS is an array of event description structs.
mapcenter_api::save_vector_to_object()
Permanently saves the vector table VECHANDLE to the database, under the name NAME, attached to the object identified by OBJECTTYPE and OBECTID. The object must be one to which the user has "append" access.
mapcenter_api::search_and_prepare_autoanalysis_matches_and_jobs()
Queries for scenes using the boundaries identified in array BOUNDARYIDS, using the criteria in CRITERIA. For each scene found that contains one or more boundaries in BOUNDARYIDS, prepares a new match record, with corresponding job, for the current user. The match record will contain the sceneid of the matched scene, and the boundary ids of the matched boundaries within that scene. The boundaries must be accessible to the current user; however, the user does not need to be subscribed to the boundaries, in order for the matches and jobs to be created by this method.
mapcenter_api::select_by_object_type_and_id()
Selects (hilites) the objects of type TYPE, listed in IDS, from the corresponding layer of map MAPCONTEXT. TYPE must be one of "boundaries", "locations", or "paths". IDS must be a ids of the corresponding object type to select. The given objects must be accessible to the current user. An invalid (nonexistent or not accessible) object id triggers an error.
mapcenter_api::set_attributes_for_vector()
Sets the values of attributes in vector table VECHANDLE according to the attribute value structs in array ATTRIBLIST. Attribute value structs are defined as follows:
mapcenter_api::set_objects_access_controls()
Sets the access controls for the geospatial objects in array OBJECTS. Use of this method requires the "change_object_acls" privilege.
mapcenter_api::set_objects_notification()
mapcenter_api::subscribe_groups_to_objects()
Creates subscriptions for customer groups to imagery types (such as RapidEye) for objects, as specified in SPECIFICATION. Subscription costs are deducted from the credit balances of the customer groups, and the new balances are returned.
mapcenter_api::transfer_credits_between_customer_groups()
Transfers AMOUNT credits from the customer group identified by FROMID, to the customer group identified by TOID.
mapcenter_api::update_group_info()
Updates the information for the group GROUPID, using the information struct INFO. GROUPID must be the ID of either the current user's group, or that of a subgroup of the current user's group. Use of this method requires the "create_groups" privilege.
mapcenter_api::update_notifications()
Updates the notifications identified in struct CRITERIA, setting the metadata specified in WHICH.
mapcenter_api::update_region()
Updates the info for the region identified by REGIONID, using the information struct INFO. The region to modify must be owned by the current user, or by a user visible to the current user. If the creator of the region is not the current user, the region must not be private.
mapcenter_api::update_user_info()
Updates the information for the user USERID, using the information struct INFO. USERID must be the ID of either the current user, or that of a user accessible to the current user.

Class: core_api

core_api::change_image_zone_color()
Changes the color of one or more zones in analysis or edited image IMAGEHANDLE to given RGB values. COLORZONES is a struct keyed to zone numbers, each of which must be in range 1 .. (number of zones), and with values being RGB structs, as follows:
core_api::classify_multiband_analyses()
Classifies the multiband analyses in MBCLASSOPTS, returning single-band classified analyses. MBCLASSOPTS is a struct keyed to the image handle of the multiband analyses; the image handles passed in as the keys of this top level struct must correspond to multiband analysis images, and not to raw images, classified analyses, or edited images.
core_api::clear_displayed_scene()
Removes scene display layer from the map MAPCONTEXT. It is only necessary to call this method when the user desires to display no scene at all; to change which scene is displayed, it is sufficient to call display_scene() with a new sceneid argument.
core_api::clear_hilites()
Removes all hilited shapes from the user's hilite layers.
core_api::create_hilite_objects_from_wkt()
Creates new hilited objects from the object specification structs in OBJECTS. OBJECTS is a struct keyed to the object names, with values being OGC Well-Known Text geometries. The WKT geometries may be of the following types: POINT, LINESTRING or MULTILINESTRING, or POLYGON or MULTIPOLYGON.
core_api::create_image_display_layer()
Creates a display layer for the image IMAGEHANDLE on the map MAPCONTEXT. IMAGEHANDLE must correspond to an image in the user's temporary files; it is not the ID of a permanently stored image.
core_api::create_multibands_from_extracted_image_set()
Creates multiband-type analysis datasets for each of the raw extracted images in struct HILITEIMAGES. HILITEIMAGES is a struct keyed to the hiliteid of each hilited object to analyze, with values being the corresponding raw image handles, as returned by extract_image_set_around_hilited_shapes().
core_api::create_multiple_image_display_layers()
As create_image_display_layer(), but creates layers for all the image handles in array IMGLIST. TITLES is an optional struct keyed to the image handles in IMGLIST, with values being the alternative "display" name to save for each layer. Titles can be set for all, some, or none of the handles. Similarly, HILITES is an optional struct keyed to the image handles, values being the hilite IDs for each handle's hilite boundary. This information can also be set for all, some, or no handles.
core_api::create_soilmap_vectors_for_boundaries()
Creates a soilmap vector for each hilited boundary whose hiliteid is in array HILITELIST. The hiliteids must identify a hilited boundary which corresponds to a permanent field.
core_api::display_scene()
Adds a display layer for the scene with index SCENEID to the map MAPCONTEXT. SCENEID must be an scene visible within the current extents. The display layer is named "displayimg".
core_api::display_scene_by_item_id()
As display_scene(), but for scenes whose SCENEID is a string identifier rather than an integer
core_api::dissolve_image_regions()
Dissolves regions of the analysis or edited image IMAGEHANDLE which are smaller than MINPIXELS in size into the nearest region larger than MINPIXELS.
core_api::dissolve_image_regions_for_multiple_images()
As dissolve_image_regions(), but performs the dissolve operation on all analyses or edited images in array IMAGEHANDLES.
core_api::download_multiple_saved_geotagged_photos()
As download_saved_geotagged_photo(), but returns a struct of multiple base64-encoded binary photos, keyed to the photo IDs listed in array PHOTOIDS. Values are the binary objects. The photos must be accessible to the user, either saved by the user or tied to objects the user can access.
core_api::download_saved_geotagged_photo()
Returns the base64-encoded binary file for the geotagged photo identified by PHOTOID. The photo must be accessible to the user, either saved by the user or tied to an object the user can access.
core_api::draw_map()
Draws the map given by MAPCONTEXT. Returns the drawn image in the given FORMAT. Available formats are PNG24, JPG, GIF, GTIFF.
core_api::draw_map_for_multiple_display_layers()
Draws the map given by MAPCONTEXT, iterating over each display layer (image or vector) named in LAYERLIST, and returning the images in a struct keyed to the layer name.
core_api::export_image_in_processed_format()
Returns the image IMAGEHANDLE (raw image only) in the format specified by FORMAT (defaults to GeoTIFF), after applying PROCESS to the raw image. The file will be named NAME, which is useful for multi-file formats where the names of the files inside the zip cannot otherwise be controlled. The image will be returned in the projection specified by COORDSYS, which defaults to latlong NAD83.
core_api::export_image_in_simple_format()
Returns the image IMAGEHANDLE (analysis, or edited image) in the format specified by FORMAT (defaults to GeoTIFF). The file will be named NAME, which is useful for multi-file formats where the names of the files inside the zip cannot otherwise be controlled. The image will be returned in the projection specified by COORDSYS, which defaults to latlong NAD83. If COORDSYS is set to an empty string, no reprojection will occur, and the image will be returned in its native projection (Universal Transverse Mercator, with appropriate zone for the location), unless FORMAT is set to "KMZ" (see below).
core_api::export_multiple_images_in_processed_format()
As export_image_in_processed_format(), but returns multiple images with handles specified in IMAGESTRUCT, in the format FORMAT, applying the process PROCESS, projected as specified by COORDSYS, with OPTIONS applied as appropriate.
core_api::extract_image_around_hilited_shape()
Extracts a portion of the scene SCENEID around the extents of the hilited shape given in HILITEID, plus a buffer area. The source scene SCENEID need not already be displayed on the map. HILITEID must be the ID of a hilited shape which corresponds to a permanent boundary, not the permanent boundary id.
core_api::extract_image_set_around_hilited_shapes()
As extract_image_around_hilited_shape(), but extracts an image for each hilited shape in array HILITELIST from scene SCENEID, and returns a struct keyed to the IDs of the hilited shapes, with values being the image handles of the extracted images.
core_api::georeference_extracted_image()
Adjusts the georeferencing of the extracted image IMAGEHANDLE, adding EASTINGCHANGE to the image's easting (longitudinal, x-axis) position, and NORTHINGCHANGE to the northing (latitudinal, y-axis) position. Positive EASTINGCHANGE moves the image to the east, while negative moves it west; similarly, positive NORTHINGCHANGE moves the image north, and negative moves it south.
core_api::georeference_extracted_image_set()
As georeference_extracted_image(), but applies the EASTINGCHANGE and NORTHINGCHANGE arguments to every extracted image in array IMAGELIST. IMAGELIST must be an array of image handles.
core_api::get_analysis_info()
core_api::get_available_colortables()
Returns a struct describing the available colortables for use in classifying analyses. The colortables can be chosen using the COLORTABLE parameter to analyze_extracted_image_set().
core_api::get_available_maps()
Returns a struct describing the available maps for loading. Struct keys are the abbreviations or short names of the regions (states, provinces, or countries) represented by the maps, values are description structs, defined as follows:
core_api::get_available_scenes()
Returns a struct of scene description structs, keyed to the scene index, within the current extents of MAPCONTEXT.
core_api::get_available_scenes_for_extent()
Returns a struct of scene description structs, keyed to the scene index, within the current extents of EXTENTS. EXTENTS is an extents struct (keys are minx, miny, maxx, maxy), with coordinates in the coordinate system COORDSYS. All four coordinate keys in EXTENTS must be set.
core_api::get_available_scenes_for_extent_and_date_range()
Returns a struct of scene description structs, keyed to the scene index, within the extents of EXTENTS, and with scene shooting dates between STARTDATE and ENDDATE, inclusively. EXTENTS is an extents struct (keys are minx, miny, maxx, maxy), with coordinates in the coordinate system COORDSYS. All four coordinate keys in EXTENTS must be set. STARTDATE cannot be equal to or after ENDDATE, or an error is signalled.
core_api::get_available_scenes_for_multiple_extents_and_date_range()
As get_available_scenes_for_extent_and_date_range(), but returns the scene description struct for scenes which intersect the list of extents structs in EXTENTSLIST, and with scene shooting dates between STARTDATE and ENDDATE, inclusively. All extents structs in EXTENTSLIST must be in the coordinate system COORDSYS.
core_api::get_available_scene_years()
Returns an array of years in which the database has scenes available, in reverse chronological order.
core_api::get_available_stac_scenes_for_extent_and_date_range()
Searches for scenes directly against the Element84 STAC API (Earth Search), rather than the legacy
core_api::get_displayed_scene()
Returns the sceneid of the currently displayed scene in the map MAPCONTEXT, or false if there is no scene currently displayed.
core_api::get_hilites()
Returns a structure containing currently hilited shapes. Struct keys are the GID of the hilite shapes; these are used for uniquely identifying the hilite shape, and do not correspond to permanently stored objects. The struct values are attribute structs describing each hilite shape.
core_api::get_hilite_extents()
Returns the extents of currently hilited shapes as an extents struct, or false if no hilites present.
core_api::get_hilite_ids_within_scene()
Returns an array of SHPIDs of currently hilited objects which lie within the scene SCENEID. Objects which are partially or completely outside of the scene will not be listed. If there are no hilited objects within the scene, or no hilited objects, returns false.
core_api::get_image_info()
core_api::get_map_centroid()
Returns the centroid of the current map extents in latlong. This is a struct with two fields, LAT and LONG.
core_api::get_map_info()
Returns basic info about the given map context MAPCONTEXT as a struct. MAPCONTEXT may be a string naming a single map context, or an array of map context strings.
core_api::get_map_layers()
Returns a list of the available layers for the map context MAPCONTEXT. Layers are given in order of drawing (lower layers first).
core_api::get_map_public_locations()
core_api::get_multiple_analyses_info()
core_api::get_multiple_images_info()
core_api::get_multiple_scenes_info()
As get_scene_info(), but returns info structs for each scene ID given in array SCENEIDS.
core_api::get_my_login_sessions()
Returns a struct describing the current user's logged in sessions. Struct keys are the session tokens (as returned by login()), with values being session structs as follows:
core_api::get_rasters_info()
Returns a struct keyed to each analyzed image or edited image in IMAGEHANDLES, with values being raster description structs for the given images.
core_api::get_scene_info()
Returns info struct about the scene identified by SCENEID. If no such scene exists, returns FALSE.
core_api::load_map()
Loads the map named THESTATE. Returns the map context.
core_api::load_maps()
As load_map(), but loads maps named in array STATELIST, and returns a struct of map contexts, keyed to the names from STATELIST. Names in STATELIST must be valid arguments to load_map().
core_api::login()
Logs in a user to the system. Establishes a session and sets the session cookie if the USERNAME and PASSWORD match the user database.
core_api::logout()
Logs out of the system. Cookies are destroyed and session is removed from database. Any map contexts and temporary files are also destroyed.
core_api::make_geometric_intersection_of_hilited_shapes()
Replaces the two hilited objects identified by FIRSTSHPID and SECONDSHPID with a single object consisting of the point set intersection of the two objects, with the name NAME.
core_api::make_geometric_symdifference_of_hilited_shapes()
Replaces the two hilited boundaries identified by FIRSTSHPID and SECONDSHPID with a single boundary consisting of the point set symmetric difference of the two boundaries, with the name NAME. The existing boundaries will be removed from the hilite layer.
core_api::make_geometric_union_of_hilited_shapes()
Replaces the hilited objects identified by hiliteids in array SHPLIST with a single, complex object consisting of the point set union of their geometries, with the name NAME. The existing objects will be removed from the hilite layer.
core_api::merge_analysis_zones()
Merges the classification of the zones MERGEZONES in analyzed image IMAGEHANDLE. The ranges of values in the raw image represented by the zones is combined into one zone.
core_api::move_layer()
Moves the layer LAYER of map MAPCONTEXT in the display list (order of drawing) by AMOUNT. If AMOUNT > 0, this moves the layer UP in the list. If AMOUNT < 0, the layer is moved DOWN in the list. AMOUNT = 0 is allowed, but silly. Layers are drawn in list order, so later layers will cover those drawn earlier; use this function to control which layers overlay each other.
core_api::paint_image_polygons_with_map_coordinates()
Alters the pixels of the analysis or edited image IMAGEHANDLE whose positions are within the polygonal region POLYLIST, to the color of zone ZONENUMBER, using MAPCONTEXT to paint the new points.
core_api::paint_image_polygons_with_pixel_points()
Alters the pixels of the analysis or edited image IMAGEHANDLE whose positions are within the polygonal region POLYLIST, to the color of zone ZONENUMBER, using MAPCONTEXT to paint the new points.
core_api::query_map_layer_at_map_coordinate()
Queries the layer identified by LAYER in map MAPCONTEXT, at the point defined by map coordinates XCORD and YCORD, and returns attribute information about any intersecting vectors at that point. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified. LAYER may be the index number or the name of the layer to query. LAYER must identify a vector layer; this function does not support querying raster layers.
core_api::query_map_layer_at_pixel_point()
Queries the layer identified by LAYER in map MAPCONTEXT, at the pixel coordinates XPOINT and YPOINT, and returns attribute information about any intersecting vectors at that point.
core_api::query_map_layer_with_layer_shapes()
Queries the layer identified by TARGETLAYER in map MAPCONTEXT, using the shapes identified by integer IDs in array IDS, which are contained in the layer SOURCELAYER. For each shape from SOURCELAYER in IDS, attribute information for the intersecting shapes from TARGETLAYER will be returned. SOURCELAYER and TARGETLAYER may be the index numbers or the names of the layers. They must identify vector layers; this function does not support querying raster layers.
core_api::query_multiple_map_layers_at_map_coordinate()
As query_map_layer_at_map_coordinate(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_map_coordinate().
core_api::query_multiple_map_layers_at_pixel_point()
As query_map_layer_at_pixel_point(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_pixel_point().
core_api::remove_hilited_shape()
Removes the hilited shape identified by HILITEID from its hilite layer.
core_api::remove_hilited_shapes()
As remove_hilited_shape(), but removes multiple hilites identified by HILITEIDs in array HILITEIDLIST. Useful when the user wants to remove several, but not all, hilites.
core_api::remove_image_display_layer()
Removes the display layer for image IMAGEHANDLE from display on map MAPCONTEXT.
core_api::remove_multiple_image_display_layers()
As remove_image_display_layer(), but removes display layers for all image handles in array IMGLIST.
core_api::rename_hilited_shape()
Changes the name of the hilited shape identified by GID to NEWNAME. This is primarily useful for preparing boundaries to be saved as fields.
core_api::rename_hilited_shapes()
As rename_hilited_shape(), but renames multiple hilites identified in HILITESTRUCT. HILITESTRUCT is a struct keyed to the GID of the hilited shapes, with values being the new names to assign.
core_api::search_pls_locations()
Queries the PLS layer LAYER for townships or sections matching the criteria in struct CRITERIA, returning results found.
core_api::select_by_extents()
Selects (hilites) the objects in LAYERNAME within current extents of the map MAPCONTEXT. LAYERNAME must be one of "boundaries" (the default), "locations", "paths", "clu", or "attribclu". Selecting on the "attribclu" layer requires the "use_attribclus" privilege.
core_api::select_by_pixel_point()
Selects (hilites) the boundaries in LAYERNAME of the map MAPCONTEXT which intersect the pixel point (XPOINT,YPOINT). XPOINT and YPOINT are pixel coordinates, with XPOINT in range 0 .. map width, YPOINT in range 0 .. map height. Coordinate 0,0 is top left corner of the map. LAYERNAME must be one of "boundaries" (the default), "locations", "paths", "clu", or "attribclu". Selecting on the "attribclu" layer requires the "use_attribclus" privilege.
core_api::select_by_point()
Selects (hilites) the objects in LAYERNAME of the map MAPCONTEXT which intersect the point (XCORD,YCORD). Point coordinates should be in latlong unless COORDSYS is set.
core_api::set_map_extents()
Sets the extents of the map given by MAPCONTEXT to MINX, MINY, MAXX, MAXY. Extents should be in latlong unless COORDSYS is given. BUFFER is additional padding (in meters) around the extents, to ensure everything is in view. Set to 0 for no buffering.
core_api::set_map_projection()
Sets the projection and coordinate system of map MAPCONTEXT to projection NEWPROJ.
core_api::set_map_size()
Sets the size of the map (size of the output image) given by MAPCONTEXT to WIDTH x HEIGHT, in pixels.
core_api::shift_analysis_zone_endpoints()
Changes the classification of the analysis IMAGEHANDLE, changing the maximum point of SHIFTZONE by SHIFTAMOUNT. SHIFTZONE must be in the range (1 .. number of zones - 1), i.e., the final zone's max point cannot be shifted.
core_api::toggle_map_layer()
Toggles the status of the map layer (on or off) identified by LAYER (the layer name or index) in the given map context. If the layer was off, it is turned on, and vice versa. A layer whose status is OFF is not drawn when draw_map() is called, but may still be drawn using WMS.
core_api::toggle_multiple_map_layers()
As toggle_map_layer(), but toggles each of the map layers identified by the layer names or layerid numbers in LAYERS.
core_api::upload_geotagged_photo()
Uploads the geotagged photo IMAGEFILE to the database, storing it with the description DESCRIPTION. The OPTIONS struct, if provided, can set three optional parameters:
core_api::upload_objects_to_hilites()
Uploads the geometries of vector file VECFILE, in the specified format FORMAT, into the hilite layer. NAMECOLUMN specifies which attribute column to use to name each object; if not specified, the boundaries will be given default names (Unnamed1, Unnamed2, Unnamed3, etc). Point coordinates should be in latlong/NAD83 unless COORDSYS is set. COORDSYS is ignored for GeoJSON, GML and KML files, which must be in latlong.
core_api::zoom_map_at_map_coordinate()
Recenters the map MAPCONTEXT around the point represented by map coordinates XCORD and YCORD. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified.
core_api::zoom_map_at_pixel_point()
Recenters the map MAPCONTEXT around the point represented by pixel coordinates XPOINT and YPOINT. Coordinate 0,0 is top left corner of the map.
core_api::zoom_map_to_map_coordinate_with_radius()
Sets the map extents to those of the bounding box around map coordinate XCORD,YCORD, with a buffer of RADIUS meters. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified. RADIUS must be a positive integer.
core_api::zoom_map_to_pixel_rectangle()
Sets the map extents to those bounded by the box described by pixel coordinates PIXMINX, PIXMINY, PIXMAXX, PIXMAXY. Cordinate (0,0) is the top left corner of the map. The bounding box size cannot be zero in either dimension (i.e., PIXMINX must not equal PIXMAXX, PIXMINY must not equal PIXMAXY).

Class Details

[line 27]
Provides services for attributed CLUs.




[ Top ]


Class Methods


static method get_clu_attributes_by_criteria [line 649]

static array|boolean get_clu_attributes_by_criteria( string $state, [string $county = "none"], [struct $criteria = array()], [ $wkt = false])

Returns the attributes for each of the CLUs in the attributed CLU database within the state STATE. If COUNTY is set, restricts the retrieved CLUs to the given county in STATE.

Attributes are returned in an array of CLU attribute structs defined as follows:

  • gid: Primary key of the CLU. Integer.
  • extents: Extents of the CLU in latlong/NAD83, as standard extents struct.
  • statefips: State FIPS code.
  • countyfips: County FIPS code.
  • farmnbr: FSA farm number.
  • tractnbr: FSA tract number.
  • clunbr: FSA CLU number.
  • fsa_acres: Acreage of the CLU according to the FSA.
  • cropdata: Struct of crop data for the CLU, keyed to the FSA field number, which will be the CLU number, plus a letter designation for split CLUs with multiple crops. The values are crop description structs, defined as follows:
    • cropcode: FSA numeric crop code for the CLU's crop, if available.
    • cropdesc: FSA crop name, if available.
    • croptype: FSA crop type/variety code, if available.
    • cropacres: Acreage of the CLU area planted with this crop, if available.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • acres: Area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • extent: An extents struct, spatially limiting matched boundaries to those in the given extent. This must be in latlong NAD83 (EPSG:4269).
  • excludegids: Array of GIDs, excludes the boundaries so identified. These are the id values for the "gid" field in the attribute struct.
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.</li

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  BAD_SEARCH_REQUEST Customer number not found in database.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $state   State name.
string   $county   County name.
struct   $criteria   Array of criteria.
   $wkt  

[ Top ]

static method get_customer_clu_attributes [line 304]

static array|boolean get_customer_clu_attributes( string $customer_nbr, [string $statename = 'any'], [struct $criteria = array()], [boolean $wkt = false])

Returns the attributes for each of the CLUs in the attributed CLU database belonging to the grower identified by CUSTOMER_NBR.

Attributes are returned in an array of CLU attribute structs defined as follows:

  • gid: Primary key of the CLU. Integer.
  • extents: Extents of the CLU in latlong/NAD83, as standard extents struct.
  • statefips: State FIPS code.
  • countyfips: County FIPS code.
  • farmnbr: FSA farm number.
  • tractnbr: FSA tract number.
  • clunbr: FSA CLU number.
  • fsa_acres: Acreage of the CLU according to the FSA.
  • cropdata: Struct of crop data for the CLU, keyed to the FSA field number, which will be the CLU number, plus a letter designation for split CLUs with multiple crops. The values are crop description structs, defined as follows:
    • cropcode: FSA numeric crop code for the CLU's crop, if available.
    • cropdesc: FSA crop name, if available.
    • croptype: FSA crop type/variety code, if available.
    • cropacres: Acreage of the CLU area planted with this crop, if available.

If STATENAME is set, restricts the results to those boundaries within the given state.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • county: Name of a county within STATENAME.
  • acres: Area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • prodcode: an array of producer codes to match against; this can be one of the following:
    • OW: Owner.
    • OP: Operator.
    • OO: Owner/Operator.
    • OT: Other Tenant.
  • extent: An extents struct, spatially limiting matched growers to those with boundaries in the given extent. This must be in latlong NAD83 (EPSG:4269). The area of the extent must not exceed 25,000 acres.
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.</li

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  BAD_SEARCH_REQUEST Customer number not found in database.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $customer_nbr   The customer number identifying this grower
string   $statename   State name.
struct   $criteria   Array of criteria.
boolean   $wkt   Returns WKT of the boundary if true. Default false.

[ Top ]

static method get_customer_clu_boundaries [line 432]

static base64|boolean get_customer_clu_boundaries( string $customer_nbr, [string $statename = 'any'], [string $format = "shapefile"], [ $criteria = array()])

Returns the attributes and geometries (projected in latlong/NAD83, EPSG 4269) of the CLUs in the attributed CLU database belonging to the grower identified by CUSTOMER_NBR.

CLUs are returned in the format specified by FORMAT (defaults to ESRI Shapefile). If STATENAME is set, restricts the results to those boundaries within the given state.

Available formats are "shapefile" (ESRI Shapefile), "mapinfo" (MapInfo MIF/MID), "GML" (OGC GML), "KML" (Google Earth KML), or "GeoJSON" (GeoJSON file). The shapefile, mapinfo, and GML formats are multi-file, and are returned in a ZIP.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • county: Name of a county within STATENAME.
  • acres: Area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • prodcode: an array of producer codes to match against; this can be one of the following:
    • OW: Owner.
    • OP: Operator.
    • OO: Owner/Operator.
    • OT: Other Tenant.
  • extent: An extents struct, spatially limiting matched boundaries to those in the given extent. This must be in latlong NAD83 (EPSG:4269).
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.

The CLU features will have the following attributes:

  • fips_st_cd: FIPS state number.
  • fips_cnty_cd: FIPS county number.
  • farm_nbr: FSA-578 farm number.
  • tract_nbr: FSA-578 tract number.
  • field_nbr: FSA-578 field number.
  • clu_nbr: FSA-578 CLU number.
  • fsa_acres: Acreage of field as reported to FSA. May not match measured area of geometry!
  • crop_cd: FSA standard crop number.
  • crop_short_desc: FSA standard crop letter code.
  • crop_type_cd: FSA standard crop type (subtype of crop).
  • the_geom: CLU geometry. Specific representation depends on the output format.

Returns FALSE if the customer number is not found in the database.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
exception:  SHAPEFILE_DUMP_FAILURE Export failed due to backend error.
exception:  BAD_SEARCH_REQUEST Customer number not found in database.
access:  public


Parameters:

string   $customer_nbr   The customer number identifing this grower.
string   $statename   State name.
string   $format   Format of the output file.
   $criteria  

[ Top ]

static method get_customer_clu_extents [line 202]

static array|boolean get_customer_clu_extents( string $customer_nbr, [string $statename = 'any'], [ $criteria = array()])

Returns the extents (in latlong, EPSG:4269) of the CLUs in the attributed CLU database belonging to the grower identified by CUSTOMER_NBR. Use of this method requires the "use_attribclus" privilege.

Extents are returned as a struct with coordinate fields MINX, MINY, MAXX, MAXY.

If STATENAME is set, restricts the results to those boundaries within the given state.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • county: Name of a county within STATENAME.
  • acres: Area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • prodcode: an array of producer codes to match against; this can be one of the following:
    • OW: Owner.
    • OP: Operator.
    • OO: Owner/Operator.
    • OT: Other Tenant.
  • extent: An extents struct, spatially limiting matched growers to those with boundaries in the given extent. This must be in latlong NAD83 (EPSG:4269). The area of the extent must not exceed 25,000 acres.
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  BAD_SEARCH_REQUEST Customer number not found in database.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $customer_nbr   The customer number identifying this grower
string   $statename   State name.
   $criteria  

[ Top ]

static method get_customer_clu_pdf [line 1080]

static base64|boolean get_customer_clu_pdf( string $mapcontext, string $customer_nbr, [struct $analysisimages = array()])

Generates and returns a PDF report mapping out the attributed CLU boundaries owned by grower CUSTOMER_NBR, using map MAPCONTEXT to draw the maps.

MAPCONTEXT should be for the state in which the grower's CLU boundaries are found, but it is not an error if this isn't the case. The grower's attributed CLU boundaries must already be hilited in order to generate the PDF! Select them using one of the selection functions or HILITE_CUSTOMER_CLU_BOUNDARIES before calling this function!

ANALYSISIMAGES is an optional struct, keyed to the hilite SHPIDs of the attributed clus, with values of analysis (or edited image) image handles to display with the CLUs. Only one image handle can be associated with each CLU hilite. (Use of this feature requires administrator rights.)

Returns FALSE if the grower has no CLU boundaries.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  MAP_NOT_FOUND Map context does not exist.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $mapcontext   The map context.
string   $customer_nbr   Customer number of the grower.
struct   $analysisimages   Struct of analyses to display with CLU boundaries.

[ Top ]

static method get_hilited_clu_attributes [line 843]

static struct|boolean get_hilited_clu_attributes( )

Returns the attributes of the attributed CLUs which are currenty hilited.

Attributes are returned in a struct keyed to the SHPID of the hilites, with values being CLU attribute structs defined as follows:

  • statefips: State FIPS code.
  • countyfips: County FIPS code.
  • farmnbr: FSA farm number.
  • tractnbr: FSA tract number.
  • clunbr: FSA CLU number.
  • fieldnbr: FSA field number. For split CLUs with multiple crops, this will be clunbr plus a letter designation. Otherwise, same as clunbr.
  • fsa_acres: Acreage of the CLU according to the FSA.
  • cropcode: FSA numeric crop code for the CLU's crop, if available.
  • cropdesc: FSA crop name, if available.
  • croptype: FSA crop type/variety code, if available.
  • cropacres: Acreage of the CLU area planted with this crop, if available.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


[ Top ]

static method get_hilited_clu_boundaries [line 1009]

static base64|boolean get_hilited_clu_boundaries( [string $format = "shapefile"])

Returns the attributes and geometries (projected in latlong/NAD83, EPSG 4269) of the CLUs in the attributed CLU database which are currently hilited.

CLUs are returned in the format specified by FORMAT (defaults to ESRI Shapefile).

Available formats are "shapefile" (ESRI Shapefile), "mapinfo" (MapInfo MIF/MID), "GML" (OGC GML), "KML" (Google Earth KML), or "GeoJSON" (GeoJSON file). The shapefile, mapinfo, and GML formats are multi-file, and are returned in a ZIP.

The CLU features will have the following attributes:

  • extents: Extents of the CLU in latlong/NAD83, as standard extents struct.
  • fips_st_cd: FIPS state number.
  • fips_cnty_cd: FIPS county number.
  • farm_nbr: FSA-578 farm number.
  • tract_nbr: FSA-578 tract number.
  • field_nbr: FSA-578 field number.
  • clu_nbr: FSA-578 CLU number.
  • fsa_acres: Acreage of field as reported to FSA. May not match measured area of geometry!
  • crop_cd: FSA standard crop number.
  • crop_short_desc: FSA standard crop letter code.
  • crop_type_cd: FSA standard crop type (subtype of crop).
  • the_geom: CLU geometry. Specific representation depends on the output format.

Returns FALSE if the customer number is not found in the database.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  HILITE_NOT_FOUND No shapes hilited or given hilite ID does not exist.
exception:  BAD_SEARCH_REQUEST Bad ownership code, or hilite is not an attributed CLU.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
exception:  SHAPEFILE_DUMP_FAILURE Export failed due to backend error.
access:  public


Parameters:

string   $format   Format of the output file.

[ Top ]

static method get_hilited_clu_customers [line 922]

static array get_hilited_clu_customers( integer $shpid, [array $ownership = array('OW', 'OP', 'OO')])

Returns an array of customer info structs associated with the attributed CLU whose hilited boundary is identified by SHPID.

OWNERSHIP is an array of ownership codes (producer codes) which identify how the customer is associated with the CLU boundaries. Valid values are:

  • OW: Owner.
  • OP: Operator.
  • OO: Owner/Operator.
  • OT: Other Tenant.

By default, OT relationships are excluded.

The returned array does not include grower information other than the customer number.

Returns false if no match was found (no ownership information available).

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
exception:  HILITE_NOT_FOUND No shapes hilited or given hilite ID does not exist.
exception:  BAD_SEARCH_REQUEST Bad ownership code, or hilite is not an attributed CLU.
access:  public


Parameters:

integer   $shpid   SHPID of a hilited attributed CLU boundary.
array   $ownership   Ownership codes to search for. Defaults to ('OW', 'OP', 'OO').

[ Top ]

static method hilite_clus_by_criteria [line 758]

static boolean|struct hilite_clus_by_criteria( string $state, [string $county = "none"], [struct $criteria = array()])

Selects CLUs from the attributed CLU database which are within STATE, optionally filtered by COUNTY and CRITERIA, and hilites the resulting boundaries.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • gids: Array of CLU boundary GIDs. Each CLU so identified will be hilited, unless they do not match the other criteria given.
  • acres: area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • extent: An extents struct, spatially limiting matched boundaries to those in the given extent. This must be in latlong NAD83 (EPSG:4269).
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.

Returns hilite struct for all hilited shapes, including the newly hilited attributed CLUs.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  BAD_SEARCH_REQUEST State is not recognized, or cannot set both TOTALACRES and CROPACRES, or cannot set CROPACRES without setting CROP, or CROP must be a numeric FCIC code, or PRODCODE is not recognized, or invalid comparison.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $state   The state being searched. Required.
string   $county   County within the state to be searched. Required.
struct   $criteria   Criteria to search for. Optional.

[ Top ]

static method hilite_customer_clu_boundaries [line 550]

static struct|boolean hilite_customer_clu_boundaries( string $customer_nbr, [string $statename = 'any'], [ $criteria = array()])

Selects CLUs from attributed CLU database for grower CUSTOMER_NBR, and copies them to the hilite table for the current user.

If STATENAME is set, restricts the results to those boundaries within the given state.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • county: Name of a county within STATENAME.
  • acres: Area of each CLU boundary in acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and
  • crop: a numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • prodcode: an array of producer codes to match against; this can be one of the following:
    • OW: Owner.
    • OP: Operator.
    • OO: Owner/Operator.
    • OT: Other Tenant.
  • extent: An extents struct, spatially limiting matched boundaries to those in the given extent. This must be in latlong NAD83 (EPSG:4269).
  • limit: Integer value, limits the number of results (and thus hilites) to the value given. This is a maximum; searches may return fewer results, or none at all.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets and hilite groups of results at a time.

By default, OT relationships are excluded.

Returns hilite struct for all hilited shapes, including the newly hilited attributed CLUs.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  BAD_SEARCH_REQUEST Customer number not found in database.
exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
access:  public


Parameters:

string   $customer_nbr   The customer number identifying this grower.
string   $statename   State name.
   $criteria  

[ Top ]

static method query_map_layer_at_map_coordinate [line 1151]

static struct|boolean query_map_layer_at_map_coordinate( string $mapcontext, double $xcord, double $ycord, mixed $layer, [string $coordsys = "+init=EPSG:4269"], [double $tolerance = 0])

Queries the layer identified by LAYER in map MAPCONTEXT, at the point defined by map coordinates XCORD and YCORD, and returns attribute information about any intersecting vectors at that point. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified. LAYER may be the index number or the name of the layer to query. LAYER must identify a vector layer; this function does not support querying raster layers.

If TOLERANCE is greater than 0, the layer query will also look for shapes which are within TOLERANCE meters of the point. This allows for "inexact" matches.

Returns a struct keyed to the permanent ID of the shapes in the layer, with values being per-shape attribute structs. The exact keys and values of these attribute structs will vary by layer. Each attribute struct will contain an extents struct for the shape's extents, keyed to "extents".

If no results found, returns false.

This CLU_MAPCENTER_API version returns object information as given for the 'objects' key in the struct returned by get_accessible_regions_and_objects() when querying one of the object layers ("boundaries", "locations", or "paths"), and returns CLU attributes as given for get_hilited_clu_attributes() when querying the attributed CLU layer; otherwise, attributes returned are those of the shape directly, without any joining to other tables.




Tags:

exception:  PARAMETER_CONSTRAINT_VIOLATION Raster query not supported, or layer not visible at current map scale, or tolerance distance cannot be negative, or coordinate system specified was not recognized as valid.
exception:  MAP_NOT_FOUND Map context does not exist.
exception:  LAYER_NOT_FOUND Layer given does not exist in map context.
access:  public


Overrides mapcenter_api::query_map_layer_at_map_coordinate() (Queries the layer identified by LAYER in map MAPCONTEXT, at the point defined by map coordinates XCORD and YCORD, and returns attribute information about any intersecting vectors at that point. XCORD and YCORD must be in latlong NAD83 (EPSG 4269) unless COORDSYS is specified. LAYER may be the index number or the name of the layer to query. LAYER must identify a vector layer; this function does not support querying raster layers.)

Parameters:

string   $mapcontext   The map context.
double   $xcord   X coordinate (longitude for latlong).
double   $ycord   Y coordinate (latitude for latlong).
mixed   $layer   Layer index number or layer name.
string   $coordsys   Coordinate system (WKT or proj4) of the output. Defaults to latlong NAD83.
double   $tolerance   Tolerance distance in meters. Defaults to 0.

[ Top ]

static method query_map_layer_at_pixel_point [line 1239]

static struct|boolean query_map_layer_at_pixel_point( string $mapcontext, integer $xpoint, integer $ypoint, mixed $layer, [double $pixeltolerance = 0])

Queries the layer identified by LAYER in map MAPCONTEXT, at the pixel coordinates XPOINT and YPOINT, and returns attribute information about any intersecting vectors at that point. XPOINT must be in range 0 .. map width, YPOINT in range 0 .. map height. Coordinate 0,0 is top left corner of the map. LAYER may be the index number or the name of the layer to query. LAYER must identify a vector layer; this function does not support querying raster layers.

If PIXELTOLERANCE is greater than 0, the layer query will also look for shapes which are within PIXELTOLERANCE pixels of the pixel point. This allows for "inexact" matches.

Returns a struct keyed to the permanent ID of the shapes in the layer, with values being per-shape attribute structs. The exact keys and values of these attribute structs will vary by layer. Each attribute struct will contain an extents struct for the shape's extents, keyed to "extents".

If no results found, returns false.

This CLU_MAPCENTER_API version returns object information as given for the 'objects' key in the struct returned by get_accessible_regions_and_objects() when querying one of the object layers ("boundaries", "locations", or "paths"), and returns CLU attributes as given for get_hilited_clu_attributes() when querying the attributed CLU layer; otherwise, attributes returned are those of the shape directly, without any joining to other tables.




Tags:

exception:  PARAMETER_CONSTRAINT_VIOLATION Raster query not supported, or layer not visible at current map scale, or tolerance distance cannot be negative.
exception:  MAP_NOT_FOUND Map context does not exist.
exception:  LAYER_NOT_FOUND Layer given does not exist in map context.
access:  public


Overrides mapcenter_api::query_map_layer_at_pixel_point() (Queries the layer identified by LAYER in map MAPCONTEXT, at the pixel coordinates XPOINT and YPOINT, and returns attribute information about any intersecting vectors at that point. XPOINT must be in range 0 .. map width, YPOINT in range 0 .. map height. Coordinate 0,0 is top left corner of the map. LAYER must identify a vector layer; this function does not support querying raster layers.)

Parameters:

string   $mapcontext   The map context.
integer   $xpoint   X coordinate of pixel position.
integer   $ypoint   Y coordinate of pixel position.
mixed   $layer   Layer index number or layer name.
double   $pixeltolerance   Tolerance distance in pixels. Defaults to 0.

[ Top ]

static method query_map_layer_with_layer_shapes [line 1377]

static struct query_map_layer_with_layer_shapes( string $mapcontext, mixed $targetlayer, mixed $sourcelayer, array $ids)

Queries the layer identified by TARGETLAYER in map MAPCONTEXT, using the shapes identified by integer IDs in array IDS, which are contained in the layer SOURCELAYER. For each shape from SOURCELAYER in IDS, attribute information for the intersecting shapes from TARGETLAYER will be returned. SOURCELAYER and TARGETLAYER may be the index numbers or the names of the layers. They must identify vector layers; this function does not support querying raster layers.

Returns a struct keyed to the ID of each shape from SOURCELAYER in IDS, with the values being a struct keyed to the ID of each found shape in TARGETLAYER; values of those structs will be per-shape attribute structs. The exact keys and values of these attribute structs will vary by TARGETLAYER. Each attribute struct will contain an extents struct for the shape's extents, keyed to "extents". It will also contain a field "intersect_area", which describes the area of the intersection between the shapes from SOURCELAYER and from TARGETLAYER, in square meters.

If no results are found for a given shape from SOURCELAYER, the value of that ID in the returned struct will be boolean false.

This CLU_MAPCENTER_API version returns object information as given for the 'objects' key in the struct returned by get_accessible_regions_and_objects() when querying one of the object layers ("boundaries", "locations", or "paths"), and returns CLU attributes as given for get_hilited_clu_attributes() when querying the attributed CLU layer; otherwise, attributes returned are those of the shape directly, without any joining to other tables. The "intersect_area" struct field will be present in the results for objects and attributed CLUs.




Tags:

exception:  MAP_NOT_FOUND Map context does not exist.
exception:  LAYER_NOT_FOUND Source or target layer given does not exist in map context.
exception:  BAD_SEARCH_REQUEST Shape ID does not exist in source layer.
exception:  PARAMETER_CONSTRAINT_VIOLATION Raster query not supported, or layer not visible at current map scale, or no IDs provided for source layer, or IDs not integers.
access:  public


Overrides mapcenter_api::query_map_layer_with_layer_shapes() (Queries the layer identified by TARGETLAYER in map MAPCONTEXT, using the shapes identified by integer IDs in array IDS, which are contained in the layer SOURCELAYER. For each shape from SOURCELAYER in IDS, attribute information for the intersecting shapes from TARGETLAYER will be returned. SOURCELAYER and TARGETLAYER may be the index numbers or the names of the layers. They must identify vector layers; this function does not support querying raster layers.)

Parameters:

string   $mapcontext   The map context.
mixed   $targetlayer   Layer index number or layer name of target layer.
mixed   $sourcelayer   Layer index number or layer name of source layer.
array   $ids   Array of shape IDs for shapes from SOURCELAYER.

[ Top ]

static method query_multiple_map_layers_at_map_coordinate [line 1299]

static struct|boolean query_multiple_map_layers_at_map_coordinate( string $mapcontext, double $xcord, double $ycord, array $layerlist, [string $coordsys = "+init=EPSG:4269"], [double $tolerance = 0])

As query_map_layer_at_map_coordinate(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_map_coordinate().

Returns a struct keyed to the layer name or ID of each layer queried in LAYERLIST, with values being the query structs as returned by query_map_layer_at_map_coordinate(), or boolean false if the query of that layer returned no shapes.

This CLU_MAPCENTER_API version returns object information as given for the 'objects' key in the struct returned by get_accessible_regions_and_objects() when querying one of the object layers ("boundaries", "locations", or "paths"), and returns CLU attributes as given for get_hilited_clu_attributes() when querying the attributed CLU layer; otherwise, attributes returned are those of the shape directly, without any joining to other tables.




Tags:

exception:  PARAMETER_CONSTRAINT_VIOLATION Raster query not supported, or layer not visible at current map scale, or tolerance distance cannot be negative, or coordinate system specified was not recognized as valid, or no layers provided in LAYERLIST.
exception:  MAP_NOT_FOUND Map context does not exist.
exception:  LAYER_NOT_FOUND Layer given does not exist in map context.
access:  public


Overrides mapcenter_api::query_multiple_map_layers_at_map_coordinate() (As query_map_layer_at_map_coordinate(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_map_coordinate().)

Parameters:

string   $mapcontext   The map context.
double   $xcord   X coordinate (longitude for latlong).
double   $ycord   Y coordinate (latitude for latlong).
array   $layerlist   Array of layer index numbers or layer names.
string   $coordsys   Coordinate system (WKT or proj4) of the output. Defaults to latlong NAD83.
double   $tolerance   Tolerance distance in meters. Defaults to 0.

[ Top ]

static method query_multiple_map_layers_at_pixel_point [line 1335]

static struct|boolean query_multiple_map_layers_at_pixel_point( string $mapcontext, integer $xpoint, integer $ypoint, mixed $layerlist, [double $pixeltolerance = 0])

As query_map_layer_at_pixel_point(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_pixel_point().

Returns a struct keyed to the layer name or ID of each layer queried in LAYERLIST, with values being the query structs as returned by query_map_layer_at_pixel_point(), or boolean false if the query of that layer returned no shapes.

This CLU_MAPCENTER_API version returns object information as given for the 'objects' key in the struct returned by get_accessible_regions_and_objects() when querying one of the object layers ("boundaries", "locations", or "paths"), and returns CLU attributes as given for get_hilited_clu_attributes() when querying the attributed CLU layer; otherwise, attributes returned are those of the shape directly, without any joining to other tables.




Tags:

exception:  PARAMETER_CONSTRAINT_VIOLATION Raster query not supported, or layer not visible at current map scale, or tolerance distance cannot be negative, or no layers provided in LAYERLIST.
exception:  MAP_NOT_FOUND Map context does not exist.
exception:  LAYER_NOT_FOUND Layer given does not exist in map context.
access:  public


Overrides mapcenter_api::query_multiple_map_layers_at_pixel_point() (As query_map_layer_at_pixel_point(), but queries each of the layers given in array LAYERLIST; all other arguments are as for query_map_layer_at_pixel_point().)

Parameters:

string   $mapcontext   The map context.
integer   $xpoint   X coordinate of pixel position.
integer   $ypoint   Y coordinate of pixel position.
mixed   $layerlist   Layer index number or layer name.
double   $pixeltolerance   Tolerance distance in pixels. Defaults to 0.

[ Top ]

static method search_clu_database [line 101]

static boolean|array search_clu_database( string $state, [string $county = "none"], [array $criteria = array()])

Searches attributed CLU database for a particular grower or set of growers. If COUNTY is "none", all counties in STATE are searched. COUNTY cannot be "none" if no other search criteria are specified.

CRITERIA is a struct which specifies criteria to narrow the search. The following fields may be specified:

  • growerid: Numeric grower ID. Unique to every grower, so only one result will be returned. Not a good idea to combine with other criteria (but this is not an error).
  • lastname: Last name of the grower. Case-insensitive, partial matches allowed.
  • firstname: First name of the grower. Case-insensitive, partial matches allowed.
  • coname: Company/business name of the grower. Case-insensitive, partial matches.
  • totalacres: The grower's total acres, a struct with two fields: "comparison", a comparison operator (one of ">", "<", ">=", or "<="), and "value", the numeric value to compare against.
  • fieldsize: Size of each field; struct identical to "totalacres", but the comparison will apply to each individual field's acreage, not to the sum total.
  • crop: A numeric code from the FCIC crop types (see GET_FCIC_CROP_TYPES).
  • cropacres: Grower's total acres of the crop under "crop", above. Struct identical to the one for "totalacres"; this is invalid if "crop" is not set.
  • cropfieldsize: Size of each field's acreage planted with the crop under "crop", above. Struct identical to the one for "totalacres", but the comparison applies to each individual field's cropped acreage. This is invalid if "crop" is not set.
  • prodcode: An array of producer codes to match against; this can be one of the following:
    • OW: Owner.
    • OP: Operator.
    • OO: Owner/Operator.
    • OT: Other Tenant.
  • extent: An extents struct, spatially limiting matched growers to those with boundaries in the given extent. This must be in latlong NAD83 (EPSG:4269). The area of the extent must not exceed 25,000 acres.
  • limit: Integer value, limits the number of results to the value given. This is a maximum; searches may return fewer results, or none at all. If not set, defaults to 1000.
  • offset: Integer value, skips the given number of results before returning rows. Useful with LIMIT to "scroll through" result sets.

Name searches (those which use LASTNAME, FIRSTNAME, or CONAME) work as follows: If LASTNAME is set, FIRSTNAME will be combined with it if set; the match will be only for growers who match both criteria. If LASTNAME and CONAME are both set, both will be checked independently; the results will be growers which match either LASTNAME (and FIRSTNAME, if set) or CONAME. FIRSTNAME combined with CONAME (but not also LASTNAME) has no effect, and the search proceeds using CONAME. FIRSTNAME by itself is not permitted. The search is case-insensitive.

Partial name matches are allowed: the portion of the name parameter given will be matched against with a wildcard for the end of the string. This means that, for instance, setting CONAME to "LA" would retrieve all growers whose company criteria start with "LA". Note that the portion of the string given must match exactly (except for case)! Also, the given string will be taken to be the first part of the full name; this method cannot do "wildcard" matches against middle or end portions of the name.

Returns boolean FALSE if no match found, otherwise returns array of structs: 1 substruct per match found, containing the grower's identification data and customer number. Each struct may have the following fields:

  • customer_nbr: Grower's unique customer number.
  • co_name: Company (business) name.
  • first_name: First name.
  • middle_init: Middle initial.
  • last_name: Last name.
  • name_suffix: Name suffix, if any.
  • addr_1: Main part of address.
  • addr_2: Additional part of address.
  • city: City of residence.
  • st_cd: Two-letter state code.
  • zip_cd: 5 digit ZIP code.
  • zip_cd_4: 4 digit ZIP extension.
  • phone_nbr: Phone number.
If the field would be empty, it will not be present.

Use of this method requires the "use_attribclus" privilege.




Tags:

exception:  INSUFFICIENT_PRIVILEGES User does not have the "use_attribclus" privilege.
exception:  MISSING_PARAMS Cannot perform searches on full state without any criteria, or must specify one of LASTNAME or CONAME for name-based searches.
exception:  BAD_SEARCH_REQUEST State is not recognized, or cannot set both TOTALACRES and CROPACRES, or cannot set CROPACRES without setting CROP, or CROP must be a numeric FCIC code, or PRODCODE is not recognized, or invalid comparison.
access:  public


Parameters:

string   $state   The state being searched. Required.
string   $county   County within the state to be searched. Optional. Set to "none" if no county specified.
array   $criteria   Criteria to search for. Optional, but if not set, COUNTY is required.

[ Top ]


Documentation generated on Wed, 19 Aug 2026 18:55:24 -0500 by phpDocumentor 1.4.4