Creating a view

From Wildsong
Revision as of 23:21, 11 January 2013 by Brian Wilson (talk | contribs) (Created page with '== Overview of the problem == # I want to add KML layers to an Android application. # Each KML layer can only have one icon associated with it. # My source layer has 3 or 4 sym…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview of the problem

  1. I want to add KML layers to an Android application.
  2. Each KML layer can only have one icon associated with it.
  3. My source layer has 3 or 4 symbol types.

My solution

  1. Create a separate view in PostGIS for each symbol type.
  2. Publish each view as a separate layer in GeoServer
  3. Create a style for each layer in GeoServer using KML styling.
  4. Add each layer to the Android map.

This means the data still live in one layer in PostGIS so they can be treated as a single layer in other smarter applications (ArcMap) but appear as separate layers in Android.

Details

Create views

Publish each view

Create style for each view

I could use simple simples here like Google balloons, in different colors. I used icons though to be fancy.