[postgis-devel] KML from PostGIS patch

strk at refractions.net strk at refractions.net
Wed Dec 20 06:27:55 PST 2006

On Wed, Dec 20, 2006 at 08:18:33AM -0600, Eduin Carrillo wrote:

> > How to write a testcase you mean ?
> > Well, yes, regress/README seems to contain info about a really different
> > (and not-more-needed) thing. Any volunteer willing to spend some words on
> > adding testcases (should be really simple actually).
> > 
> Yes, I guess this steps for regress tests:
> 1. Write a /regress/kml.sql file with data and sql queries for testing
> 2. Write a /regress/kml_expected file with expected results per query
> How run the tests? I need to create a special db? Which user I need to use?

You just edit regress/Makefile adding 'kml' to the TESTS variable.
(it seems the README is about this :)

> > Did you profile asUKML vs. asKML when input is already in 4326 ?
> What do you mean with "profile". transform_equal_srid.patch modifies
> lwgeom_transform.c to return the geometry as is if input srid is equal to
> output srid in Tranform() function.

Right, but I think DETOAST/TOAST ops would still happen...
timing it might contraddict me ...


More information about the postgis-devel mailing list