Tutorial dekho queries
-
Upload
dekhoslides -
Category
Technology
-
view
1.262 -
download
1
description
Transcript of Tutorial dekho queries
Dekho queries
Agenda
• Introduction to Dekho queries
• Query types and how to use them
• Spatially enabled queries
• Best practices and considerations
Complete the picture… with queries..
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
Query sources
• JDBC connection
• Esri ArcGIS Server Map Service (GDB Only)
• Web Service
Query types • Searching
– Search
– Combo + Type-Ahead
• Result viewing
– Layer Information Query
– Feature Info Query
• Others
– Call out
– Integration
1
2
3
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 properties Where street_name like %Manningtree%
User data entry fields • Go into the “Where
clause” of the search SQL statement
• Text / Date / List / Drop Down
Type-ahead Combo-box
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 = What you use
• Ordered (? Your call…)
ID Value
Vic Victoria
NSW New South Wales
Tas Tasmania
WA West Australia
SA South Australia
NT Northern Territory
Search #2
Reusing Combo and Type-ahead
• Define once and reuse
Combo-Box Query
Search #1 Search #3
Working with search results • Working with a complete picture
• Connecting with non-spatial data sources
• Getting the information you need
ObjectID ObjectID
ObjectID ObjectID
ObjectID ObjectID
ObjectID ObjectID
LIQ’s and FIQ’s
Layer Information
Specific feature Information
Getting the information you need
Asset Mgmt System
Asset ID
GDB
Current Selected Feature
The information I wish to display
Getting the information you need
ObjectID AssetID
AID
Asset Mgmt System
Asset ID
GDB ObjectID
Foreign Asset Id KEY
AssetID
GDB link to 3rd party systems
Getting the information you need
ObjectID AssetID
AID X Y Z
What Dekho does: 1. Get AssetId by ObjectID (GDB)
2. Find row in AMS table based on AssetID
3. Select relevant fields (X,Y,Z)
Getting the data you need
Asset Mgmt System
Asset ID
GDB
ObjectID+AssetID
Mapping relationship SELECTION.AssetID = AMS.AssetID
LIQ’s and FIQ’s
Multiple queries span across multiple tabs
Example: reviewing a property
Owners history list
Related approvals
Lot # information
FIQ1 FIQ2 FIQ3
Queries and maps
Query types • Searching
– Search
– Combo + Typeahead
• Result viewing
– Layer Information Query
– Feature Info Query
• Others
– Call out
– Integration
Callout Query
• Any data source
• Select relevant fields
Dekho Integration Query
• SQL query that translates one set of values (OBJECTID) to another (ASSETID)
Dekho Integration Query
Dekho Integration Query
Query types • Searching
– Search
– Combo + Typeahead
• Result viewing
– Layer Information Query
– Feature Info Query
• Others
– Call out
– Integration
Spatial selection
I want users to search a heritage site and see properties
that intersect with the selected heritage site
Spatial selection
Heritage site layer
Property lot layer
Spatial query
Search query
Queries points for consideration
Remember!! • Spatial query is optional
– Search query
– Feature Info query
• Results are from the TARGET layer
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
Complete the picture… with queries..
Product Information:
www.esriaustralia.com.au/dekho
www.esriaustralia.com.au/dekhohelp
www.esriaustralia.com.au/dekhoblog