[gdal-dev] How to use MFC Visual C++ and GDAL together

2013-10-04 Thread user gdal
Friends, I wish to use MFC which is part of Visual C++ 2008 and GDAL. 1. I downloaded GDAL 'latest stable release' as a zip file from http://trac.osgeo.org/gdal/wiki/DownloadSource 2. Extracted the zip file. Compiled the project to get gdal110.dll + many .lib files + many .h files 3. Created a

[gdal-dev] (no subject)

2013-10-06 Thread user gdal
Friends, I sent this mail on Friday. Request for a remedy. If someone can send a built-in project (needn't be with a high end code) using MFC in VC++ 2008 in a Win Zip or RAR, it will be even better. The error (pl. see No. 8) I got is f:\sw\GDALexperiment\GDALexperiment\header\cpl_port.h: fatal e

[gdal-dev] AOI, Signature and Fourier Transform files' access?

2014-04-11 Thread user gdal
Dear all, Good Morning! Is it possible to read/write ERDAS AOI, Signature (.sig) and Fast Fourier Transform image data from GDAL? If so, can anyone kindly teach me how to. With many thanks, Yours sincerely, B. Ramesh ___ gdal-dev mailing list gdal-dev

[gdal-dev] OGR writing problem pl. help

2014-06-11 Thread user gdal
Dear all, I have a shape file and programmatically I have to write to an attribute named 'production'. I use Visual; C++ 2005. I proceeded like this: const char *DriverName = "ESRI Shapefile"; OGRSFDriver *Driver; OGRRegisterAll(); Driver = OGRSFDriverRegistrar::GetRegistrar( )->GetDriverByName(Dr

[gdal-dev] Clipping Task, pl. help!

2015-07-02 Thread user gdal
Dear friends I have an ERDAS INAGINE img file and an ESRI polygon shape file. How to programmatically clip (or irregular subset) the input img file using the shape file? Can the GDAL tools help in this regard? If you have code that can be shared with us, it'll be very nice. With thanks, Yours si

[gdal-dev] OGR and Sel by Attributes

2015-07-08 Thread user gdal
Dear friends, Can you please give me an example of Selection by Attributes using OGR library. In other words, I need an example of OGRDataSource::ExecuteSQL(...). With thanks, Yours sincerely, B. Ramesh ___

[gdal-dev] (no subject)

2015-07-23 Thread user gdal
Friends I have a raster image (img) file with a coordinate system. How to get the information through program, the X and Y spatial resolutions? Thanks, B. Ramesh ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/

[gdal-dev] Spatial Resolution from img file

2015-07-30 Thread user gdal
Dear friends, I have a geo ref. ERDAS img file. How to obtain its spatial resolution programmatically (C++)? One suggestion I received was to refer to gdalinfo.c However I couldn't get the required information in gdalinfo.c. I also felt it to be unclear. What I have seen in gdalinfo is how to get

[gdal-dev] A Problem with GDALWarp

2015-08-19 Thread user gdal
Dear friends, I have to programmatically clip (using Visual C++) with GDALWarp. I proceeded like this: GDALDataset *outimg; outimg->(GDALDataset *) GDALOpen(filename, GA_Update); /* I also tried, instead of the above, outimg=driver->Create(filename, NewCol, NewRow, Band, DataTy

[gdal-dev] (no subject)

2015-08-20 Thread user gdal
Dear Dr. Brad, Thanks for your kind and prompt reply. Below are my answers/clarifications. On Wed, 19 Aug 2015 04:01:32 PM user gdal wrote: > Dear friends, >I have to programmatically clip (using Visual C++) with > GDALWarp. I proceeded like this: > > GDAL

[gdal-dev] Problem with GDALWarp

2015-08-31 Thread user gdal
Dear Dr. Brad/all, Thanks for your kind and prompt reply. Below are my answers/clarifications. It may also be said that the program stops execution just after the 'operation->Initialize(WO)' step. Can someone help me solve this problem. On Wed, 19 Aug 2015 04:01:32 PM user gdal

[gdal-dev] GDALWarp fails to initialize

2015-09-08 Thread user gdal
Dear All, I want to programmatically clip a raster ("inimg") with a polygon vector of the format shp ("myshp"); both have the same geog. reference, which I tested using std. SW, say, QGIS. I proceeded as per the code below. I am getting an error "Unhandled exception... Access Violation", when no p

[gdal-dev] (no subject)

2015-11-11 Thread user gdal
Hello, I have a shape file which consists of many polygons (say 56). Programmatically I wish to select (say, one poly.) from them. I proceeded something like this. OGRLayer *clippingshp; unsigned int NumPolygons; while((tempfeature=inlayer->GetNextFeature( ))!=NULL) { clippingshp->CreateFeatur

[gdal-dev] Selection using OGR

2015-11-11 Thread user gdal
Hello, I have a shape file which consists of many polygons (say 56). Programmatically I wish to select (say, one poly.) from them. I proceeded something like this. OGRLayer *clippingshp; unsigned int NumPolygons; while((tempfeature=inlayer->GetNextFeature( ))!=NULL) { clippingshp->CreateFeatur

[gdal-dev] OTB Montrevedi usage with VS 2008

2013-02-11 Thread user gdal
Dear all I have very recently downloaded "Montrevedi" OTB source code. All I see is myriad classes (but seems no DLL/lib!). I have right now a few doubts: 1. How to use this package in a C++ application using MS Visual Studio .NET 2008? 2. The documentation says the code depends on GDAL and ITK.

[gdal-dev] Geometric Correction and Resampling

2011-02-01 Thread user gdal
Dear all, I need, using GDAL, a Geometric Correction and Resampling program for ERDAS img in C++/MFC. Can you please help me. If you don't have the source code, would you please mail me the detailed algorithm(s) to accomplish the task. With many thanks, Ramesh

[gdal-dev] SOS! Zero pixel values in the output! Please help!

2011-02-04 Thread user gdal
Dear all, I am new to GDAL and I was at fault in being too hasty in asking for an advanced topic in my previous post. I am facing a fundamental difficulty. The problem is to retrieve projection and pixel data etc. from a source ERDAS .img file and copy 'as it is' to another file. For this, I wrote

[gdal-dev] Zero Pixel Values in the output! Solution Please

2011-02-16 Thread user gdal
Dear all, I am new to GDAL and I was at fault in being too hasty in asking for an advanced topic in my previous post. I am facing a fundamental difficulty. The problem is to retrieve projection and pixel data etc. from a source ERDAS .img file and copy 'as it is' to another file. For this, I wrote

[gdal-dev] Zero Pixel Values. Continuation...

2011-02-21 Thread user gdal
Dear Sir, Thanks a lot for reply about zero pixel values when I attempted to write into an output image file. Though I pasted the code I wrote for programmatically 'copying' the image, once again I am pasting the same below. Q. "One thing I notice about your code is that you only appear to read an