Creating a view
From Wildsong
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 symbol types.
My solution
- Create a separate view in PostGIS for each symbol type.
- Publish each view as a separate layer in GeoServer
- Create a style for each layer in GeoServer using KML styling.
- 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.