[postgis-devel] Affine() transformation matrix

Markus Schaber schabi at logix-tt.com
Thu Feb 23 02:35:00 PST 2006


Hi, Strk,

strk at refractions.net wrote:

>>Btw, as I invented transscale, I'll write a replacement using affine
>>this day.
> Thank you. Please document the affine() first as I'd like it to have
> an intuitive interface.

Okay, here's a patch that documents affine() as well as reimplements
transscale, including regression tests, for review. If you give your
okay, I'll apply it.

I don't think that there's an "intuitive" interface for affine
transformations, as we don't have matrix and vector as datatype. We
could swap rows and columns in the parameter ordering, but I don't think
that does buy us anything.


Btw, when I tried the regression tests, I had the following error once:

       regress_ogc: Failed (diff /tmp/regress_regress_ogc_diff_7220)

And this file contains:

35c35,36
< polygonize_garray|GEOMETRYCOLLECTION EMPTY
---
> NOTICE:  IllegalArgumentException: point array must contain 0 or >1
elements
> polygonize_garray|

I'm running PostgreSQL 8.1 on debian i386, postgis_full_version is:
POSTGIS="1.1.2CVS" GEOS="2.1.4" PROJ="Rel. 4.4.9, 29 Oct 2004" USE_STATS

The weird thing is that it is not reproducible.

HTH,
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: affine.diff
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20060223/06e06fed/attachment.ksh>


More information about the postgis-devel mailing list