Just another WordPress.com site

Vector and Raster

 

What’s the Difference?

This is a graphic I used to draw for my students.  It was responsible for more light bulbs popping up over heads than just about anything else I showed them.  "Ohhhhhhh, OK."  Anyway, vector is a series of points (nodes), that are joined by lines (arcs -that’s where ESRI got it).  Points are a node, lines are a strung-together series of nodes, and polygons are an enclosed series of arcs.  Raster is an image -made up of a grid of pixels, each with a pixel value represented as a color.

Further, here is an illustration of the difference in a simplified geographic context.

 

The Pros and Cons

Here is a quick list of the ups and downs for both vector and raster.  I’ll elaborate on these below…

Vector

Raster

+ Actionable (enables specific user-interaction)
+ Spatially query-able
+ Attribute query-able
+ Unlimited scalability

+ Faster for more-detailed data
+ Rich visuals
+ Typically, a more readily available public data source

- Unwieldy file size for geographically complex data
- Typically requires increased GIS know-how to fully leverage
- Less suited for rich visuals

- Flattened
- Relatively dead query-wise
- Limited scalability (pixelation)

 Vector YES

Actionable
Vectors breathe interaction into data layers.  They provide hit areas for the cursor as it passes over.  This hit area can trigger a tooltip or allow selection.  In the image above, I could mouse over the differently-colored sections of that map to access varying data attributes.

Spatially Query-able
A vector polygon can be used as a cookie-cutter to identify other vector data (usually within the query polygon -"How many wells are within the polygon I just drew" kind of stuff.).

Attribute Query-able
Because vectors have data attributes associated with each shape, it is much more straight-forward to query the geometry (points, lines, or polygons) based upon them.  A raster image knows only what color a pixel is, so attaching different meaningful data to various parts of a single image is nuts.

Unlimited Scalability
Vectors are able to be scaled up or down without losing sharpness.  Magnifying a raster will reveal its pixel-y nature.

Vector NO

Unwieldy File Size
Because vector data is stored as a string of geographic coordinates, complex data can be very very large in file size and therefore take longer to pull into an online application and take longer to render.

Increased GIS Know-How
For those who have scrounged around for interesting data to throw into a map, you may have found that it is easier to grab map images rather than the source GIS files (which would probably be vector).  This is changing quickly, however. The popularity of GeoRSS and KML are exploding and the once monolithic Shapefile is finally giving way to more common, shareable map layer formats.

Less Suited for Rich Visuals
When it comes to detailed visuals like satellite imagery or intricate population density maps, vector is ill-suited.

Raster Yes

Faster
For detailed stuff, raster images are much much smaller than vector versions of the same detail.

Rich Visuals
Because raster is pixel-based, the level of detail is quite sharp.  To replicate that same detail using polygons made up of millions of coordinate nodes would be overwhelming.

More Readily Available
Images are everywhere.  Tools like MapCruncher makes their conversion into map overlays pretty straightforward.

Raster No

Flattened
This is huge.  Raster, while visually rich, has tremendous interaction limitations.  Features in the raster image are just colored pixels; good luck attaching meaningful data beyond that.  Furthermore, layering in multiple raster overlays affords users no additional interaction.  That is one of the weaknesses of ArcIMS applications.  All those layers with their rich attributes are compressed into a single flat raster image with no sub-image hit areas to trigger tooltips or allow selection or really any truly interactive data diving.

Relatively Dead Query-Wise
This is related the the flattening weakness.  Pulling additional attribute information for within-layer features is best left to vectors.  Also, performing spatial queries based upon raster images is largely a no-go.  This is where vector shines.

Limited Scalability
When you stretch a rater image it pixelates.  Vector can be scaled indefinitely.

Some Specific Examples

