20
Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

  • Upload
    fawzi

  • View
    49

  • Download
    0

Embed Size (px)

DESCRIPTION

Raster Analysis in the Browser Brendan Collins, Blue Raster LLC. Rasters…. Elevation Slope Rainfall Temperature. Anatomy of the Web Map. client provides parameters. server returns results. Server-side Solution. The client provides parameters and. t he server returns results. - PowerPoint PPT Presentation

Citation preview

Page 1: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Raster Analysis in the BrowserBrendan Collins, Blue Raster LLC

Page 2: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Rasters…

• Elevation• Slope

• Rainfall• Temperature

Page 3: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Anatomy of the Web MapClient Application

(Firefox / IE/ Chrome)

Spati

al Da

ta /

Querie

s

Mapping Server(ArcGIS Server)

Application Server(IIS / Apache)

Flash / JS / HTML

client provides parameters.

server returns results.

Page 4: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Server-side SolutionClient Application

(Firefox / IE/ Chrome)

Serv

er d

oes t

he w

ork

Mapping Server(ArcGIS Server)

Application Server(IIS / Apache)

The client provides parameters and

the server returns results.

Page 5: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Client-side Solution

Client Application(Firefox / IE / Chrome)

User

’s Co

mpu

ter D

oes t

he

Wor

k

Mapping Server(ArcGIS Server)

Application Server(IIS / Apache)

The client does the analysis and

the server provides source data.

Page 6: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Client-side Raster Analysis Needs…

• Source Data – (PNG / JPG)– PNG for rasters classified into discrete classes– JPEG for smooth continuous surfaces– Common screen size = 1024 x 768 = 786,432– Suitability Analysis of 10 Layers = 8 Megapixels

Page 7: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Transferring Source Data…

• Continuous Data– JPEG with 60% compression– Note min/max of each dataset– Stretch dataset from black to white

Page 8: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Transferring Source Data…

• Discrete Data (Soil Type)– PNG8 or PNG24– ***Symbolize data with known values***

Page 9: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

32 Classes of ColorClass Hex ArcMap Client-side

1 0x7 7 0.031252 0xf 15 0.06253 0x17 23 0.093754 0x1f 31 0.1255 0x27 39 0.156256 0x2f 47 0.1875…30 0xef 239 0.937531 0xf7 247 0.9687532 0xff 255 1.0

Page 10: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Start with Grayscales

Start with grayscales…

Page 11: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Red Channel = Green Channel = Blue Channel

Page 12: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Red Channel = Elevation; Green Channel = Slope;Blue Channel = Drainage;

Page 13: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Red = Soil Type; Green = Soil Acidity;Blue = Soil Depth;

Page 14: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Merging Images Python

Page 15: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Client-side Raster Analysis Needs…

• Ability to run analysis–Access to individual pixels–Logic to evaluate pixel values–Raw speed

Page 16: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Access to individual pixels

• Flash – Pixel Bender or Bitmap API• Javascript – Ext JS 4 w/Pixel Bender• Silverlight – Pixel Shader

• I recommend Flash/Flex with Pixel Bender

Page 17: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Pixel Bender Kernel Language

• Override a single function (evaluatePixel)– Executes in CPU / GPU

• Simple Syntax but Limited Expressiveness – No Arrays– No Custom Functions– boolean, float, pixel, and image data types

Page 18: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Map Algebra Expression

Page 19: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Be kind to your Kernel

Page 20: Raster Analysis in the Browser Brendan Collins, Blue Raster LLC

Thank You

[email protected]