[gdal-dev] Geometry overlap test

2010-04-23 Thread Sorokine, Alexandre
Hi! I noticed that Geometry.Overlaps in ogr sometimes returns "no overlap" while intersection is not empty. For example: Geometry 1:POLYGON ((-1 -1,-1 1,1 1,1 -1,-1 -1)) boundaryLINESTRING (-1 -1,-1 1,1 1,1 -1,-1 -1) Geometry 2:POLYGON ((-2 -2,-2 2,2 2,2 -2,-2 -2)) boundaryLINESTRING (-2 -2

Re: [gdal-dev] how to use docs? (broken docs on gdal.org)

2010-04-27 Thread Sorokine, Alexandre
There are lots of documentation links on the gdal.org site that are broken. For example this, checked 5 min. ago: http://gdal.org/java/ Not Found The requested URL /java/ was not found on this server. Apache/2.2.3 (CentOS) Server at gdal.org Port 80 Generating your own copy of docs makes lot

[gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Sorokine, Alexandre
Folks, I am trying to determine an SRS for a table in PostGIS database but I am getting NULL. I have a table that in PostGIS that has SRID defined: usa=# select ST_SRID(the_geom) from census.counties; st_srid - 4326 4326 ... However, when I try to do OGR_L_GetSpatialRef() or O

RE: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Sorokine, Alexandre
Franks, Thank you for your reply, I did some more checks. Please see my comments below. > I am trying to determine an SRS for a table in PostGIS database but I am > getting NULL. I have a table that in PostGIS that has SRID defined: > > usa=# select ST_SRID(the_geom) from census.counties; > st

Re: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-08 Thread Sorokine, Alexandre
SRS through OGR_L_SetSpatialFilterRect() function. I've tested it in my code. Bounding box works in ogrinfo but ogrinfo does not use this function (it builds a geometry). I hope we will be able to fix it, On 7/7/09 11:10 PM, "Frank Warmerdam" wrote: > Sorokine, Alexandr

Re: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-08 Thread Sorokine, Alexandre
n the gdal-debug.txt file is : PG: PQexec(SELECT srtext FROM spatial_ref_sys WHERE srid = 4326) = PGRES_TUPLES_OK, ntuples = 0 It looks like your spatial_ref_sys table is not correctly filled. You should check its content and/or its permissions. Best regards, Even Le Wednesday 08 July 2009 18:24:3