Re: [gdal-dev] reading postgis xyzm with ogr2ogr

2015-02-12 Thread Duarte Carreira
Hi. I am not that desperate ;) I was trying to figure out if the command ogr2ogr could use the hint in the ticket, by using the ewkt... Thanks, Duarte On Thu, Feb 12, 2015 at 9:49 AM, Rémi Cura wrote: > depending on how desperate you are you could : > - use simple COPY statement to export you

Re: [gdal-dev] reading postgis xyzm with ogr2ogr

2015-02-12 Thread Rémi Cura
depending on how desperate you are you could : - use simple COPY statement to export you LINESTRINGZM from database - use python + python-ogr and manually create a X Y Z M file - use python + shapely In all case you can wrap it into a command line executable, liek ogr2ogr. Cheers, Rémi-C 2015

Re: [gdal-dev] reading postgis xyzm with ogr2ogr

2015-02-11 Thread Duarte Carreira
Thanks Paul. Yes, but I'm trying to export all tables from a schema, so I don't state the names of the tables. I think using sql would require 1 comand per table, right? So my command is something like this: ogr2ogr -progress PG:"dbname='postgis' active_schema=schema1 schemas=schema1 " -f "SQLit

Re: [gdal-dev] reading postgis xyzm with ogr2ogr

2015-02-11 Thread Paul Ramsey
You could use the OGR sql query option to wrap your geometry call in a force2d or force3d function call in PostGIS? --  Paul Ramsey http://cleverelephant.ca http://postgis.net On February 11, 2015 at 9:54:07 AM, Duarte Carreira (dncarre...@gmail.com) wrote: Hi there.   I’m trying to figure o

[gdal-dev] reading postgis xyzm with ogr2ogr

2015-02-11 Thread Duarte Carreira
Hi there. I’m trying to figure out how to read xyzm geometries from postgis with ogr2ogr, if at all possible. I get the usual "is not supported" error: ERROR 1: Reading EWKB with 4-dimensional coordinates (XYZM) is not supported But reading old tickets I get the idea there is a way to rea