creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and...
Transcript of creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and...
![Page 1: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/1.jpg)
Creating Mosaic Datasets and Publishing Image Services using
Python Jie Zhang & Melanie Harlow
![Page 2: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/2.jpg)
Overview
• ArcGIS 10.1 • Mosaic dataset • Raster product (NEW) • Image service • Using Python
- To create - To publish - To use
![Page 3: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/3.jpg)
What is the mosaic dataset?
• A geodatabase data model used to catalog and process your collections of imagery
- Stored as a table and viewed as a table or image
• Indirect pixel management - Images can remain in their native format on disk or be
loaded into the geodatabase
• Unlimited size* • Provides dynamic mosaicking and
on-the-fly processing • License to create/edit – Standard or Advanced
![Page 4: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/4.jpg)
Building a mosaic dataset
Simple workflow 1. Create mosaic dataset 2. Add imagery (raster type) 3. Optionally, edit properties and functions
![Page 5: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/5.jpg)
Creating mosaic datasets in python
• Mosaic Dataset toolset - Create Mosaic Dataset tool - Add Rasters To Mosaic Dataset tool
• All tools are accessible through arcpy
• Useful python API - Iterator
- ListRasters - Cursors from arcpy.da
- arcpy.da.SearchCursor - arcpy.da.UpdateCursor
![Page 6: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/6.jpg)
Customizing mosaic datasets
1. Customize raster type (art.xml) 2. Add / join / calculate fields 3. Edit properties 4. Edit raster function (rft.xml) 5. Pyramids, statistics, overviews, color correction,
seamlines 6. Create referenced mosaic dataset
![Page 7: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/7.jpg)
Raster products – NEW
• Simplifies using sensor data - Quick and easy visualization of common band
combinations - Simple drag-n-drop, less clicking
• Key metadata - Sensor name - Acquisition date - Wavelength
• Function templates - Multispectral, Pansharpen
• Temporary function raster dataset
![Page 8: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/8.jpg)
Data discovery & mosaic dataset customization
![Page 9: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/9.jpg)
What is an image service?
• It is imagery or raster data made available by a server to a client application
![Page 10: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/10.jpg)
What can you do with an image service?
• Use it as an image (visual analysis) • Use it as raster data (pixel analysis) • Access it as a catalog (mosaic dataset)
![Page 11: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/11.jpg)
Image service source data
• Data sources - Raster datasets - Mosaic datasets
- Requires ArcGIS Server Image Extension
- Raster or mosaic layers - To control rendering - Preset some layer properties - Predefined query
![Page 12: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/12.jpg)
How can you access an image service?
• ArcGIS Desktop • ArcGIS Explorer • Web APIs (Silverlight, Flex, JavaScript) • ArcGIS.com • REST, SOAP • WMS, WCS, KML • 3rd Party Applications
![Page 13: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/13.jpg)
Publishing an image service
• New publishing workflow • Register databases • Share from data source • Requires service definition (.sd)
![Page 14: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/14.jpg)
Publishing interface
![Page 15: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/15.jpg)
Publishing interface – Capabilities
![Page 16: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/16.jpg)
Publishing interface – Operations
![Page 17: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/17.jpg)
Publishing interface – Parameters
![Page 18: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/18.jpg)
Publishing interface – Parameters
![Page 19: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/19.jpg)
Service REST Admin API – Create Service
• Service administration - Create service - Edit service configuration - Delete service
• Generate token to use admin API • URL sample 1:
- http://skye:6080/arcgis/admin/services/createService?service=....&token=....
• URL sample 2: - http://skye:6080/arcgis/admin/services/Portland_wNDVI.I
mageServer/edit?service=...&token=...
![Page 20: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/20.jpg)
REST requests through Python
• Requires service definition (.sd) or JSON file • Make REST calls in python packages
- urllib2 - json
![Page 21: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/21.jpg)
Publish and use image services in Python
![Page 22: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/22.jpg)
Summary
• Find imagery using raster product • Create and edit a mosaic dataset • Publish and edit the properties of an image service • Using the REST admin API to publish and edit the
service in Python - JSON
• Use an image service as a data source
• Resourcesbeta.arcgis.com/imagery
![Page 23: creating mosaic datasets and publishing image services ... · Creating Mosaic Datasets and Publishing Image Services using Python Jie Zhang & Melanie Harlow . ... Provides dynamic](https://reader036.fdocuments.us/reader036/viewer/2022071004/5fc1a192dedd673d1e0c84ba/html5/thumbnails/23.jpg)