Re: [gdal-dev] OGRLayer::SetFeature fails with out of date OGRFeature

2010-04-27 Thread Ari Jolma
Even Rouault wrote: Ramiro, It is illegal to change the layer definition with CreateField() if you have pre-existing features of that layer. This is documented here : http://www.gdal.org/ogr/classOGRFeatureDefn.html#40e681d8464b42f1a1fac655f16ac3dd Illegal yes, but IMHO segfault should ne

Re: [gdal-dev] Motion: Promote GDAL/OGR 1.7.2 RC3 to Final Release

2010-04-27 Thread Frank Warmerdam
Motion: GDAL/OGR 1.7.3 RC2 is declared the official 1.7.2 release. Folks, I declare this motion passed with support from Even, Frank, Tamas and Daniel. 1.7.2 is officially released. Best regards, -- ---+-- I set the

Re: [gdal-dev] problem reading arc from shapefile with OGR

2010-04-27 Thread Chaitanya kumar CH
Bruce, OGR doesn't support all the Shape Types. Curved line segments show up as straight line segments. Could this be the case? On Wed, Apr 28, 2010 at 6:37 AM, Clay, Bruce wrote: > I created a shapefile in ArcMap with 5 objects. The first two are really > a collection of many line strings th

[gdal-dev] problem reading arc from shapefile with OGR

2010-04-27 Thread Clay, Bruce
I created a shapefile in ArcMap with 5 objects. The first two are really a collection of many line strings that I copied from a Census Tigerline file and the other three I created using the ArcMap editor arc tool. The attached file shows what the shapes look like. I can read the two smaller o

[gdal-dev] Merge the overlapping results from gdal2tiles?

2010-04-27 Thread easyl
I trying to use gdal to generate web map tiles from several raster images (map1.png, map2.png ...). Each raster image is processed with these commands (gdal1.6) > gdal_translate -strict -of VRT -a_srs EPSG:4326 -gcp ... map1.png > map1.vrt > > gdalwarp -of VRT -r cubic -s_srs EPSG:4326 -t_srs

Re: [gdal-dev] NITF invalid read of 2 bytes causes crash

2010-04-27 Thread Even Rouault
Issue confirmed and ticket filed as http://trac.osgeo.org/gdal/ticket/3551 Le Tuesday 27 April 2010 19:01:56 Smart, Gary, vous avez écrit : > I have attached a colour NITF image which causes an invalid read within > NITFReadImageLine (nitfimage.c:1661). This invalid read was detected by > valgrin

Re: [gdal-dev] OGRLayer::SetFeature fails with out of date OGRFeature

2010-04-27 Thread Even Rouault
Ramiro, It is illegal to change the layer definition with CreateField() if you have pre-existing features of that layer. This is documented here : http://www.gdal.org/ogr/classOGRFeatureDefn.html#40e681d8464b42f1a1fac655f16ac3dd There's no way to check if the feature is "valid". So, just don't

[gdal-dev] OGRLayer::SetFeature fails with out of date OGRFeature

2010-04-27 Thread Ramiro Gonzalez
My application uses OGR to edit ESRI Shapefiles. If I follow this steps: 1_ Create a feature(OGRFeature::CreateFeature) using the feature definition from an existing layer(layerA) 2_ Add a field (OGRLayer::CreateField) to layerA 3_ Try to save the feature (OGRLayer::SetFeature) in layerA I recei

Re: [gdal-dev] Motion: Promote GDAL/OGR 1.7.2 RC3 to Final Release

2010-04-27 Thread Tamas Szekeres
+1 Tamas 2010/4/24 Frank Warmerdam > Folks, > > It seems that the 1.7.2RC2 fixed the serious regressions in > configure/libtool > but as Daniel pointed out there was a painful error with the version date > macro. So I have corrected only that, and issued a new release candidate. > > http://d

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] NITF invalid read of 2 bytes causes crash

2010-04-27 Thread Smart, Gary
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed. If this email is from an unknown source, please simply delete this email. If this email was expected

Re: [gdal-dev] read envisat with gdal

2010-04-27 Thread Roger André
Downloaded a sample file from http://envisat.esa.int/services/sample_products/aatsr/L2/. Seems to work fine in Python. $ python >>> from osgeo import gdal >>> image = gdal.Open('ATS_MET_2PNETB20020729_070738_58362008_00092_02150_0873.N1') >>> image.GetMetadata() {'MPH_STATE_VECTOR_TIME': '29-

Re: [gdal-dev] read envisat with gdal

2010-04-27 Thread Roger André
Can you make a small portion of your data available to us? If GDAL can read the data file, then it should be able to read this information as well. Roger -- On Fri, Apr 2, 2010 at 5:44 PM, menglong yan wrote: > Hi, I want to read envisat with gdal, and I can read the data > successfully. Howev

Re: [gdal-dev] Getting an WMS without XML file.

