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/18 07:43]
tgwikiupdate
map_suite_querying [2015/12/03 09:40] (current)
tgwikiupdate [Video Overview]
Line 2: Line 2:
  
 ===== Video Overview ===== ===== Video Overview =====
-Coming soon.+{{youtube>​RLe5HpPzWl4?​large |Web API Querying Learning Sample}}
  
 <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=====
-The Map Suite WebAPI Edition supports ​many types of queries. In this learning samplewe will show the results ​of queries and explain how to use the queriesThe different types of queries will be discussed.  +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.
- +
- +
-=====Type of query===== +
- +
-In this learning sample, there is an example of each of these types of query:+
  
 ==== Spatial Query==== ==== Spatial Query====
Line 18: Line 19:
 {{webapiedition:​codesamples:​QueryTool_Spatial_Query_Desktop.png?​300x180}} {{webapiedition:​codesamples:​QueryTool_Spatial_Query_Desktop.png?​300x180}}
 </​div>​ </​div>​
-The query function query by spatial. It can query features ​by different ​query types (Query types include ​within, contains, disjoint, intersects, overlaps and touches).+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 27: 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 36: 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 45: 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 53: 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.1447832603.txt.gz · Last modified: 2015/11/18 07:43 by tgwikiupdate