[postgis-users] WKB vs WKT

Sean M. Montague smontague at ATSDenver.com
Mon Mar 7 13:39:41 PST 2005


Since I will be exporting as svg any way, I'll take the faster WKB
instead.  Thanks.

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Markus Schaber
Sent: Saturday, March 05, 2005 1:19 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] WKB vs WKT

Hi, Sean,

Sean M. Montague schrieb:
> I'm trying to figure out the advantages and disadvantages of WKT and
> WKB.  I've read that WKB is faster to process.

Yes, it usually is. But WKB - Well known binary - is not meant for human
readers, different to WKT which is rather readable by human beings.

For Documentation of WKT and WKB format, first read the OpenGIS
specification on this topic. This is what asText() and asBinary()
functions create.

AsEWKB and AsEWKT produce an extended form of those formats, they follow
the OpenGIS proposal for 2.5D, as well as including PostGIS specific
extensions for measures and SRID.

> Does this include the AsSVG function?

AsSVG produces neither WKB nor WKT, it produces text snippets that can
be used by an application to create SVG graphics.

> The PostGIS manual only gives examples of what WKT looks like.

Probably becauuse WKB is not really meaningful to human eyes.

markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org
www.nosoftwarepatents.org
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list