2010-04-27 Thread Roger André
Doe this not work for you? $ python >>> from osgeo import gdal >>> image = gdal.Open(' http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/gis_layers/gis_layers.map&REQUEST=GetMap&SERVICE=WMS&version=%221.1.122&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=73.617203,18.168884,134.773590,53.554436&

Re: [gdal-dev] NetCDF geotransform - pixel centre/upper-left issue

2010-04-27 Thread Roger André
>From my experience working with NetCDF files in GDAL, your best option is to write your own tools to work between NetCDF and other raster formats. Specifically, I would use the API to read the NetCDF, and explicitly define the georeferencing of your output file using whatever logic you know to be

Re: [gdal-dev] create a png file

2010-04-27 Thread Roger André
Have you looked at http://www.gdal.org/gdal_tutorial.html? Attached is a Python code snippet that shows how to assign values to pixels in an image. To do what you're asking, you need to create the output raster, and then write out the values in your array into the correct pixel position. I assume

Re: [gdal-dev] SRTM/hgt to TIFF with alpha

2010-04-27 Thread Roger André
Hi David, Can you clip out a small section of your DEM that contains both ocean and land and send it to me? Your question sounds interesting, and I'd like to take a look at the data before I comment on it. Thanks, Roger -- On Wed, Apr 7, 2010 at 9:08 PM, David wrote: > Hello. I am having a

Re: [gdal-dev] Motion: Promote GDAL/OGR 1.7.2 RC3 to Final Release

2010-04-27 Thread Daniel Morissette
Frank Warmerdam wrote: Folks, It seems that the 1.7.2RC2 fixed the serious regressions in configure/libtool but as Daniel pointed out there was a painful error with the version date macro. So I have corrected only that, and issued a new release candidate. http://download.osgeo.org/gdal/gdal

[gdal-dev] Error while Warping GTiff to EPSG3763

2010-04-27 Thread Franz Schiller
Greetings I've been using GDAL for a while without any major issues or difficulties. But, now I'm facing a difficulty with a gdalwarp operation. And i hope that someone can help me or giving me a few tips: I'm trying to do this: Converting a Geotiff to a EPSG 3763 (Portuguese Coordinate system) gd

Re: [gdal-dev] how to use docs?

2010-04-27 Thread Ivan Lucena
> Hi Ivan, > Thank you for your timely response! > > I am not familiar with Devhelp and I unaware that GDAL uses it. From what > I saw on Wikipidea it > > looks like an interesting resource but do you know if it can be integrated > with Doxygen? > It seems not. It seems need a litter more wo

Re: [gdal-dev] GDAL-GRASS compilation under Windows

2010-04-27 Thread ifj. Stefán István
ow, if someone know how to compile GDAL-GRASS under Win please help. Thanks, István __ ESET NOD32 Antivirus - Vírusdefiníciós adatbázis: 5046 (20100421) __ Az üzenetet az ESET NOD32 Antivirus ellenőrizte. http://www.eset.hu __ ESET NOD32 Antivirus

Re: [gdal-dev] How to pick on file from a VRT ?

2010-04-27 Thread Chaitanya kumar CH
Vincent, The simplest way is to build the vrt using gdalbuildvrt with the option '-vrtnodata'. Any pixel with no data(including areas with no files) will have the value specified with that option. Refer to http://www.gdal.org/gdalbuildvrt.html On Tue, Apr 27, 2010 at 6:24 PM, Vincent Honnet < vin

[gdal-dev] How to pick on file from a VRT ?

2010-04-27 Thread Vincent Honnet
Hi, I would like to do something like a picking on a vrt. Let me explain: I have vrt's from GTiff files but there is some holes, areas where there isn't any data. From an area defined by its coordinates I would like to get the information if this area is pointing on a file or not, or at least o

Re: [gdal-dev] how to use docs?

2010-04-27 Thread Randy
Hi Ivan, Thank you for your timely response! > I am not familiar with Devhelp and I unaware that GDAL uses it. From what I > saw on Wikipidea it > looks like an interesting resource but do you know if it can be integrated > with Doxygen? It seems not. It seems need a litter more work directly fr

Re: [gdal-dev] how to use docs?

2010-04-27 Thread Ari Jolma
Lucena, Ivan wrote: I am not familiar with Devhelp and I unaware that GDAL uses it. From what I saw on Wikipidea it looks like an interesting resource but do you know if it can be integrated with Doxygen? Does it process the same JavaDoc style annotation? If that is true I think there is a cha

Re: [gdal-dev] how to use docs?

2010-04-27 Thread Lucena, Ivan
Randy, Randy wrote: > Hi Ivan, >> The GDAL docs that you created with "make docs" is basically a copy of what >> you have on gdal.org in >> html format generated by Doxygen. You can also run "make man" and "make >> install-man" if that helps. > Then how do I use this docs file,can I use it in De

Re: [gdal-dev] how to use docs?

2010-04-27 Thread Randy
Hi Ivan, > The GDAL docs that you created with "make docs" is basically a copy of what > you have on gdal.org in > html format generated by Doxygen. You can also run "make man" and "make > install-man" if that helps. Then how do I use this docs file,can I use it in Devhelp or "man" some function