[georss] Styling GeoRss points

Charlie Savage cfis at savagexi.com
Tue Jun 5 14:38:07 EDT 2007


Thanks everyone for the various suggestions.  Sounds like there really 
isn't any consensus on the best way to proceed.  There does seem to be 
some common threads though:

* Styling should not be part of GeoRSS
* But are icons markup or style (css and kml differ)?
* No matter what, best to reuse some standard - KML, SLD, SVG and XHTML 
were mentioned.

Here is another idea, based on a post to the atom newsgroup two years 
ago (see http://www.mail-archive.com/atom-syntax@mail.imc.org/msg05777.html)

<feed>
   <entry>
     <georss:point>...</georss:point>
     <link rel="symbol"
           href="http://www.mapbuzz.com/images/marker.png"/>
     <link rel="symbol_hover"
           href="http://www.mapbuzz.com/images/marker.png"/>
   </entry>
</feed>

So reuse link but add two new choices to rel - "symbol" and 
"symbol_hover" (I didn't use icon to avoid confusion with the atom:icon 
element).

Seems nice and simple, and a reasonable use of the link element.  You 
lose the ability to specify width/height though (implied in png, not so 
much in svg).

If that is a deal breaker, then either you'd have to add attributes to 
link or go back to something like <svg:image> and add a "rel" attribute 
to that (can't win either way!).

I lean against the embedded KML solution, because KML considers icons to 
be styling information.  Which then would lead to the question of why 
wouldn't you also add KML to an atom entry to describe how to render 
lines/polygons/etc.

At that point, if you wanted to use KML to describe how to style 
geometries, I'd say that's a totally separate file like a stylesheet. 
But once you went that far, why bother with GeoRSS at all since you 
could put everything in KML?

So it seems to me there are two levels here - the simpler GeoRSS 
solution and the more complex, but much more feature rich KML solution, 
and I probably wouldn't mix the two.

Charlie


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.eogeo.org/pipermail/georss/attachments/20070605/8a003014/attachment-0001.bin 
-------------- next part --------------
_______________________________________________
georss mailing list
georss at lists.eogeo.org
http://lists.eogeo.org/mailman/listinfo/georss


More information about the georss mailing list