I apologize to arrive late to this discussion. I want to clear some things:

- As Google Earth only supports WGS84 projection, PROJ.4 is required to ensure 
correct transformation from any SRS to WGS84 This requisite is on lwgeom_kml.c 
but not in lwpostgis.sql.in.c. So users will see KML functions even if compiled 
without PROJ.4 support.

- _STAsKML is an internal function to wrap all AsKML calls before geometry is 
transformed into 4326. This function was previously called AsUKML ("u" for 
"unprojected") on first versions of my patch. Lately it was renamed to _STAsKML 
for compatybility with AsGML functions. Any call to _STAsKML(geom) returns 
pseudo KML with coordinates in native SRS, not useful in Google Earth.


-- 
Eduin Yesid Carrillo Vega
Ingeniero Civil, Universidad Industrial de Santander UIS
Laboratorio de Biogeografía y Análisis Espacial
Instituto de Investigación de Recursos Biológicos Alexander von Humboldt
[email protected]
Cr.13 28-01 P.7
Tel. (+57 1) 3506064 ext 122
Bogotá D.C., Colombia



----- Mensaje original ----
De: "Obe, Regina" <[email protected]>
Para: PostGIS Users Discussion <[email protected]>
Enviado: jueves, 20 de noviembre, 2008 7:47:28
Asunto: RE: [postgis-users] ST_AsKML changes in 1.3.3

Yah its worth a note.  Guess that should be done for ST_Transform too.
Any other functions require Proj? 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark
Cave-Ayland
Sent: Wednesday, November 19, 2008 11:12 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] ST_AsKML changes in 1.3.3

Dylan Beaudette wrote:

> Thanks for the tips Mark. The funny thing about this specific problem
> is that it occurred with a fresh install from the PostGIS website. I
> was only able to 'discover' _STAsKML() but grepping through
> lwpostgis.sql
> 
> Ideas?
> 
> Dylan

Aha. A quick look at lwpostgis.sql.in shows that ST_AsKML() requires 
PROJ.4 in order to run. So it sounds as if configure didn't find it for 
some reason, either because it wasn't installed or your --with-proj 
argument was wrong.

I think the minor bug here though is that _ST_AsKML() isn't included as 
part of the #ifdef section which is why only this function is visible. 
I'll go and fix this in 1.3 branch (trunk requires PROJ.4) - I wonder if

it's worth a note in the 1.3 documentation that ST_AsKML() requires 
PROJ.4 support - Regina?


HTH,

Mark.


      ¡Felices Fiestas! Enviale una tarjeta electronica gratis a tu familia y 
amigos y deseales felices fiestas. http://yahoomorado.com/tarjetas/
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to