Re: [gdal-dev] Problem with ogrinfo and KML files

2011-01-18 Thread massimo costantini
Problem solved, thank for your answers. there was an error in linking the expat library. On Tue, Jan 18, 2011 at 6:09 PM, Chaitanya kumar CH wrote: > Massimo, > > Check if your configure script recognised the expat library. > This is what I got for "ogrinfo -al -so a.kml": > Had to open data sour

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-01-18 Thread anna auge
  So it is a problem with gdalwarp and the GCPs ín the GeoTiff. Do you have any hints how to go on with this problem?  Cheers, Anna Von: "Nikolaos Hatzopoulos" Gesendet: 19.01.2011 01:33:43An: "anna auge" Betreff: Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiffYou are right, I not

Re: [gdal-dev] gdalwarp EPSG not being applied

2011-01-18 Thread Gavin
On Tue, 2011-01-18 at 14:35 -0500, Frank Warmerdam wrote: > On 11-01-18 01:45 PM, Gavin wrote: > > > > > > On Tue, 2011-01-18 at 10:06 -0700, Kyle Shannon wrote: > .. > >> System 2 (Fedora 10): > >> > >> Driver: GTiff/GeoTIFF > >> Files: test3857.tif > >> Size is 10749,

Re: [gdal-dev] Grib2 band to Geo Tiff

2011-01-18 Thread Chaitanya kumar CH
James, You can use the GDALDriver::CreateCopy() method to translate a dataset if you don't plan to perform any reprojection during translation. If you don't need the intermediate geotiff file, you can look at the ogr2ogr.py [0] script to perform the reprojection and translation in one go. [0] htt

[gdal-dev] Grib2 band to Geo Tiff

2011-01-18 Thread manzione
Greetings and thank you for looking at my post, I am converting a Grib2 file into a geo tiff file and then reprojecting it in python. When I reproject the tiff file it states it is "unable to compute a transformation between pixel/line and georeferenced coordinates" for my converted tiff file be

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-01-18 Thread Nikolaos Hatzopoulos
You are right, I notice that there isn't any difference from the band_1.tiff and band_1_warp.tiff --Nikos Hatzopoulos On Mon, Jan 17, 2011 at 8:15 AM, anna auge wrote: > Hi all, > > I am trying to convert modis level 1B data (type SWATH) to geotiff > following these steps. > > 1) Examining the

Re: [gdal-dev] Generating GDAL Native Dependencies

2011-01-18 Thread Even Rouault
Le mardi 18 janvier 2011 20:53:38, Sam Ritchie a écrit : > One final question, moved to its own thread. > > Is there a simple way to generate GDAL's native java dependencies > (libgdalconstjni.*, libgdaljni.*, libogrjni.*, libosrjni.*, where * depends > on the architecture) without having to build

[gdal-dev] Generating GDAL Native Dependencies

2011-01-18 Thread Sam Ritchie
One final question, moved to its own thread. Is there a simple way to generate GDAL's native java dependencies (libgdalconstjni.*, libgdaljni.*, libogrjni.*, libosrjni.*, where * depends on the architecture) without having to build the rest of the gdal source code? I'm going to dig around the sour

Re: [gdal-dev] GDAL Java Bindings and HDF4 File format

2011-01-18 Thread Sam Ritchie
Even, great point, and of course this makes sense, as the java bindings simply refer to these other libraries. My other reply explains what should have been my initial question, I suppose. Going off of my other answer, now -- am I correct in assuming that if I build the source on a linux instance

Re: [gdal-dev] GDAL Java Bindings and HDF4 File format

2011-01-18 Thread Even Rouault
Le mardi 18 janvier 2011 20:20:05, Sam Ritchie a écrit : > Hey all, > > Short question first, then the longer explanation. > > *QUESTION*: My java SWIG bindings, generated from source, can't read the > HDF4 format. How can I fix this? Sam, The fact that you can't read HDF4 files is very likely

Re: [gdal-dev] gdalwarp EPSG not being applied

