[postgis-devel] KML from PostGIS patch

Paul Ramsey pramsey at refractions.net
Fri Dec 15 08:26:52 PST 2006

Yes, the key for AsKML() (as with AsGML()) is that the function is  
not generating a full document, it is just generating the geometric  
piece.  These are really convenience functions, so that client  
developers do not have to always parse the WKT or WKB and the re-form  
it into GML or KML.  Doing it ahead of time on the database makes the  
client code simpler and hopefully a little faster too.


On 15-Dec-06, at 7:27 AM, Jason Birch wrote:

> Hi,
> I have not tried asKML, but as far as I can tell from the code it  
> is only returning the geometry.
> That means that you are free to concatenate this result with a  
> "<Placemark>" tag, or even a custom schema based on the placemark,  
> which references either an internal or external style definition  
> using the <styleUrl> tag.
> You'll also need to specify the rest of the KML document as part of  
> your output.
> Jason
> ________________________________
> From: postgis-devel-bounces at postgis.refractions.net on behalf of  
> Rich Gibson
> Sent: Fri 2006-12-15 3:17 AM
> To: postgis-devel at postgis.refractions.net
> Subject: Re: [postgis-devel] KML from PostGIS patch
> KML merges presentation with position, something of a gis no-no I
> guess, but there you go.  Does anyone have any thoughts on a
> reasonable way to use asKML, or a similar tool, which would include
> style information?
> I have a few thoughts on the subject, but most of them seem pretty
> weak.  Ideally we could do an asKML query and get back a KML file that
> met our personal presentation needs.  Perhaps by specifying a template
> or style sheet to apply.
> Regards,
> Rich
> <winmail.dat>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

More information about the postgis-devel mailing list