Re: [gdal-dev] Gdal_translate terminated - buffer overflow detected

2013-03-28 Thread Ondrej Chlup
GDAL 1.10 works without errors. Thanks. Ondrej 2013/3/28 Even Rouault > Selon Ondrej Chlup : > > > Hi, > > > > I was using GDAL version 1.9.1 to get NTv2 grid from raster in PostGIS > > using gdal_translate. I got the error: 0*** buffer overflow detected ***: > > gdal_translate terminated > >

Re: [gdal-dev] more than one linearring object in the geometry but with all linerring objects having zero points?

2013-03-28 Thread Frank Warmerdam
Chao, I suspect you have a multipolygon. So each subgeometry is a polygon on which there are in turn subgeometries which are rings. By the way, if you just print the geometry in python you should get the "Well Known Text" representation which can be explanatory. Best regards, Frank On Thu, M

Re: [gdal-dev] Gdal_translate terminated - buffer overflow detected

2013-03-28 Thread Even Rouault
Selon Ondrej Chlup : > Hi, > > I was using GDAL version 1.9.1 to get NTv2 grid from raster in PostGIS > using gdal_translate. I got the error: 0*** buffer overflow detected ***: > gdal_translate terminated > I was trying to use GDAL version 1.9.2 but with the same error. Is there > any way how to

[gdal-dev] more than one linearring object in the geometry but with all linerring objects having zero points?

2013-03-28 Thread Chao YUE
Dear all, I try to read fire polygon shapefile by ogr (beginner level), I referred to some sources online: http://geoinformaticstutorial.blogspot.fr/2012/10/accessing-vertices-from-polygon-with.html http://gis.stackexchange.com/questions/8144/get-all-vertices-of-a-polygon-using-ogr-and-python How

Re: [gdal-dev] Gdal_translate terminated - buffer overflow detected

2013-03-28 Thread Frank Warmerdam
Ondrej, I don't see any obviously related fixes since 1.9.1 in the history for the NTv2 writer: http://trac.osgeo.org/gdal/log/trunk/gdal/frmts/raw/ntv2dataset.cpp Perhaps you could translate the data to a GeoTIFF and then go from that to NTv2. Assuming the problem persists on the translation

Re: [gdal-dev] Apply a style to geojson

2013-03-28 Thread Thomas Gratier
Hello, You'd better ask on http://gis.stackexchange.com/ because the list you're using now is dedicated to GDAL developpers not for all purpose GIS questions. Regards ThomasG ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mai

[gdal-dev] Apply a style to geojson file

2013-03-28 Thread Wael Tarhouni
Hi All; * * Please can i apply a style to a geojson file ? and how? regards; -- Wael Tarhouni Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT (+216) 22 239 551 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.o

[gdal-dev] Apply a style to geojson

2013-03-28 Thread Wael Tarhouni
Hi all; Is it possible to apply a style to a geojson file ? regards; -- Wael Tarhouni Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT (+216) 22 239 551 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mail

[gdal-dev] Gdal_translate terminated - buffer overflow detected

2013-03-28 Thread Ondrej Chlup
Hi, I was using GDAL version 1.9.1 to get NTv2 grid from raster in PostGIS using gdal_translate. I got the error: 0*** buffer overflow detected ***: gdal_translate terminated I was trying to use GDAL version 1.9.2 but with the same error. Is there any way how to fix it? Thanks, Ondrej Code: gda

Re: [gdal-dev] Add a style to a Geojson Layer

2013-03-28 Thread Thomas Gratier
Hello, It seems you're not aware Geosjon is not KML, there is no mix between styles and data, it's only data. Read the specification http://www.geojson.org/geojson-spec.html Regards ThomasG ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://list

Re: [gdal-dev] Add a style to a Geojson Layer

2013-03-28 Thread Wael Tarhouni
Anybody here? 2013/3/28 Wael Tarhouni > Hi all; > > I'm trying to add a style to a geojson layer which is composed by a simple > multipolygon but it can't be applied... > > This is the code: > > > *{ "type": "MultiPolygon", > "coordinates": [ > [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [

[gdal-dev] Add a style to a Geojson Layer

2013-03-28 Thread Wael Tarhouni
Hi all; I'm trying to add a style to a geojson layer which is composed by a simple multipolygon but it can't be applied... This is the code: *{ "type": "MultiPolygon", "coordinates": [ [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]], [[[100.0, 0.0], [101.0, 0.

[gdal-dev] Add a style to a geojson layer

2013-03-28 Thread Wael Tarhouni
Hi All; Excuse me for this question but i'm trying to add a style to a simple Multipolygon in a GeoJson file but it can't be applied! This is the code : *{ "type": "MultiPolygon", "coordinates": [ [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]], [[[100.0, 0.0],

Re: [gdal-dev] GDAL Question about the band/frequence information

2013-03-28 Thread Jonathan Greenberg
I was recently looking into for some code I'm writing in R using rgdal, and I wanted to see if we could generate some new effort on this. While the way each file format specifies RS information may be different, there are some standard pieces of info that could be read/stored in a meaningful way w

Re: [gdal-dev] extract information from polygon shapefile based on raster grid?

2013-03-28 Thread Newcomb, Doug
Chao, Depending on how detailed you want your stats to be, it might be easier run the zonal statistics plugin in qgis or run v.rast.stats in GRASS 70. Doug On Wed, Mar 27, 2013 at 6:38 PM, Jan Heckman wrote: > Hello Chao, > > I may not understand your wish quite well, but I think you need som

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-03-28 Thread Jan Hartmann
Perhaps I should clarify a bit what I meant, I haven't had any reactions until now, positive or negative, and it is important for me. I use Gdalwarp and gdaladdo extensively for goereferencing and tiling large historical maps serieses (raster scans). To display them efficiently, I need to crea