This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo_cloud_maps_query [2019/06/25 05:21] kevinwan |
thinkgeo_cloud_maps_query [2019/06/25 06:47] (current) kevinwan [Get Attributes of Layer] |
||
---|---|---|---|
Line 20: | Line 20: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/within | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/within | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20WithinV1|GetFeaturesWithin]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20WithinV1|GetFeaturesWithin]] and click "Try It Out" to explore this API online. | ||
Line 31: | Line 40: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/containing | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/containing | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20ContainingV1|GetFeaturesContaining]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20ContainingV1|GetFeaturesContaining]] and click "Try It Out" to explore this API online. | ||
Line 42: | Line 60: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/intersecting | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/intersecting | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20IntersectingV1|GetFeaturesIntersecting]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20IntersectingV1|GetFeaturesIntersecting]] and click "Try It Out" to explore this API online. | ||
Line 53: | Line 80: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/overlapping | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/overlapping | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20OverlappingV1|GetFeaturesOverlapping]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20OverlappingV1|GetFeaturesOverlapping]] and click "Try It Out" to explore this API online. | ||
Line 64: | Line 100: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/touching | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/touching | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20TouchingV1|GetFeaturesTouching]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20TouchingV1|GetFeaturesTouching]] and click "Try It Out" to explore this API online. | ||
Line 75: | Line 120: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/nearest | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/nearest | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">searchRadius</span>: Optional. The radius of the search area around the target geometry. If not specified, it's assumed that there is no limit.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">searchRadiusUnit</span>: Optional. The unit of measure in which the <span class="api-parameter-name">searchRadius</span> is expressed. Defaults to Meter.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20NearestV1|GetFeaturesNearest]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20NearestV1|GetFeaturesNearest]] and click "Try It Out" to explore this API online. | ||
Line 86: | Line 142: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/within-distance | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/within-distance | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The layer to query.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">wkt</span>: The well-known text of the target geometry.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">srid</span>: Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String</span>: Optional. The Proj4 string of the input and output feature's coordinate system.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">distance</span>: Optional. The distance within which to find features. Defaults to 200.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">distanceUnit</span>: Optional. The unit of measure in which the <span class="api-parameter-name">distance</span> is expressed. Defaults to Meter.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">maxResults</span>: Optional. The maximum number of features to return. Defaults to 100.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">returnFeatureAttributes</span>: Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true.</span></html> | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">featureAttributesToReturn</span>: Optional. If <span class="api-parameter-name">returnFeatureAttributes</span> is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20Within%20DistanceV1|GetFeaturesWithinDistance]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20Features%20Within%20DistanceV1|GetFeaturesWithinDistance]] and click "Try It Out" to explore this API online. | ||
Line 96: | Line 163: | ||
HTTP POST | HTTP POST | ||
https://cloud.thinkgeo.com/api/v1/maps/query/custom | https://cloud.thinkgeo.com/api/v1/maps/query/custom | ||
+ | </code> | ||
+ | |||
+ | //**POST Body (Content-Type: application/json)**// | ||
+ | <code javascript> | ||
+ | { | ||
+ | "queryLayer": "string", //The layer to query. | ||
+ | "queryType": "string", //The type of query to perform. Value can be one of: "Within", "Containing", "Intersecting", "Overlapping", "Touching", "Nearest", "Within-Distance". | ||
+ | "wkt": "string", //The well-known text of the target geometry. | ||
+ | "srid": int, //Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326. | ||
+ | "proj4String": "string", //Optional. The Proj4 string of the input and output feature's coordinate system. | ||
+ | "distance": double, //Optional. The distance within which to find features. Defaults to 200. | ||
+ | "distanceUnit": "string", //Optional. The unit of measure in which the distance is expressed. Defaults to Meter. | ||
+ | "searchRadius": double, //Optional. The radius of the search area around the target geometry. If not specified, it's assumed that there is no limit. | ||
+ | "searchRadiusUnit": "string", //Optional. The unit of measure in which the searchRadius is expressed. Defaults to Meter. | ||
+ | "maxResults": int, //Optional. The maximum number of features to return. Defaults to 100. | ||
+ | "returnFeatureAttributes": bool, //Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true. | ||
+ | "featureAttributesToReturn": [ | ||
+ | "string" | ||
+ | ] //Optional. If returnFeatureAttributes is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response. | ||
+ | } | ||
</code> | </code> | ||
Line 119: | Line 206: | ||
https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/attributes | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/attributes | ||
</code> | </code> | ||
+ | |||
+ | //**URL Parameters**// | ||
+ | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The query layer.</span></html> | ||
Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20World%20Maps%20Query%20Attributes%20Of%20LayerV1|GetAttributesOfLayer]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20World%20Maps%20Query%20Attributes%20Of%20LayerV1|GetAttributesOfLayer]] and click "Try It Out" to explore this API online. |