It was very important to BP that their Hurricane Management System be able to query their assets and employees based upon areas predicted to be struck by oncoming hurricanes.  As such, the impact plume (below in orange) had to be vector.  As hurricanes advance, the National Weather Service issues alerts and delineates areas that are predicted to be impacted within some range of statistical certainty.  The Hurricane Management System lists which assets and employees intersect the risk polygons so responsive measures can be taken.  This level of interaction could not be achieved with a raster image of risk areas.

In this example, the Hurricane Management System has pulled in a raster graphic overlay that represents wind speed and wave size in the Gulf.  Since this is a raster image, there is no querying capability, but it does look much nicer and provide more visual detail than a vector version could.

In this example from an application built for the US Office of the Director of National Intelligence, the incidents of Avian Flu (multi-colored people and birds) are represented as vector points which can be queried against the vector polygon that represents an Avian Flyway.  "Show me all cases within the flyway?"  No problem.

Here, incidents of Avian Flu are viewed within the context of a raster overlay of population density.  Because the overlay is raster, I cannot explicitly ask, "How many cases occur within dark red."  I do, however, get a great visual sense of where there are lots of people.  A comparable vector version of this data overlay isn’t realistic; it is just too detailed.  So what I lose in query-ability, I gain in rich visual communication.

Well?

A question that I hear often is, "So which is better, vector or raster?"

The answer is yes.  Put your money on the folks who take a hybrid approach.

John Nelson / IDV Solutions / john.nelson@idvsolutions.com

 

About these ads

