[postgis-users] Create Polygon from table columns

Hugues François hugues.francois at irstea.fr
Tue Jul 1 00:15:31 PDT 2014


Maybe because it is not a linestring but a polygon. A linestring with the same endpoint / startpoint is not valid.

Hugues

Le 1 juil. 2014 09:07, confugere <aginau at googlemail.com> a écrit :
>
> I did that first with: 
> SELECT ST_MakePolygon(ST_GeomFromText( 
> 'LINESTRI did that first with:
SELECT ST_MakePolygon(ST_GeomFromText(
'LINESTRING(
CORNER_UL_LAT_PRODUCT CORNER_UL_LON_PRODUCT,
CORNER_LL_LAT_PRODUCT CORNER_LL_LON_PRODUCT,
CORNER_LR_LAT_PRODUCT CORNER_LR_LON_PRODUCT, 
CORNER_UR_LAT_PRODUCT CORNER_UR_LON_PRODUCT,
CORNER_UL_LAT_PRODUCT CORNER_UL_LON_PRODUCT)'
));
it says parse errror invalid geometry



--
View this message in context: http://postgis.17.x6.nabble.com/Create-Polygon-from-table-columns-tp5006584p5006586.html
Sent from the PostGIS - User mailing list archive at Nabble.com.
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users


More information about the postgis-users mailing list