Re: [gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Dmitry Baryshnikov
Hi Federico, Does the Project method of OGRLineString not suits you? The point snap to nearest point, the point on line via the project, and point on polygon via cast the outer or inner rings to line and project too. Best regards, Dmitry 11 дек. 2014 г. 0:56 пользователь "Even Rouault" написал: >

[gdal-dev] GDAL GeoPackage raster support

2014-12-10 Thread Even Rouault
Hi, I've committed in GDAL trunk the final pieces of the code needed to support GeoPackage rasters in read/creation/update modes. Feedback from early testers would be much appreciated, particularly regarding interoperability with other software stacks (1), as I could basically only test round-t

Re: [gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Even Rouault
Le mercredi 10 décembre 2014 22:28:48, Federico Jurio a écrit : > Dear all, i'm trying to make a snapping tool to project new points in a > layer to the nearest geometry. First of all, when i activate my tool i make > a buffer of all the geometries in the layer. If the point that i'm trying > to ad

[gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Federico Jurio
Dear all, i'm trying to make a snapping tool to project new points in a layer to the nearest geometry. First of all, when i activate my tool i make a buffer of all the geometries in the layer. If the point that i'm trying to add in the layer is within the buffer i want to move this point to the nea

Re: [gdal-dev] How to get information on JPEG 2000 files such as layers and precints?

2014-12-10 Thread Norman Barker
Tomer, precincts, layers etc can be dumped with jj2000, OpenJPEG and Jasper and it can be programatically retrieved with kakadu. It is not available in GDAL as Even says, but I might be adding a PR for it shortly. Norman On Wed, Dec 10, 2014 at 9:32 AM, Even Rouault wrote: > Le mercredi 10 dé

Re: [gdal-dev] How to get information on JPEG 2000 files such as layers and precints?

2014-12-10 Thread Even Rouault
Le mercredi 10 décembre 2014 17:12:27, Tomer a écrit : > hey, > > I'm using the C# bindings and GDAL 1.11. > I built the gdal with ECW and JPEG2000 read support (5.1 readonly SDK). > > I tried to read information on JPEG 2000 files such as layers, precints, > but I couldn't read it the from any c

[gdal-dev] How to get information on JPEG 2000 files such as layers and precints?

2014-12-10 Thread Tomer
hey, I'm using the C# bindings and GDAL 1.11. I built the gdal with ECW and JPEG2000 read support (5.1 readonly SDK). I tried to read information on JPEG 2000 files such as layers, precints, but I couldn't read it the from any class (Dataset, Driver, Gdal). Is it possible to read the information

Re: [gdal-dev] EPSG codes

2014-12-10 Thread Even Rouault
Le mercredi 10 décembre 2014 03:38:45, Norman Barker a écrit : > Hi, > > I am trying to extract the EPSG code from the SpatialReference object as > follow; > > const char * pszEpsg; > char **papszTokens; > > if (poSpatialRef->IsProjected()) > p

Re: [gdal-dev] GDALSuggestedWarpOutput() problem

2014-12-10 Thread Even Rouault
"joem", It seems that your input dataset is very close to the dateline, and very likely crossing it. I'm not that surprised that GDALSuggestedWarpOutput() has issues at that discontinuity. But I think it might have indeed operated correctly. If the extent of the dataset crosses the dateline the

Re: [gdal-dev] gdalwarp/info failure on jp2 in secure AWS environment

2014-12-10 Thread Even Rouault
Le mercredi 10 décembre 2014 00:08:35, Robert Coup a écrit : > Does "gdalinfo --debug on --config CPL_CURL_VERBOSE YES ..." show 2x > requests? > > I think the problem likely is the S3 signature is only valid for one > file/url, not the corresponding .jp2.aux.xml file, so the request for the > lat