[gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread sandeep
hi, i had run gdalinfo on .nc file. it doesnt have subdatsets. it is rainfall data. it has 122 bands. how can i get geoextents of this file. and how do i extract each band from it if i want display band according to the time? how can i access those variables? i am writing this in C so i want to

Re: [gdal-dev] Error while importing shapefiles to Sql Server

2014-03-18 Thread Jukka Rahkonen
Giampaolo giampaolo.rebuzzi at i-sti.net writes: Hi, I wrote this batch file to import all the shapefiles in a folder to Sql Server: at ECHO OFF setlocal EnableDelayedExpansion echo Importing... for %%f in (*.shp) do ( set filename=%%~nf set filenametrunc=!filename:~3! ogr2ogr

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread Even Rouault
It looks like you need to read http://gdal.org/gdal_tutorial.html hi, i had run gdalinfo on .nc file. it doesnt have subdatsets. it is rainfall data. it has 122 bands. how can i get geoextents of this file. and how do i extract each band from it if i want display band according to the time?

Re: [gdal-dev] Error while importing shapefiles to Sql Server

2014-03-18 Thread Giampaolo
Hi, thank you for your answer. I already thought to create the tables with the first set of files and then removing -nln but, with the succeeding sets (I don't have only 2 sets, but 250), ogr2ogr would create new tables with the original file names. It would be nice to have a parameter similar to

[gdal-dev] mapinfo driver - polygon geometries

2014-03-18 Thread Cemal Koplay
Hi, I want to ask a question for the mapinfo(mitab) driver. When i try to open a .tab file whose geometry type is polygon, OGRFeatureDefn::GetGeomType method for layer object return wkbUnknown instead of wkbPolygon. When i search for the mitab_tabfile.cpp for the geometry type parsing code, i

Re: [gdal-dev] mapinfo driver - polygon geometries

2014-03-18 Thread Even Rouault
Cemal, I guess the reason might be that regions can be according to cases Polygons (one outer ring with 0 or more inner rings) or MultiPolygons (several outer rings with 0 or more inner rings), which are 2 directinct geometry types in OGR model (following Simple Features specifications). Well,

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread Ivan Price
and make sure you'r using gdal 1.10.. the netcdf driver is more functional -i From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Even Rouault [even.roua...@mines-paris.org] Sent: Tuesday, 18 March 2014 11:38 To:

Re: [gdal-dev] Error while importing shapefiles to Sql Server

2014-03-18 Thread Jukka Rahkonen
Giampaolo giampaolo.rebuzzi at i-sti.net writes: Hi, thank you for your answer. I already thought to create the tables with the first set of files and then removing -nln but, with the succeeding sets (I don't have only 2 sets, but 250), ogr2ogr would create new tables with the original file

Re: [gdal-dev] Enter The Chicken

2014-03-18 Thread Piotr Tracz
W dniu 2014-03-18 13:52, Aaron Boxer pisze: Thanks for the heads up. What types of changes did you need to make to GDAL to make it ICD compatible? 1. NMake build script 2. Linking aganist ICD lib instead of OpenCL SDK (ATI) 3. Config params, which can set OpenCL device runtime

[gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi all, recently I started to write a new OGR driver for specific national exchange format which based on GML. I started studying code of GML and NAS driver which are both based on IGMLDriver. I discovered that part of the code is duplicated in NASDriver compared to GMLDriver. The differencies

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Even Rouault
Martin, Yes I agree that there's code duplication, and some of it could have been avoided. I guess this was to avoid to make the GML driver too dirty with NAS stuff, or regress. Personnaly I've hacked a lot in the GML driver over the past few years to add support for various application schemas

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi, 2014-03-18 16:35 GMT+01:00 Even Rouault even.roua...@mines-paris.org: some categories of application schemas easier. See the Registry for GML application schemas paragraph of http://gdal.org/ogr/drv_gml.html. Perhaps your use case could fit into that. right, after digging into the code

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Even Rouault
Selon Martin Landa landa.mar...@gmail.com: Hi, 2014-03-18 16:35 GMT+01:00 Even Rouault even.roua...@mines-paris.org: some categories of application schemas easier. See the Registry for GML application schemas paragraph of http://gdal.org/ogr/drv_gml.html. Perhaps your use case could fit

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread Etienne Tourigny
As Even suggests you should read the tutorial first, most questions will be answered there. As for Band extraction, you need to look at the metadata, which you can inspect with gdalinfo you should look for metadata like NETCDF_DIM_time_DEF NETCDF_DIM_time_VALUES and band metadata like

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi, 2014-03-18 17:25 GMT+01:00 Even Rouault even.roua...@mines-paris.org: right, after digging into the code I discovered that `featureType` from `gml_registry.xml` is checked only in header (first 2048 bytes) [1]. This check fails in my case because features are not included in szHeader

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Even Rouault
Selon Martin Landa landa.mar...@gmail.com: Hi, 2014-03-18 17:25 GMT+01:00 Even Rouault even.roua...@mines-paris.org: right, after digging into the code I discovered that `featureType` from `gml_registry.xml` is checked only in header (first 2048 bytes) [1]. This check fails in my case

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi Even, 2014-03-18 17:50 GMT+01:00 Even Rouault even.roua...@mines-paris.org: [...] I haven't looket at the file but from the above, the logic of the application schema registry would need to be extended since it currently only supports one feature type per file. You would need to ingest

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi, 2014-03-18 17:50 GMT+01:00 Even Rouault even.roua...@mines-paris.org: I haven't looket at the file but from the above, the logic of the application schema registry would need to be extended since it currently only supports one feature type per file. You would need to ingest the full file

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Even Rouault
Selon Martin Landa landa.mar...@gmail.com: Hi, 2014-03-18 17:50 GMT+01:00 Even Rouault even.roua...@mines-paris.org: I haven't looket at the file but from the above, the logic of the application schema registry would need to be extended since it currently only supports one feature type

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Martin Landa
Hi Even, 2014-03-18 18:04 GMT+01:00 Even Rouault even.roua...@mines-paris.org: increase the szHeader size). Add in the GML registry your feature types and make them point to the same .gfs file that define all the feature types ! The only I do not understand this part, point to the same GFS

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread Etienne Tourigny
the gdal api tutorial will give you pointers on how to access dataset and band-level metadata On Tue, Mar 18, 2014 at 2:38 PM, sandeep sandeepkumar7...@gmail.com wrote: yes Etienne i need to extract band according to the NETCDF_DIM_time_VALUES. so i am doing it in C. so i need to access these

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread sandeep
From the GetRasterCount() i can find the number of bands and using vrt i am creating a file for every band. in order to to show them according to the NETCDF_DIM_time_VALUES how can i do that? -- View this message in context:

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread sandeep
yes Etienne i need to extract band according to the NETCDF_DIM_time_VALUES. so i am doing it in C. so i need to access these variable.. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-find-the-geoextents-in-a-netCDF-file-tp5129619p5129724.html Sent from the GDAL

Re: [gdal-dev] How to find the geoextents in a netCDF file

2014-03-18 Thread Etienne Tourigny
loop for each raster as explained in the tutorial, and get the specific metadataitem like this const char* md = GDALGetMetadataItem(hBand, NETCDF_DIM_time_VALUE, ) md will contain the value of NETCDF_DIM_time_VALUE for that band On Tue, Mar 18, 2014 at 2:42 PM, sandeep

[gdal-dev] GML enhancement proposal: Getting all XML attributes as OGR fields

2014-03-18 Thread Hermann Peifer
Dear All, I am wondering if someone else would be interested in a config option like: GML_ATTRIBUTES_TO_OGR_FIELDS that would enable auto-detection of all XML attributes and subsequently write them into the .gfs file, as described at http://trac.osgeo.org/gdal/ticket/5418 If there is no

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Even Rouault
Le mardi 18 mars 2014 18:33:21, Martin Landa a écrit : Hi Even, 2014-03-18 18:04 GMT+01:00 Even Rouault even.roua...@mines-paris.org: increase the szHeader size). Add in the GML registry your feature types and make them point to the same .gfs file that define all the feature types ! The

[gdal-dev] gdalwarp _ RPC_DEM ignored ?

2014-03-18 Thread alain Sauter
Hi all, I am trying to orthorectify a couple of aerial photos using gdalwarp, but i am stuck with the /-to /transformer option. I have seen in archive two request concerning this issue, but without any answer for now... so hope this 3rd will have a reply ;) materials : scan of an old aerial

Re: [gdal-dev] gdalwarp _ RPC_DEM ignored ?

2014-03-18 Thread Dmitriy Baryshnikov
Hi, the parameter may ignored because the input tiff lack the RPC coefficients. Does any of RPC coefficient exist? What is gdalinfo output of you aerial photos? Best regards, Dmitry 18.03.2014 23:54, alain Sauter ?: Hi all, I am trying to orthorectify a couple of aerial photos

Re: [gdal-dev] GML / NAS code redundancy

2014-03-18 Thread Jukka Rahkonen
Even Rouault even.rouault at mines-paris.org writes: Selon Martin Landa landa.martin at gmail.com: Hi, 2014-03-18 17:50 GMT+01:00 Even Rouault even.rouault at mines-paris.org: I haven't looket at the file but from the above, the logic of the application schema registry would