2011-01-18 Thread Frank Warmerdam
On 11-01-18 01:45 PM, Gavin wrote: On Tue, 2011-01-18 at 10:06 -0700, Kyle Shannon wrote: .. System 2 (Fedora 10): Driver: GTiff/GeoTIFF Files: test3857.tif Size is 10749, 11713 Coordinate System is: PROJCS["unnamed", GEOGCS[, DATUM

[gdal-dev] GDAL Java Bindings and HDF4 File format

2011-01-18 Thread Sam Ritchie
Hey all, Short question first, then the longer explanation. *QUESTION*: My java SWIG bindings, generated from source, can't read the HDF4 format. How can I fix this? *CONTEXT*: I've spent the last couple of days trying to generate java bindings for gdal that will allow me, essentially, to run th

Re: [gdal-dev] gdalwarp EPSG not being applied

2011-01-18 Thread Gavin
On Tue, 2011-01-18 at 10:06 -0700, Kyle Shannon wrote: > Gavin, > Is GDAL_DATA environment variable set on the Fedora system? yip: GDAL_DATA=/opt/gdal_data > > > > On Tue, Jan 18, 2011 at 04:15, Gavin wrote: > > gdalwarp with -t_srs 'EPSG:3857' produces expected output on >

Re: [gdal-dev] Create a shape file with polygons

2011-01-18 Thread Frank Warmerdam
On 11-01-18 11:28 AM, Jorge Martin wrote: OGRPolygon myPoligon; tmp = strtok (Line, ":"); szName = string (tmp); while (tmp != NULL) { OGRLinearRing MyRing;// = (OGRLinearRing*) OGRGeometryFactory::createGeometry(wkbLinearRing); tmp = strtok (NULL, ",");

Re: [gdal-dev] Problem with ogrinfo and KML files

2011-01-18 Thread Chaitanya kumar CH
Massimo, Check if your configure script recognised the expat library. This is what I got for "ogrinfo -al -so a.kml": Had to open data source read-only. INFO: Open of `a.kml' using driver `KML' successful. Layer name: Paths Geometry: 3D Line String Feature Count: 1 Extent: (-112.265697, 36.

Re: [gdal-dev] gdalwarp EPSG not being applied

2011-01-18 Thread Kyle Shannon
Gavin, Is GDAL_DATA environment variable set on the Fedora system? # Kyle Shannon Physical Science Technician RMRS Fire Sciences Lab Fire, Fuels & Smoke - RWU 4405 5775 Highway 10 W. Missoula, MT 59808 (406)829-6954 kshan...@fs.fed.us # O

Re: [gdal-dev] Create a shape file with polygons

2011-01-18 Thread Jorge Martin
Hello, I've tried to develope the program that create a shape file with polygons. But the GIS open the shp but there is nothing inside only the attributes, not the polygons. I have the code from Python but I do not know the problem. Here I paste the code: int write_shapefilePolygon() { const c

Re: [gdal-dev] support for libpng 1.5.0

2011-01-18 Thread Frank Warmerdam
On 11-01-18 09:12 AM, Jeff McKenna wrote: Hi Ben, A few weeks ago I also had troubles compiling gdal-trunk with libpng-1.5.0 on Windows and decided against upgrading my libpng...so I am also curious to know if that version of libpng is supported by GDAL yet. Ben / Jeff, Even has corrected thi

Re: [gdal-dev] support for libpng 1.5.0

2011-01-18 Thread Jeff McKenna
Hi Ben, A few weeks ago I also had troubles compiling gdal-trunk with libpng-1.5.0 on Windows and decided against upgrading my libpng...so I am also curious to know if that version of libpng is supported by GDAL yet. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www

Re: [gdal-dev] Problem with ogrinfo and KML files

2011-01-18 Thread massimo costantini
KML is in the list of supported formats. the error is: Unable to open datasource `comuni2001.kml' with the following drivers. ... -> KML ... i tryed on this: http://www.opengis.net/kml/2.2";> Paths Examples of paths. Note that the tessellate tag is by default set to 0. If you w

[gdal-dev] Newbie... need some tutorials about use gdal

2011-01-18 Thread Antonio P
Thanks- When I said "I have not found any tutorial to use gdal in c++." I wanted to say : I don't know nothing about which elements of Gdal have I to download, use,etc . There is a general dll for windows platform? statically ? dinamycally? and the sources ? Must I use them ? I'm totally lost

Re: [gdal-dev] Problem with ogrinfo and KML files

2011-01-18 Thread Chaitanya kumar CH
Massimo, Do you see KML in the list of formats shown when you run the command "ogrinfo --formats"? What was the error message you got? Can you provide a sample file? On Tue, Jan 18, 2011 at 6:54 PM, massimo costantini < massimo.costant...@gmail.com> wrote: > Hi, > I've try to analize KML files w

[gdal-dev] Problem with ogrinfo and KML files

2011-01-18 Thread massimo costantini
Hi, I've try to analize KML files with ogrinfo but it seems to not recognize the format. Gdal is compiled with expat support. Someone can tell me the reason and the solution for this problem? thanks Massimo Costantini ___ gdal-dev mailing list gdal-dev@

RE: [gdal-dev] Newbie... need some tutorials about use gdal

2011-01-18 Thread Nicolas Simon
Hello, Since you're interested in shape file (which is vector format), you should look at http://www.gdal.org/ogr/ogr_apitut.html Nicolas > -Message d'origine- > De : gdal-dev-boun...@lists.osgeo.org > [mailto:gdal-dev-boun...@lists.osgeo.org]De la part de Jean

[gdal-dev] gdalwarp EPSG not being applied

2011-01-18 Thread Gavin
gdalwarp with -t_srs 'EPSG:3857' produces expected output on one system but not on another. It seems gdal can't find the projection definition on System 2 (below). System 2 is the one where I need it to work and where I ultimately need to publish as 900913 through geoserver. What am I missing?

Re: [gdal-dev] Newbie... need some tutorials about use gdal

2011-01-18 Thread Jean-Claude Repetto
Le 18/01/2011 11:13, Antonio P a écrit : Hello everybody: I have read carefully all the documentation avalaible at gdal web page, but I have not found any tutorial to use gdal in c++. http://www.gdal.org/gdal_tutorial.html ___ gdal-dev mailing list gd

[gdal-dev] Newbie... need some tutorials about use gdal

2011-01-18 Thread Antonio P
Hello everybody: I have read carefully all the documentation avalaible at gdal web page, but I have not found any tutorial to use gdal in c++. (neither on the web) I dont know if I have to compile a dll or use any avalaible... If anyone can tell me some link I'll be extremely grateful. (A basi