User Tools

Site Tools


map_suite_querying

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_querying [2015/11/19 04:00]
tgwikiupdate [Spatial Query]
map_suite_querying [2015/12/03 09:40] (current)
tgwikiupdate [Video Overview]
Line 5: Line 5:
  
 <div newline></​div>​ <div newline></​div>​
 +<div download_viewsource_buttons tryitonline>​
 +{{filehistory:​WebAPIEditionSample_Querying_CS_151111.zip|C#​ Project}}
 +[[source_code_webapieditionsample_querying.zip|View Source]]
 +[[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​QueryTools/​leaflet/​|Try It Online(Leaflet)]]
 +[[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​QueryTools/​openlayers/​|Try It Online(Openlayers)]]
 +
 +</​div>​
 =====Overview===== =====Overview=====
-Map Suite WebAPI Edition supports multiple ways of how to query your map data layers. In this learning sample we are going to show you these query, including spatial query, SQL query and feature data query.+Map Suite WebAPI Edition supports multiple ways of how to query your map data layers. In this learning sample we will discuss some of the various querying tools.
  
 ==== Spatial Query==== ==== Spatial Query====
Line 12: Line 19:
 {{webapiedition:​codesamples:​QueryTool_Spatial_Query_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_Spatial_Query_Desktop.png?​300x180}}
 </​div>​ </​div>​
-In this sample, there are several different spatial ​query types, including ​within, contains, disjoint, intersects, overlaps and touches. For example we do the within that will show all of the InternalFeatures that are within the target Feature.+Allows you to take one feature and see how they interrelate with other features. There are several different ​types of spatial ​querying: ​within, contains, disjoint, intersects, overlapsand touching
  
 <div newline/>​ <div newline/>​
Line 21: Line 28:
 {{webapiedition:​codesamples:​QueryTool_Query_Feature_By_Distance_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_Query_Feature_By_Distance_Desktop.png?​300x180}}
 </​div>​ </​div>​
-The query function will show how to query features ​by distance ​and pointThe query function needs user' ​distance ​and a point. ​It can query all features within a circle. The center of circle is the point and the radius of circle is the distance. ​+Another popular type of query in GIS applications is to query by distance. ​In this example we show you how to return countries within a given distance ​from a point. ​  
  
 <div newline/>​ <div newline/>​
Line 30: Line 38:
 {{webapiedition:​codesamples:​QueryTool_Query_All_Feature_Data_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_Query_All_Feature_Data_Desktop.png?​300x180}}
 </​div>​ </​div>​
-The query function will show how to query all data. You can get all features by feature source. All column values ​of the features will be shown in table, and you can query feature by record id.+This sample shows inner relation between tabular or feature ​data associated with each shapeIn this sample we show a grid representation ​of each country in the world. When clicking on the result users are zoomed ​in to that specific country. This can be very helpful if you are using a data grid and want to be data driven or vice versa.
 <div newline/>​ <div newline/>​
 <div newline/>​ <div newline/>​
Line 39: Line 47:
 {{webapiedition:​codesamples:​QueryTool_Query_Feature_By_Click_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_Query_Feature_By_Click_Desktop.png?​300x180}}
 </​div>​ </​div>​
-The query function will show how to query feature by click map.You can query feature by click mapAll column values of feature are shown in table.+Users can also click on the map to find all features associated with what was clicked onIn this example we click on Brazil which returns all the attribute data associated with BrazilThis sample shows you how to use the map click event and how to query through the API.
 <div newline/>​ <div newline/>​
 <div newline/>​ <div newline/>​
Line 47: Line 55:
 {{webapiedition:​codesamples:​QueryTool_SQL_Query_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_SQL_Query_Desktop.png?​300x180}}
 </​div>​ </​div>​
-The query function will show how to query features by SQL. You can query features by SQL. All features information ​are shown in table.+This sample we use the power of SQL which allows users to write custom queries against their data sourcesIn this example we wrote a SQL query to return any countries that are landlocked. For the result we highlight each country that meets the criteria. This is another great way on how you can use the various querying APIs to analyze your data.
 <div newline/>​ <div newline/>​
 <div newline/>​ <div newline/>​
  
map_suite_querying.1447905646.txt.gz · Last modified: 2015/11/19 04:00 by tgwikiupdate