[gdal-dev] Proposal to split this list into gdal-dev and gdal-users

2010-03-02 Thread Ari Jolma
Folks, gdal-dev has grown to more than 10 mails per day. There are a lot of mails about using gdal (often programming questions but still just using gdal through one of the APIs). I propose to split this list into gdal-dev (for mails that relate to development of and bugs in gdal) and gdal-users.

[gdal-dev] Re: C GDAL beginner

2010-03-02 Thread deadpickle
Thanks for the reply. I was wonder what the deal is with the other warnings: #include "ogr_api.h" #include "ogr_srs_api.h" int main() { //~ variable declaration const char *format = "ESRI Shapefile", *name = "testc.shp", *source, *target; const char *sprj = "+proj=lcc +lat

Re: [gdal-dev] C GDAL beginner

2010-03-02 Thread brian
deadpickle, The types in the OGR C api pretty much end in H. OGRCoordinateTransformation ctrans; should read OGRCoordinateTransformationH ctrans; The function your looking for is OCTNewCoordinateTransformation(). Brian On Tue, 2010-03-02 at 19:22 -0800, deadpickle wrote: > I'm trying to writ

[gdal-dev] C GDAL beginner

2010-03-02 Thread deadpickle
I'm trying to write a simple C program that creates and populates a shapefile (have one done in python). I'm very new to C and GDAL both and could use some help. I'm trying to apply coordinatetransformation to my points but first I have to create the coordinatetransformation. In python I can do thi

Re: [gdal-dev] Code submission for NITF driver

2010-03-02 Thread Even Rouault
Kevin, I'll try reviewing and commiting your changes. From a first look, they are quite substantial/non trivial. Am I wrong if I say they belong more to the enhancement category than to the bugfix one ? (I assume writing TEXT and CGM segments, and the interaction with writing multiple images, i

Re: [gdal-dev] Minor changes to RFC3

2010-03-02 Thread Daniel Morissette
Thanks for making those fixes/changes Even. Daniel Even Rouault wrote: Folks, With the agreement of FrankW and based on feedback from new commiters, I've made a few minor changes to RFC3 (GDAL Commiter Guildlines) to better reflect our current practice on how to write commit messages and lin

Re: [gdal-dev] Code submission for NITF driver

2010-03-02 Thread Frank Warmerdam
Chiou, Kevin wrote: Hi, I just wonder what the process is for submitting code to GDAL. I was working on a NITF editing tool using GDAL driver. I made some modification to the NITF driver including adding a CGM writing feature and fixed some data validation bugs. I submitted a ticket a co

[gdal-dev] Minor changes to RFC3

2010-03-02 Thread Even Rouault
Folks, With the agreement of FrankW and based on feedback from new commiters, I've made a few minor changes to RFC3 (GDAL Commiter Guildlines) to better reflect our current practice on how to write commit messages and link them with Trac. See http://trac.osgeo.org/gdal/wiki/rfc3_commiters?actio

Re: [gdal-dev] Georeferencing Geostationnary (+proj=geos)

2010-03-02 Thread Frank Warmerdam
quot; "euro_area_latlong.tif" My HDF5 file doesn't contain any infoprmation regarding GEOS projection. So, I had to do this Hope this helps If you get any news/information/method regarding this, please let me know Best

RE: [gdal-dev] gdal_translate and ArcGIS

2010-03-02 Thread Jason Roberts
Adam, I am by no means a gdal_translate expert but I do have experience with ArcGIS, so I can offer a few comments. ArcInfo ASCII Grid format does not include a specification of the bit depth, or even whether the file contains integers or floats. When ArcGIS reads the file, it infers all of this

Re: [gdal-dev] Georeferencing Geostationnary (+proj=geos)

2010-03-02 Thread Stéphane
T" >>"euro_area_georeferenced.tif" >> >> >>gdalwarp -s_srs "+proj=geos +lon_0=0.0 +h=35785831 +x_0=0.0 >>+y_0=0.0" -t_srs "+proj=latlong" "euro_area_georeferenced.tif" >>"euro_area_latlong.tif" >> &

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-02 Thread Kyle Shannon
Bill, It may be necessary to create an intermediate file that supports creation (I think the (rw+) flag on gdalinfo --formats shows which formats support create, AAIGrid supports CreateCopy() but not Create()). Use gdalwarp to make a vrt file, then translate the file to AAIGrid: /usr/local/gdal/

[gdal-dev] Re: GDAL for BNG to Lat/Long, WGS84

2010-03-02 Thread scottd777
Frank & Mike, THANK YOU! I apologize if I repeated a question previously posted. I did quite a bit of searching, and was still having trouble coming up with exactly what gdalwarp was looking for. I don't actually have a geotiff from the vendor - I just have a basic JPEG and Easting / Northing

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-02 Thread Bill Hudspeth
Hello, Thanks for responding. When I use gdalinfo --formats, I see that AAIGrid is included in the list of acceptable formats. However, when I use /usr/local/gdal/bin/gdalwarp -of AAIGrid -s_srs EPSG:4326 -t_srs '+proj=lcc +lat_1=33n +lat_2=45n +lon_0=97w' mcd12_sep2109.asc lambert_mcd12_sep2109.

[gdal-dev] Code submission for NITF driver

2010-03-02 Thread Chiou, Kevin
Hi, I just wonder what the process is for submitting code to GDAL. I was working on a NITF editing tool using GDAL driver. I made some modification to the NITF driver including adding a CGM writing feature and fixed some data validation bugs. I submitted a ticket a couple weeks ago, but not

[gdal-dev] gdal_translate and ArcGIS

2010-03-02 Thread Adam Bausch
I am attempting to take a series of rasters in 32 bit GTiff and use gdal_translate to convert then to a 16 bit AAIGRID, however I have been running into several difficulties. Although gdal_translate appears to have the functionality to change output data type AND output format in the same line t

Re: [gdal-dev] GDAL for BNG to Lat/Long, WGS84

2010-03-02 Thread Smith, Michael ERDC-USACE-NH
Frank and Scott, For Google Earth output (rather than Google Maps which would be in "google mercator") the output projection should be EPSG:4326, or WGS1984 Latitude Longitude. Mike -- Michael Smith RSGIS Center US Army Corps of Engineers On 3/2/10 12:52 AM, "Frank Warmerdam" wrote: > sc

[gdal-dev] Copy / manipulate TIFF-header

2010-03-02 Thread Sigbjorn Herstad
Hi, This is my first post here, but have followed the list for several years. I am trying to find a good way to edit a GeoTIFF-header. I have looked at the Python-script and listgeo and geotifcp mentioned here: http://lists.osgeo.org/pipermail/gdal-dev/2008-April/016752.html Using the Python-scri

Re: [gdal-dev] ask for help about the reading of the hdf4 file of the modis

2010-03-02 Thread Chaitanya kumar CH
Kevin, Try the GDALDataset::GetGeoTransform() and the GDALDataset::GetProjectionRef() functions on the subdataset. Here is some sample code: http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L435 2010/3/2 Kevin Lin > > hi,all > > I have a problem when I use the gdal to open

[gdal-dev] ask for help about the reading of the hdf4 file of the modis

2010-03-02 Thread Kevin Lin
hi,all I have a problem when I use the gdal to open the modis Hdf4 file. when I get the latitude and the Longitude, I do not know how to read it. is it use GetMetadata( "SUBDATASETS" )? but the SUBDATASETS, don't include the geolocation information. in the hdf4 file, ther is a geolocation fiel