Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread jratike80
And did you already try simply with -t_srs epsg:4283? -Jukka- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ogr2ogr-GML-GML-INVERT-AXIS-ORDER-IF-LAT-LONG-not-working-tp5313555p5313748.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread jratike80
Put a small test andye wrote > FYI I have an example of a GML from the same source prepared by FME where > the result is LAT LONG. I'm just trying to replicate the format. Put a small test dataset for "import.tab" so others can try to reproduce. -Jukka Rahkonen- -- View this message in contex

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread andye
Thank Norman. This is the revised command line. Unfortunately it doesn't work either. ogr2ogr -f GML -spat 151.3085 -24.002934 151.394736 -23.963423 -clipsrc spat_extent -dsco FORMAT=GML3 -dsco GML3_LONGSRS=NO -dsco SPACE_INDENTATION=YES -dsco WRITE_FEATURE_BOUNDED_BY=NO -dsco XSISCHEMA=EXTERNAL

Re: [gdal-dev] [GRASS-user] Slow import of GHSL

2017-03-22 Thread Markus Neteler
On Wed, Mar 22, 2017 at 9:28 PM, Markus Metz wrote: > On Wed, Mar 22, 2017 at 8:12 PM, Markus Neteler wrote: ... >> Nikos, for an even bigger map try >> >> Global Surface Water (2000-2012, 30 m, Data coverage is from 80° north >> to 60° south): >> http://landcover.usgs.gov/glc/WaterDescriptionAnd

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
andreahmed wrote > I'm using WFS-T. Does ogrinfo support that ? Can you show me the full > syntax please. I'm beginner in that topic. Ok. A few mails ago you wrote "My data is in mapserver database which is PostGres PostGIS. What's the equivalent function for st_linefrommultipoint?" which made Eve

Re: [gdal-dev] [GRASS-user] Slow import of GHSL

2017-03-22 Thread Markus Neteler
On Sat, Mar 11, 2017 at 7:01 PM, Markus Metz wrote: > On Sat, Mar 11, 2017 at 8:53 AM, Nikos Alexandris > wrote: >> >> Nikos Alexandris >> Why does (attempting to) import a 38m pixel resolution GHSL [0] GeoTIFF layer, ie GHS_BUILT_LDS1990_GLOBE_R2016A_3857_38_v1_0_p1.tif, in GRASS'

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread andreahmed
I'm using WFS-T. Does ogrinfo support that ? Can you show me the full syntax please. I'm beginner in that topic. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Executing-a-query-getting-null-layer-tp5313639p5313704.html Sent from the GDAL - Dev mailing list archiv

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
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_mpoint

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
Note that m_wfs_t is of type OGRDataSource is that correct ? Ahmed From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Wednesday, March 22, 2017 3:05 PM To: gdal-dev@lists.osgeo.org Cc: Ahmed Tolba; jratike80 Subject: Re: [gdal-dev] Executing a query getting null layer On mercredi 22

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
Is There a solution, I'm stopped :( ? Is there any equivalent way to do what the SQL Query does, but that works with SQLite ? Sincerely, Ahmed From: Ahmed Tolba Sent: Wednesday, March 22, 2017 3:08 PM To: 'Even Rouault' Cc: gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Executing a query getti

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
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.1795

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Even Rouault
On mercredi 22 mars 2017 13:58:52 CET Ahmed Tolba wrote: > My data is in mapserver database which is PostGres PostGIS. What's the > equivalent function for st_linefrommultipoint ? Ah ok just put NULL for the dialect argument in that case. This will evaluate the query on Postgres side. > -

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
My data is in mapserver database which is PostGres PostGIS. What's the equivalent function for st_linefrommultipoint ? -Original Message- From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of jratike80 Sent: Wednesday, March 22, 2017 2:40 PM To: gdal-dev@lists.osgeo.org Su

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
andreahmed wrote > I replaced OGRSQL with SQLite, It says now > > No such function: st_linefrommultipoint That's no wonder because SpatiaLite does not have such function https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html. Where do you have your data? Are they in PostGIS which has a nat

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
I replaced OGRSQL with SQLite, It says now No such function: st_linefrommultipoint From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Wednesday, March 22, 2017 2:30 PM To: gdal-dev@lists.osgeo.org Cc: Ahmed Tolba Subject: Re: [gdal-dev] Executing a query getting null layer On mercred

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread Even Rouault
On mercredi 22 mars 2017 13:12:14 CET Ahmed Tolba wrote: > Hi All, > I'm trying to execute that query > string query = "SELECT *FROM areas WHERE > st_contains(st_polygon(st_addpoint(st_linefrommultipoint(areas.geom),st_sta > rtpoint(st_linefrommultipoint(areas.geom)),-1),st_srid(areas.geom)),st_mpo

[gdal-dev] Executing a query getting null layer

2017-03-22 Thread Ahmed Tolba
Hi All, I'm trying to execute that query 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.1

[gdal-dev] Getting multipolygon that lies inside 4 points

2017-03-22 Thread Ahmed Tolba
Hi All, I have 4 points that I always get, I would like to query if the polygon in the multipoint lies inside those 4 points. I'm using Postgis, postgres. Sincerely, Ahmed ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mai

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread Norman Vine
see https://trac.osgeo.org/gdal/wiki/FAQVector#HowdoIflipcoordinateswhentheyarenotintheexpectedorder > On Mar 22, 2017, at 2:41 AM, andye wrote: > > Folks related to a recent post about updating ogr2ogr. Seems there maybe > something else afoot. > > I'm trying to export a GML3 file. I'm runnin