12 responses

  1. Unknown

    Thank you .1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

    August 30, 2008 at 6:15 pm

  2. Unknown

    A friend to buy wow goldTo wow power leveling?On the world\’s most concessions to the most reputable sites under the single!

    September 13, 2008 at 12:45 am

  3. Unknown

    Hi,Do you need advertising displays, digital signages, mp4 advertisement players, SD card players and advertisement LCD displays? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.
    amberdigital Contact Us
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[ihigibhfediahj]

    September 22, 2008 at 6:05 am

  4. Unknown

    adapter laptop

    toshiba 15V 6A 90w 6.3mm*3.0mm adapter PA2501U PA2521U PA3201U-1ACA
    toshiba 15V 8A 120w 6.3mm*3.0mm adapter PA3201U-1ACA SEB100P2-15
    toshiba 15V 8A 120w special 4 hole adapter PA3237U-1ACA PA3237U
    toshiba 19V 3.42A 65w 5.5mm*2.5mm adapter PA3467U-1ACA PA3396U-1ACA
    toshiba 19V 3.16A 60w 5.5mm*2.5mm adapter PA3097U-1ACA
    toshiba 19V 4.74A 90w 5.5mm*2.5mm adapter PA-1750-04

    toshiba 19V 4.74A 90w 6.3mm*3.0mm adapter PA3201U-1ACA SEB100P2-15.0
    toshiba 19V 6.3A 120w 6.3mm*3.0mm adapter PA3290U-1ACA
    toshiba 19V 6.3A 120w 5.5mm*2.5mm adapter PA3290U-2ACA PA-1121-08
    universal 12-20V 90W universal adapter laptop
    universal 12-20V 120W universal adapter laptop
    universal 12-20V 70W universal adapter laptop

    October 13, 2008 at 4:57 am

  5. Unknown

    asus a4000 battery
    asus a42-a4 battery
    asus a4 battery
    asus a32-f3 battery
    compaq n400 battery
    compaq n400c battery
    compaq n410c battery
    compaq presario 300 battery

    compaq presario 305 battery
    compaq presario 1200 battery
    compaq presario 1600 battery
    compaq presario 1800 battery
    compaq 310924-b25 battery
    compaq pp2162s battery
    compaq pp2160 battery
    compaq n150 battery
    compaq n200 battery

    compaq n620 battery
    compaq pp2111x battery
    dell inspiron 6000 battery
    dell inspiron 9200 battery
    dell inspiron 9300 battery
    dell inspiron 9400 battery
    dell e1705 battery
    dell m1210 battery
    dell nf343 battery

    dell 1210 battery
    dell cg036 battery
    dell t6840 battery
    dell latitude x1 battery
    dell xd187 battery
    dell inspiron 1300 battery
    dell inspiron b120 battery
    dell inspiron b130 battery
    gateway m680 battery

    gateway m360 battery
    gateway m460 battery
    hp m2000 battery
    hp dv1000 battery
    hp dv4000 battery
    hp ze2000 battery
    hp hstnn-db17 battery
    hp n6000 battery
    hp n6100 battery

    October 23, 2008 at 8:46 am

  6. Unknown

    asus s52n battery
    asus s5000 battery
    asus s5200n battery
    asus s5n battery
    asus 90-naa1b1000 battery
    asus s2691061 battery
    asus a42-v6 battery
    asus a32-u5 battery

    asus u5f battery
    asus u5a battery
    asus u5f battery
    asus u5 battery
    compaq nw8000 battery
    compaq nc8000 battery
    compaq v1000 battery
    compaq nc6000 battery
    compaq nx5000 battery

    compaq n600 battery
    compaq n600c battery
    compaq n610c battery
    compaq n610v battery
    compaq n620c battery
    compaq e500 battery
    compaq e500s battery
    compaq v300 battery
    compaq v500 battery

    compaq pp2060 battery
    compaq nx9000 battery
    compaq nx9005 battery
    compaq nx9010 battery
    compaq nx9020 battery
    compaq n110 battery
    compaq n110s battery
    compaq pp2101x battery
    compaq presario 2100 battery

    compaq ze4000 battery
    compaq f4809a battery
    compaq f4812a battery
    dell inspiron 700m battery
    dell inspiron 710m battery
    dell latitude x200 battery
    dell 8u443 battery
    dell 312-0058 battery
    dell inspiron 1100 series battery

    dell inspiron 1150 battery
    dell d620 battery
    dell d630 battery
    dell latitude d620 battery
    dell inspiron 5150 battery
    dell inspiron 5100 battery
    dell 1501 battery
    dell e1505 battery

    November 3, 2008 at 3:34 am

  7. Unknown

    (http://cid-f2715ea92bf55929.spaces.live.com/)adapter laptop

    toshiba 15V 6A 90w 6.3mm*3.0mm adapter PA2501U PA2521U PA3201U-1ACA
    toshiba 15V 8A 120w 6.3mm*3.0mm adapter PA3201U-1ACA SEB100P2-15
    toshiba 15V 8A 120w special 4 hole adapter PA3237U-1ACA PA3237U
    toshiba 19V 3.42A 65w 5.5mm*2.5mm adapter PA3467U-1ACA PA3396U-1ACA
    toshiba 19V 3.16A 60w 5.5mm*2.5mm adapter PA3097U-1ACA
    toshiba 19V 4.74A 90w 5.5mm*2.5mm adapter PA-1750-04

    toshiba 19V 4.74A 90w 6.3mm*3.0mm adapter PA3201U-1ACA SEB100P2-15.0
    toshiba 19V 6.3A 120w 6.3mm*3.0mm adapter PA3290U-1ACA
    toshiba 19V 6.3A 120w 5.5mm*2.5mm adapter PA3290U-2ACA PA-1121-08
    universal 12-20V 90W universal adapter laptop
    universal 12-20V 120W universal adapter laptop
    universal 12-20V 70W universal adapter laptop

    November 3, 2008 at 3:35 am

  8. Unknown

    您需要二手液晶显示屏、废旧液晶屏么?我们是不折不扣的二手液晶屏、旧液晶屏大批发商,长期大量供应可再利用的旧液晶屏。我公司提供的各种尺寸的二手液晶屏, 不同厚薄如笔记本屏,均已经过我们严格的分类,检验,测试流程。请访问协力液晶屏www.sceondhandlcd.com[bbgbddgjgjdefeae]

    November 23, 2008 at 3:08 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.