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.
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to