Tutorial dekho queries


Published on

Slides to accompany this post: http://www.dekho.com.au/understanding-queries-and-saying-goodbye/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Tutorial dekho queries

  1. 1. Dekho queries
  2. 2. Agenda• Introduction to Dekho queries• Query types and how to use them• Spatially enabled queries• Best practices and considerations
  3. 3. Complete the picture… with queries..
  4. 4. Dekho queries• Pull information from data sources – Internal / External – Database / Web service / Map service• Defined in Dekho Studio• Executed in runtime by end user• Require some SQL skills• Reusable between applications
  5. 5. Query sources• JDBC connection• Esri ArcGIS Server Map Service (GDB Only)• Web Service
  6. 6. Query types• Searching – Search 1 – Combo + Type-Ahead• Result viewing – Layer Information Query 2 – Feature Info Query 3• Others – Call out – Integration
  7. 7. Defining a Search Query• Always executed against a feature class in the GDB• Returning a single spatial feature set (ObjectID)• User interaction – data entry fields (optional)Select * from [Feature Class]Where [User data entry]Select * from propertiesWhere street_name like %Manningtree%
  8. 8. User data entry fields• Go into the “Where clause” of the search SQL statement• Text / Date / List / Drop Down
  9. 9. Type-ahead Combo-box
  10. 10. Combo and Type-ahead• Structure user data entry in search queries• ANY database (not just the GDB)• Lists Of Values (LOV): – Value = What you display ID Value – ID = What you use Vic Victoria• Ordered (? Your call…) NSW New South Wales Tas Tasmania WA West Australia SA South Australia NT Northern Territory
  11. 11. Reusing Combo and Type-ahead• Define once and reuse Search #1 Search #2 Search #3 Combo-Box Query
  12. 12. Working with search results• Working with a complete picture• Connecting with non-spatial data ObjectID sources ObjectID ObjectID ObjectID ObjectID• Getting the information you need ObjectIDObjectID ObjectID
  13. 13. LIQ’s and FIQ’sLayer Information Specific feature Information
  14. 14. Getting the information you need Current GDB Selected FeatureAsset ID Asset Mgmt The information System I wish to display
  15. 15. Getting the information you need Foreign Asset Id KEY ObjectID AssetID ObjectID GDBAsset ID AID Asset Mgmt System AssetID
  16. 16. GDB link to 3rd party systems
  17. 17. Getting the information you needObjectID AssetID AID X Y ZWhat Dekho does:1. Get AssetId by ObjectID (GDB)2. Find row in AMS table based on AssetID3. Select relevant fields (X,Y,Z)
  18. 18. Getting the data you need Asset ID ObjectID+AssetID Mapping relationship SELECTION.AssetID = AMS.AssetIDAsset Mgmt GDB System
  19. 19. LIQ’s and FIQ’sMultiple queries span across multiple tabs
  20. 20. Example: reviewing a property FIQ1 FIQ3 FIQ2Owners history list Lot # information Related approvals
  21. 21. Queries and maps
  22. 22. Query types• Searching – Search – Combo + Typeahead• Result viewing – Layer Information Query – Feature Info Query• Others – Call out – Integration
  23. 23. Callout Query• Any data source• Select relevant fields
  24. 24. Dekho Integration Query• SQL query that translates one set of values (OBJECTID) to another (ASSETID)
  25. 25. Dekho Integration Query
  26. 26. Dekho Integration Query
  27. 27. Query types• Searching – Search – Combo + Typeahead• Result viewing – Layer Information Query – Feature Info Query• Others – Call out – Integration
  28. 28. Spatial selectionI want users to search a heritage site and see properties that intersect with the selected heritage site
  29. 29. Spatial selection Spatial queryProperty lot layerHeritage site layer Search query
  30. 30. Queries points for consideration
  31. 31. Remember!!• Spatial query is optional – Search query – Feature Info query• Results are from the TARGET layer
  32. 32. Queries points for consideration• Renaming DB fields names to logical names select Field_Name1 as “User Friendly Name1”• Complete the picture vs. Information overload – Avoid select * statements – Use multiple FIQ’s and LIQ’s – Map to end user workflow• Query performance optimization
  33. 33. Complete the picture… with queries..
  34. 34. Product Information:www.esriaustralia.com.au/dekhowww.esriaustralia.com.au/dekhohelpwww.esriaustralia.com.au/dekhoblog