[gdal-dev] Executing a query getting null layer

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Wed Mar 22 09:58:13 PDT 2017


andreahmed wrote
> Now I get undefined function st_linefrommultipoint
> 
> Here is my query again
> 
> string query = "SELECT * FROM areas WHERE
> st_contains(st_polygon(st_addpoint(st_linefrommultipoint(areas.geom),st_startpoint(st_linefrommultipoint(areas.geom)),-1),st_srid(areas.geom)),st_mpointfromtext('MULTIPOINT(16.17951
> 47.85549, 16.17951 47.85549, 16.17951 47.85549, 16.17951
> 47.85549)',4326));";

Does this query work when you run it directly in PostGIS? If yes, try next
to include it into ogrinfo query as -sql parameter.

I would say that asking same questions here and in gis.stackexchange usually
does not make people to serve you any faster.

-Jukka Rahkonen-



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Executing-a-query-getting-null-layer-tp5313639p5313687.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list