MapInfo Pro 2019 - community.precisely.com
Transcript of MapInfo Pro 2019 - community.precisely.com
MapInfo Pro 2019aka v19.0
September 2019
Peter Horsbøll Møller
Retrospective:MapInfo Pro 17.0.3 + 17.0.4• MapInfo Marketplace Preview
• Keyboard Shortcuts
• Creating add-ins using Python
• MapInfo Pro Drone add-in
• GDAL Drivers for MapInfo NativeX and MapInfo MRR
• Bug fixes
2
MapInfo Pro 2019
• SQL Improvements
• Layout Improvements
• Heat Map Tools
• MapInfo Marketplace
3
MapInfo Pro 2019
Improving the way you query
MapInfo Pro 2019
Multiple approachesThe syntax & functionality The interface
5
Select expression_list
From table_name [, ...]
[Where expression_group]
[Into results_table [Noselect] [Hide]]
[Group By column_list]
[Order By column_list]
New dedicated tools
Select by Location
Access to QueriesSQL dropdownTable List
MapInfo Pro 2019
6
Table Alias makes it easier to switch tables
Statement shows on the table in Table List
Spatial aggregations lets you keep the object
7
Joins allow more join conditions now
Possible thru the new SQL Window
Possible thru the new SQL Window
Cross Joins are now possible
More improvements coming…
The syntax & functionality
8
Select expression_list
From table_name [As "TableAlias"] [, ...]
[Where expression_group]
[Into results_table [Noselect] [Hide]]
[Group By column_list]
[Order By column_list]
[Limit num_records]
New Limit clause
Support for Table Alias
Support Spatial Aggregations
Cross Join Support
Select all columns from a specific table
Support for MapBasic
defines such as function
attributes and colors
MapInfo Pro 2019
The "Object" keyword
The syntax & functionality
9
Update table_name
Set column_name = expr [ , column_name = expr, ...]
[ Where [RowId = id_num | expression]]
[ DropIndex ( Auto | On | Off ) ]
Delete [Object]
From table_name
[ Where [RowId = id_num | expression]]
[ DropIndex ( Auto | On | Off ) ]
Expression support in Where Claus
Expression support in Where Claus
MapInfo Pro 2019
The syntax & functionality
• Table Alias: Select a.Name
From Addresses As "a"
• Column Alias: Select a.Name As "OtherName"
From Addresses As a
• All columns from a specific tableSelect a.*, Area(Overlap(a.obj, z.obj), "sq m")
From PopAreas As "a", Zones As "z"
Where a.obj Intersects z.obj
10
MapInfo Pro 2019
The syntax & functionality
• Function Defines: Select ObjectInfo(Obj, OBJ_INFO_NPNTS) As "Nodes"
From PopAreas
• Spatial AggregationsSelect Type, Count(*) "NumRecords", AggregateUnion(OBJ)
From PopAreas
Group By Type
• Specifying which object to use: Select Addresses.*, CartesianBuffer(obj, 24, 250, "m") object
From Addresses
11
MapInfo Pro 2019
The syntax & functionality
• Limit clauseSelect *
From Countries
Where Pop_1994 > 2000000
And Pop_1994 < 3000000
Limit 5
• Cross JoinsSelect Addresses.*, ObjectDistance(a.obj, z.obj, "m")
From Addresses As "a", Zones As "z"
Where ObjectDistance(a.obj, z.obj, "m") Between 1 And 200
12
MapInfo Pro 2019
The syntax & functionality
• Where clause for Delete: Delete From PopAreas
Where Not OBJ
• Where clause for UpdateUpdate PopAreas
Set Area_sqm = Area(obj, "sq m")
Where Area_sqm = 0
13
MapInfo Pro 2019
The interface
14
Version 17.0
Version 8.0
MapInfo Pro 2019
15
Dockable Window, stays open while queries are
running. Position is stored between sessions
List of SQL statements from the session
List of recently used tables, columns, functions
and more
Dropdown with Tables, Columns, Join
Conditions, Operators, Aggregators, Functions
and Column Values
Statement area, syntax highlighting and
Intellisense (use Ctrl+Space)
Checks syntax and shows query time and
number of records selected
Output options: Show in Browser, Add to Map,
Overlay Style and Find Selection
MapInfo Pro 2019
Statement List
• Favorites & from MapBasic script folder
• Statements from current session
• Preview statement in Tool Tip
• A new instance is created when edited
• Save, Rename, Reload & Delete
• Mark as Favorite
• Load from file
• Create new statement
16
Recent Items
• Holds the most recently used items
• Click to insert into script area
• Right-click a text in the script area to add to the Recent Items
17
MapInfo Pro 2019
Lists for Tables, Columns and Joins
• Context aware
• Searchable
18
MapInfo Pro 2019
Lists for Operators, Aggregates & Functions
19
MapInfo Pro 2019
SQL Window
20
List of statements from the current session,
with history. A change results in a new script
Statement preview
Favorite, Rename, Reload from File & Save
Mixture of Select, Delete, Update and Insert
statement. And the new Script type, too.
Create New Statement
MapInfo Pro 2019
Values from Columns
• Get values from columns via dropdown
• Or via Intellisense
21
MapInfo Pro 2019
SQL Dropdown
22
Multiple SQL tools, new and old
Help building spatial joins
Close all Query Tables
Favorites, run or edit in SQL Window
Recent, run or edit in SQL Window
MapInfo Pro 2019
MapBasic Scripts
• The SQL Window supports multiple statements
• Save as Favorite and Run from the SQL Dropdown
23
MapInfo Pro 2019
Virtual Spatial Object
• You can now show the calculated spatial objects in a map
• Use the Object keyword if a query returns multiple spatial objects
24
MapInfo Pro 2019
MapBasic Defines
• You can now use MapBasic defines instead of the numeric codes in your queries
• It makes them easier to read.
• Here we are getting the name of the table the selection is based on
25
MapInfo Pro 2019
Cross Joins and Temporary Tables
• Join tables where objects don't touch
• Use temporary tables/queries in joins
• Use multiple queries via the SQL Window
26
MapInfo Pro 2019
Update using the SQL Window
• Supports updating objects
• Supports where expression
27
MapInfo Pro 2019
Select by Location• Build spatial joins via easy to use dialog
• Support all spatial operators and Within a distance
• Resulting query can afterwards be loaded into the SQL Window
28
MapInfo Pro 2019
Layout Improvements
• Support for Line Styles
• Support for Region Styles
• Vectorized Legends: More crisp Legends
• Improved performance when loading workspaces with layouts
• Improved performance when zooming/panning in layouts
29
MapInfo Pro 2019
30
Ma
pIn
fo P
ro 2
01
9
Heat Map• User friendly Heat Map tools in MapInfo Pro
31
MapInfo Pro 2019
32
Standard Detailed
Chunky Optimal
MapInfo Pro 2019
MapInfo Marketplace
• Browse
• Search
• Download
• Deploy
• Get Updates
33
MapInfo Pro 2019