Dynamically Updated Layer GISDay.pdf · ArcGIS Portalm Ctrl+N Ctrl+O Ctrl+S Map Package.„...

18
Dynamically Updated Layer Creating a dynamic layer by querying SQL database

Transcript of Dynamically Updated Layer GISDay.pdf · ArcGIS Portalm Ctrl+N Ctrl+O Ctrl+S Map Package.„...

Dynamically Updated Layer

Creating a dynamic layer by querying SQL database

Taylor Gabrysiak, Tech- MCPHD• [email protected]

Parameters:• SQL server database• ArcGIS Desktop • Enterprise Portal 10.5

* Base deployment* Federated

Step 1:

Add Microsoft ODBC Driver 11 for SQL Server

2.

1.

3.

4.

5.

Permissions to SQL Server Database

Step 2:

• Method 1:

• Method 2:

Server Name

Step 3:

Register SQL database in Server Manager

1.

2.3.

Return to your Desktop SDE connection you made in Catalog, and click ‘Properties’. The SDE location will be after ‘Name:’

Step 4:

Create Query Layer

Note: Table Structure

• If location data is stored as lat, long :

You need to create a field that converts the x, y values to a usable string and assigns a coordinate system, ‘4326’.

(You can apply this in the query layer dialog box after your select statement)

Note:

If Shape Type, SRID, Coordinate System information doesn’t auto generate, tool is not reading data base.

(Drag and drop from Catalog window.)

Step 5:

Publish to Portal

Final Thoughts• Data can be point, polyline or polygon• Large amounts of data may render or slowly or

incompletely

References• https://pro.arcgis.com/en/pro-app/help/data/query-layers/creating-a-query-

layer.htm• http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-

toolbox/make-query-layer.htm