[postgis-users] Correct TIN input format for ST_AsGML

GeoFox Edison.Tam at ngc.com
Fri Feb 24 09:54:03 PST 2012


Hi everyone,

I am having problems getting ST_AsGML to work with TIN objects.  I have the
following:

SELECT ST_AsGML(ST_GeomFromEWKT(
			'TIN (((
                0 0 0, 
                0 0 1, 
                0 1 0, 
                0 0 0
            )), ((
                0 0 0, 
                0 1 0, 
                1 1 0, 
                0 0 0
            )))'
			));

However, it gives me an error: ERROR:  lwgeom_to_gml2: 'Tin' geometry type
not supported

Then, I try the following:

SELECT ST_AsGML(ST_GeomFromEWKT(
			'TINS(TIN (((
                0 0 0, 
                0 0 1, 
                0 1 0, 
                0 0 0
            )), ((
                0 0 0, 
                0 1 0, 
                1 1 0, 
                0 0 0
            ))))'
			));

This time I have a parse error: ERROR:  parse error - invalid geometry

Does anyone know the correct format for TIN geometry to work with ST_AsGML?
Any help is greatly appreciated!





-----
Edison Tam
NGC SWE
US
--
View this message in context: http://postgis.17.n6.nabble.com/Correct-TIN-input-format-for-ST-AsGML-tp4503527p4503527.html
Sent from the PostGIS - User mailing list archive at Nabble.com.



More information about the postgis-users mailing list