Re: [gdal-dev] Building GDAL from VCPKG fails with FreeXL

2025-07-01 Thread Martin Chapman via gdal-dev
! Best regards, Martin Chapman From: Kai Pastor, DG0YT Sent: Tuesday, July 1, 2025 1:43 PM To: mchap...@hyperacktive.com; 'Even Rouault' ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Building GDAL from VCPKG fails with FreeXL - The freexl port builds in vcpkg CI, and th

Re: [gdal-dev] Building GDAL from VCPKG fails with FreeXL

2025-06-29 Thread Martin Chapman via gdal-dev
complaining then I wouldn’t waste time looking into it. If I have time later I will try to rebuild and reproduce the error, it just takes an hour to build so can’t do it right now. Thanks for your help though! Best regards, Martin Chapman From: Even Rouault Sent: Sunday, June 29, 2025 3:33

[gdal-dev] Building GDAL from VCPKG fails with FreeXL

2025-06-28 Thread Martin Chapman via gdal-dev
idn't seem that important? Also, is there a way to specify what drivers not to build without doing a custom-overlay port? Best regards, Martin Chapman ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Order of operations in GDALWARP

2022-05-10 Thread Martin Chapman
Abdul, Maybe run gdal warp twice. First do the reproject and resample. Second, do the cutline on the output from the first. Martin > On May 10, 2022, at 4:47 PM, Abdul Raheem Siddiqui > wrote: > >  > Hello all, > > I would like to know if anyone in the community is aware of a way to cont

Re: [gdal-dev] GDALCreateApproxTransformer and error threshold ramifications question

2021-06-07 Thread Martin Chapman
UTM zone to WGS84. When we removed the –et parameter the run times were way faster. I will look into it further and let you know if I find anything. Thanks again! Best regards, Martin Chapman From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Monday, June 7, 2021 11:07 AM

[gdal-dev] GDALCreateApproxTransformer and error threshold ramifications question

2021-06-07 Thread Martin Chapman
st regards, Martin Chapman ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] addRingDirectly is crashed

2020-04-18 Thread Martin Chapman
Your point ordering is counter clockwise. Did you intend to add a hole? I think exterior rings must be clockwise. Also, I think you need to set the spatial reference of the ring. Best regards, Martin Chapman > On Apr 18, 2020, at 7:15 AM, Andrew C Aitchison > wrote: > > On

Re: [gdal-dev] Slope obtained with GDAL has weird lines

2020-03-17 Thread Martin Chapman
regards, Martin Chapman > On Mar 16, 2020, at 5:09 PM, Danilo da Rosa wrote: > >  > Hi! > > This may be a very basic question, but I can't find the answer anyware. > I am working with this DEM obtained using terraincache, it uses mapzen data. > The SRC is WGS 8

Re: [gdal-dev] extracting a raster data within a polygon?

2019-11-13 Thread Martin Chapman
the OGR buffer operation) will create a new geometry that is exactly the same as the input because the buffer distance is zero but the GEOS API will attempt to correct the topology of the new geometry. Best regards, Martin Chapman From: gdal-dev [mailto:gdal-dev-boun

Re: [gdal-dev] angle of crossing two lines

2019-11-11 Thread Martin Chapman
1 * b2 - a2 * b1; if (determinant == 0) return FALSE; x = (b2 * c1 - b1 * c2) / determinant; y = (a1 * c2 - a2 * c1) / determinant; return TRUE; } Best regards, Martin Chapman From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Ahmet Temiz

Re: [gdal-dev] MrSID Color Spaces

2017-05-17 Thread Martin Chapman
en Rouault [mailto:even.roua...@spatialys.com] Sent: Wednesday, May 17, 2017 9:31 AM To: Martin Chapman Cc: 'SIMON Nicolas'; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] MrSID Color Spaces On mercredi 17 mai 2017 09:10:42 CEST Martin Chapman wrote: > It's an enum value defined

Re: [gdal-dev] MrSID Color Spaces

2017-05-17 Thread Martin Chapman
It’s an enum value defined in at least version 8.0 and greater. Maybe in earlier versions but I am using version 9.1. Martin From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Wednesday, May 17, 2017 8:39 AM To: Martin Chapman Cc: 'SIMON Nicolas'; gdal-dev@lists

Re: [gdal-dev] MrSID Color Spaces

2017-05-17 Thread Martin Chapman
Nicolas, Looks good bud! Thanks! Best regards, Martin From: SIMON Nicolas [mailto:nicolas.si...@spw.wallonie.be] Sent: Wednesday, May 17, 2017 4:41 AM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org; Even Rouault Subject: RE: [gdal-dev] MrSID Color Spaces Martin, Could you test

[gdal-dev] MrSID Color Spaces

2017-05-16 Thread Martin Chapman
Even or Frank or whoever it may concern, Not a big deal but I was trying to open a JP2 file using the MrSID driver and noticed that the mrsiddataset.cpp does not identify the color spaces MRSID_LTI_COLORSPACE_GRAYSCALEA and MRSID_LTI_COLORSPACE_GRAYSCALEA_PM configurations in the MrSIDRasterBan

Re: [gdal-dev] State Plane to WGS84 Transformation problem with false easting and northing values

2014-07-10 Thread Martin Chapman
, 2014 2:35 PM To: gdal-dev@lists.osgeo.org Cc: Martin Chapman Subject: Re: [gdal-dev] State Plane to WGS84 Transformation problem with false easting and northing values Martin, Yes this issue has been reported several times (last time was http://lists.osgeo.org/pipermail/gdal-dev/2014-May/039251

[gdal-dev] State Plane to WGS84 Transformation problem with false easting and northing values

2014-07-10 Thread Martin Chapman
Frank, Even or whoever, I have a source geotiff that has the following projection: PROJCS["State Plane",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.2572221010002,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG" ,"6269"]],PRIMEM["Greenwich",0],UNIT["degree",0.0

[gdal-dev] State Plane to WGS84 Transformation problem with false easting and northing values

2014-07-10 Thread Martin Chapman
Frank, Even or whoever, I have a source geotiff that has the following projection: PROJCS["State Plane",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.2572221010002,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG" ,"6269"]],PRIMEM["Greenwich",0],UNIT["degree",0.0

Re: [gdal-dev] Can't build gdal in x64

2013-05-14 Thread Martin Chapman
FYI, This is the same as doing: Start Menu->All Programs->Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio x64 Cross Tools Command Prompt (2010) If you look at the properties of the shortcut it launches the same bat file. Best regards, Martin From: gdal-dev-boun

Re: [gdal-dev] Can't build gdal in x64

2013-05-13 Thread Martin Chapman
Mihaela, You have to run nmake from the VC x64 command line window. Goto: Start Menu->All Programs->Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio x64 Win64 Command Prompt (2010) That will run the appropriate bat file for nmake and setup the x64 compiler options. C

Re: [gdal-dev] Pixel remap using the warp api question

2013-02-09 Thread Martin Chapman
en Rouault [mailto:even.roua...@mines-paris.org] Sent: Saturday, February 09, 2013 6:36 AM To: gdal-dev@lists.osgeo.org Cc: Martin Chapman Subject: Re: [gdal-dev] Pixel remap using the warp api question Le vendredi 08 février 2013 23:35:26, Martin Chapman a écrit : > I asked the following a couple of weeks

[gdal-dev] Pixel remap using the warp api question

2013-02-08 Thread Martin Chapman
I asked the following a couple of weeks ago and never got a reply. Frank, can you comment on this please? . I am trying to remap all "0" value pixels in the source images to the value "1" in the output image using gdalwarp like so: warpOptions->padfSrcNoDataReal[bandIndex] = 0; warpOp

[gdal-dev] remap pixel values using gdalwarp

2013-01-19 Thread Martin Chapman
I am trying to remap all "0" value pixels in the source images to the value "1" in the output image using gdalwarp like so: warpOptions->padfSrcNoDataReal[bandIndex] = 0; warpOptions->padfSrcNoDataImag[bandIndex] = NULL; warpOptions->padfDstNoDataReal[bandIndex] = 1; warpOptions->padfDstNoDa

Re: [gdal-dev] Multithreaded GDAL

2012-12-24 Thread Martin Chapman
Yehiyam, You can read from different threads concurrently if each thread has its own, unique GDALDataset handle. That means call GDALOpen() from each thread on the same file path. Writing should be done from one thread. Best regards, Martin From: gdal-dev-boun...@lists.osgeo.org

Re: [gdal-dev] s57 layers

2012-09-22 Thread Martin Chapman
I don't know if this helps but I do this for S57 on startup of my app: _putenv("OGR_S57_OPTIONS=RETURN_PRIMITIVES=ON,RETURN_LINKAGES=ON,LNAM_REFS =ON,SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON"); CPLSetConfigOption("OGR_S57_OPTIONS", "RETURN_PRIMITIVES=ON,RETURN_LINKAGES=ON,LNAM_REFS=ON,SPLIT_MUL

[gdal-dev] MUTEX_NONE question

2012-09-11 Thread Martin Chapman
ation? Best regards, Martin Chapman Software Developer Pixia Corp. 45615 Willow Pond Plaza Sterling, VA 20164 Main - 571.203.9665 Cell - 303.324.1065 chapm...@pixia.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidentia

Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91

2012-09-06 Thread Martin Chapman
...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Thursday, September 06, 2012 1:15 PM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91 On 12-09-06 4:09 PM, Martin Chapman wrote: > That worked. Thanks for all your h

Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91

2012-09-06 Thread Martin Chapman
That worked. Thanks for all your help. Martin From: Kyle Shannon [mailto:k...@pobox.com] Sent: Wednesday, September 05, 2012 2:16 PM To: Martin Chapman Cc: Joaquim Luis; gdal-dev@lists.osgeo.org; outr...@pixia.com Subject: Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91 Martin, Did

Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91

2012-09-05 Thread Martin Chapman
I love this user group. Thanks Joaquim! Best regards, Martin From: Joaquim Luis [mailto:jl...@ualg.pt] Sent: Wednesday, September 05, 2012 2:03 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91 On 05-09-2012 20:33, Martin

Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91

2012-09-05 Thread Martin Chapman
I love this user group. Thanks Even! Best regards, Martin -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Wednesday, September 05, 2012 1:59 PM To: gdal-dev@lists.osgeo.org Cc: Martin Chapman Subject: Re: [gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91 Le

[gdal-dev] GEOS Ver 3.3.5 and GDAL Ver 1.91

2012-09-05 Thread Martin Chapman
All, I am trying to compile GDAL 1.91 with GEOS version 3.3.5 on windows 7 x64 and the nmake.opt file does not seem to match the directory structure of the latest GEOS. Am I missing something simple? Any help is much appreciated. Muchos gracias, Martin _

Re: [gdal-dev] RPFTOC driver question

2012-08-26 Thread Martin Chapman
Even, You are the man. Thanks bud! Best regards, Martin -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Sunday, August 26, 2012 1:04 AM To: gdal-dev@lists.osgeo.org Cc: Martin Chapman; 'Livneh Yehiyam' Subject: Re: [gdal-dev] RPFTOC driver qu

Re: [gdal-dev] RPFTOC driver question

2012-08-25 Thread Martin Chapman
or both? Best regards, Martin From: Livneh Yehiyam [mailto:ye...@rafael.co.il] Sent: Saturday, August 25, 2012 11:10 PM To: Martin Chapman; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] RPFTOC driver question Martin We have removed the check completly, and so far have not had any

[gdal-dev] RPFTOC driver question

2012-08-25 Thread Martin Chapman
Even, I have an RPF dataset (CIB 5Meter in Zone 1) that will not display using the RPFTOC driver because on line 605 of file gdal19\gdal\frmts\nitf\rpftocdataset.cpp in function RPFTOCProxyRasterDataSet::SanityCheckOK(GDALDataset* sourceDS) the line of code: WARN_CHECK_DS(fabs(adfGeoTransfo

Re: [gdal-dev] What should I expect?

2012-08-10 Thread Martin Chapman
Jorge, It's a south up image. If the gsd x value is negative the image is an east to west image. Normally a north up image will have a positive gsd x and a negative gsd y. Marty -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behal

Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-02 Thread Martin Chapman
Even, Thank you for your input on that. I figured that was a risky idea and it is good to know the definitive answer. Best regards, Martin -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, August 02, 2012 2:13 AM To: Martin Chapman Cc

Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-01 Thread Martin Chapman
Kedar, Think about it...how does GetNextFeature() know what feature is next? It's because somewhere inside the datasource handle there is probably a variable that is keeping track of what record is next. If multiple threads are all using the same datasource handle then this variable is probably g

Re: [gdal-dev] Motion to adopt the RFC 39

2012-06-27 Thread Martin Chapman
Ari, I really like the idea and your proposed functions. I would like to propose additional ideas: 1. In addition to the spatial operations also have the spatial predicates like intersects, contains, within, etc... 2. Add an additional spatial predicate called IntersectsEvenOdd that uses the ev

RE: [gdal-dev] Microsoft VS 2010 - build of GDAL 1.9 does not work

2012-05-21 Thread Martin Chapman
You should be linking against gdal_i.lib. Marty -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of James Farrell Sent: Monday, May 21, 2012 9:23 AM To: Mateusz Loskot Cc: gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Micros

RE: [gdal-dev] Microsoft VS 2010 - build of GDAL 1.9 does not work

2012-04-11 Thread Martin Chapman
Microsoft VS 2010 - build of GDAL 1.9 64 and 32 bit works for me. Best regards, Martin -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Wednesday, April 11, 2012 12:56 PM To: Hans Jonsson Cc: gdal-dev@li

RE: [gdal-dev] JPEG2000 decoding using OpenJpeg linking errors

2012-04-06 Thread Martin Chapman
Robert, If it makes you feel any better I tried to do the same thing recently only using VS2010 (GDAL 1.9) and had the same issue. I think the main issue is that the v2 branch is still in development and has morphed from the time when the gdal driver was implemented. That was my best guess at

RE: [gdal-dev] Slow writing into Spatialite with -skipfailures

2012-04-04 Thread Martin Chapman
Oh sweet. I never knew that option existed in OGR! Thanks for the info Even. Marty -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Wednesday, April 04, 2012 1:12 PM To: gdal-dev@lists.osgeo.org Cc: Martin Chapman; 'Jukka Rahkonen' Subject:

RE: [gdal-dev] Slow writing into Spatialite with -skipfailures

2012-04-04 Thread Martin Chapman
Try to execute this query before you start inserting: "PRAGMA synchronous = 0;" It turns synchronous writes off for sqlite and give a big performance increase. I don't know if that will work for spatialite but it might. You need to read about the ramifications on the sqlite web site first though

RE: [gdal-dev] GdalWarp issue

2012-03-19 Thread Martin Chapman
regards, Marty From: Chaitanya kumar CH [mailto:chaitanya...@gmail.com] Sent: Monday, March 19, 2012 1:00 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GdalWarp issue Martin, Change the resampling method and/or change the SAMPLE_STEPS warp option. On Tue, Mar 20

[gdal-dev] GdalWarp issue

2012-03-19 Thread Martin Chapman
All, Please see the attached sub-region screen capture of an image I created using gdalwarp 1.9. I used MS Paint to highlight in red several columns of pixels that repeat a pattern from left to right across the image (vertically only) where the pixels are the same color for both pixel columns

RE: [gdal-dev] GEOS geometries SRS not set

2012-02-20 Thread Martin Chapman
58 AM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GEOS geometries SRS not set On 12-02-20 10:54 AM, Martin Chapman wrote: > It appears that when new OGR geometries are created using the spatial > operations features of GEOS via OGR methods like ConvexHull, Buffer, > etc. th

[gdal-dev] GEOS geometries SRS not set

2012-02-20 Thread Martin Chapman
It appears that when new OGR geometries are created using the spatial operations features of GEOS via OGR methods like ConvexHull, Buffer, etc. that the spatial reference of the newly created OGR geometry is not assigned. Is this by design or is it an oversight? If by design, what was the reasoni

RE: [gdal-dev] PostGIS SRID conundrum

2012-02-14 Thread Martin Chapman
Sandro, Thank you very much for the info! Best regards, Martin From: sandro.santi...@gmail.com [mailto:sandro.santi...@gmail.com] On Behalf Of Sandro Santilli Sent: Tuesday, February 14, 2012 3:05 AM To: Martin Chapman Cc: pcr...@pcreso.com; gdal-dev@lists.osgeo.org Subject: Re: [gdal

RE: [gdal-dev] PostGIS SRID conundrum

2012-02-10 Thread Martin Chapman
ack! Best regards, Martin From: pcr...@pcreso.com [mailto:pcr...@pcreso.com] Sent: Friday, February 10, 2012 10:33 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] PostGIS SRID conundrum ESRI does not use a SRID, it uses a text string that needs complex parsing to w

[gdal-dev] PostGIS SRID conundrum

2012-02-10 Thread Martin Chapman
I know this question isn't exactly related to GDAL but I thought someone on the list might be able to answer this question. So, I have a shape file that has the following spatial reference: PROJCS["Orthographic",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["W GS_1984",6378137,298.25722

RE: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt() On Thu, Jan 12, 2012 at 6:30 PM, Martin Chapman wrote: > Frank, > > > > I think there is a bug in OGRSpatialReference::importFromWkt().  I did > the &g

RE: [gdal-dev] Problem w\images with one raster band

2012-01-12 Thread Martin Chapman
Sorry, I said four bands when I meant three. Marty -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Martin Chapman Sent: Thursday, January 12, 2012 8:11 PM To: 'Joaquim Luis'; 'Timur Chabayev' Cc: gdal

RE: [gdal-dev] Problem w\images with one raster band

2012-01-12 Thread Martin Chapman
An easy way to handle this would be to create a 3 band bitmap using the windows gdi, in other words the bitmapinfo bits should be 24 (8 bits for each band). Then use the single band from the source image for every band . Red, green and blue. Otherwise you will have to handle palletted like Joaqu

[gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
Frank, I think there is a bug in OGRSpatialReference::importFromWkt(). I did the following: char* wkt = NULL; sourceSRS.exportToWkt(&wkt); targetSRS.importFromWkt(&wkt); CPLFree(wkt); It blows up on the CPLFree(). Why you might ask. Because it looks like the importFromWkt() incre

RE: [gdal-dev] FYI - embedding overviews into read only file

2012-01-09 Thread Martin Chapman
...@gmail.com] On Behalf Of Frank Warmerdam Sent: Monday, January 09, 2012 7:16 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] FYI - embedding overviews into read only file Martin, In general GDAL is very poor about checking read-only vs. read-write status. I presume

[gdal-dev] FYI - embedding overviews into read only file

2012-01-09 Thread Martin Chapman
Frank, It just dawned on me that yesterday I used the following code to open a raster file like so: mDataSource = (GDALDataset*) GDALOpen(filePath.c_str(), GA_ReadOnly); And then used the GDALDefaultOverviews class to embed some overviews into the file. Shouldn't the API prevent that i

RE: [gdal-dev] Compile GDAL for x86 on an x64 machine

2011-11-27 Thread Martin Chapman
Thanks Mateusz. I figured I was doing something wrong. Your feedback is much appreciated. Marty -Original Message- From: Mateusz Łoskot [mailto:mate...@loskot.net] Sent: Saturday, November 26, 2011 6:02 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Compile

RE: [gdal-dev] Compile GDAL for x86 on an x64 machine

2011-11-27 Thread Martin Chapman
ponse. Best regards, Marty From: Joaquim Luis [mailto:jl...@ualg.pt] Sent: Saturday, November 26, 2011 5:29 PM To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Compile GDAL for x86 on an x64 machine On 27-11-2011 00:07, Martin Chapman wrote: All, I am using a Wi

[gdal-dev] Compile GDAL for x86 on an x64 machine

2011-11-26 Thread Martin Chapman
All, I am using a Windows 7 x64 machine with VS 2010 with both x86 and x64 compile tools. When I try to build gdal for x64 using the make file from the Win64 command prompt and WIN64 = YES in the nmake.opt file everything compiles fine. (using gdal 181 by the way). If I try to compile it for

RE: [gdal-dev] reading VPF format NGA DNCs

2010-01-14 Thread Martin Chapman
\ -sql 'select * from "polb...@bnd(*)_line" where use=26' Martin -Original Message- From: Christopher Barker [mailto:chris.bar...@noaa.gov] Sent: Thursday, January 14, 2010 2:22 PM To: chapm...@pixia.com Cc: 'gdal-dev' Subject: Re: [gdal-dev] reading VPF f

Re: [gdal-dev] reading VPF format NGA DNCs

2010-01-14 Thread Martin Chapman
. Martin --Original Message-- From: Christopher Barker To: chapm...@pixia.com Cc: 'gdal-dev' Subject: Re: [gdal-dev] reading VPF format NGA DNCs Sent: Jan 14, 2010 2:21 PM Martin Chapman wrote: > Do you have the OGDI driver built and configured into GDAL? well, orginfo tells

Re: [gdal-dev] reading VPF format NGA DNCs

2010-01-14 Thread Martin Chapman
Do you have the OGDI driver built and configured into GDAL? Martin -Original Message- From: Christopher Barker Date: Thu, 14 Jan 2010 13:08:46 To: 'gdal-dev' Subject: [gdal-dev] reading VPF format NGA DNCs Hi folks, I'm trying to use gdal(ogr) to read NGA vector nautical charts, which

[gdal-dev] NITF JPEG2000 compression and Kakadu

2010-01-13 Thread Martin Chapman
Frank, In the file NITFDatasetCreate.cpp in the function NITFDatasetCreate() if the compression option is set to C8 (JPEG2000) it looks like you: 1. get a handle to an installed J2K driver if available. 2. test for metadata creation capability. 3. create the nitf file. 4.

RE: [gdal-dev] Missing msvcr80.dll ?

2009-09-05 Thread Martin Chapman
Colorado and use to climb a lot when I was younger. Really cool pics! Martin -Original Message- From: Mateusz Loskot [mailto:mate...@loskot.net] Sent: Saturday, September 05, 2009 3:17 PM To: Stefan Moebius Cc: Martin Chapman; gdal-dev@lists.osgeo.org; 'Martin Hvidberg' Subject:

RE: [gdal-dev] GDAL: How to create one NITF image from CIB CD

2009-09-03 Thread Martin Chapman
Carol, If you write code the way to go about mosaicing all rpf frame files into one image would be to create a GDAL MEM dataset that is the width and height of an entire RPF Boundary. Then loop through each Frame file in the Boundary, open up each Frame file with the GDAL NITF driver and copy the

RE: [gdal-dev] GDAL: How to create one NITF image from CIB CD

2009-09-03 Thread Martin Chapman
Carol, Also see the switch: src_dataset: The source dataset name. It can be either file name, URL of data source or subdataset name for multi-dataset files. Martin -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of R

RE: [gdal-dev] GDAL: How to create one NITF image from CIB CD

2009-09-03 Thread Martin Chapman
Carol, http://www.gdal.org/gdal_translate.html says the command switch: -sds: Copy all subdatasets of this file to individual output files. Use withformats like HDF or OGDI that have subdatasets. OGDI is the old RP driver so I imagine it applies. Maybe that's what you need. Also,

RE: [gdal-dev] Missing msvcr80.dll ?

2009-09-03 Thread Martin Chapman
I am a glutton for pain. :) -Original Message- From: Joaquim Luis [mailto:jl...@ualg.pt] Sent: Thursday, September 03, 2009 2:25 PM To: Harsh Govind Cc: Martin Chapman; 'Martin Hvidberg'; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Missing msvcr80.dll ? Harsh Govind wr

RE: [gdal-dev] Missing msvcr80.dll ?

2009-09-03 Thread Martin Chapman
adac.com] Sent: Thursday, September 03, 2009 2:21 PM To: Martin Chapman; 'Martin Hvidberg'; gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Missing msvcr80.dll ? And unlike previous versions (msvcrt71) you cannot copy over 8.0 versions dlls from somewhere to your application directory in orde

RE: [gdal-dev] Missing msvcr80.dll ?

2009-09-03 Thread Martin Chapman
Martin Here are the links for VC2005 redist installs: x86: (win 32 bit) http://www.microsoft.com/downloads/details.aspx?FamilyId=32BC1BEE-A3F9-4C13- 9C99-220B62A191EE&displaylang=en x64: (win 64 bit) http://www.microsoft.com/downloads/details.aspx?FamilyId=90548130-4468-4BBC- 9673-D6ACABD5D13B

RE: [gdal-dev] Missing msvcr80.dll ?

2009-09-03 Thread Martin Chapman
Martin, Sounds like that copy of GDAL you have has a manifest dependency on that version of the C runtime. You can download the vcredist.exe for the 8.0 version of the CRT from Microsoft and install it on that computer or make your own by including the merge module for that CRT in a custom setup

[gdal-dev] RE: Optimizing random access in SQL result set of OGR DB drivers

2009-08-26 Thread Martin Chapman
testing. Best regards, Martin -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Wednesday, August 26, 2009 4:33 PM To: Martin Chapman Cc: 'Frank Warmerdam'; 'Even Rouault'; 'Gdal-Dev' Subject: RE: Optimizing random access in SQ

[gdal-dev] RE: Optimizing random access in SQL result set of OGR DB drivers

2009-08-26 Thread Martin Chapman
tion. How does that sound? Martin -Original Message- From: Frank Warmerdam [mailto:warmer...@pobox.com] Sent: Wednesday, August 26, 2009 4:02 PM To: Even Rouault Cc: Martin Chapman; Gdal-Dev Subject: Re: Optimizing random access in SQL result set of OGR DB drivers Even Rouault wrote: &

RE: [gdal-dev] RasterIO Writing Packed RGB data

2009-08-06 Thread Martin Chapman
Thanks Martin! _ From: Martin Chapman [mailto:chapm...@pixia.com] Sent: Thursday, August 06, 2009 4:09 PM To: 'Martin Chapman'; gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] RasterIO Writing Packed RGB data Answered my on question: It is: outputDataset->Rast

RE: [gdal-dev] RasterIO Writing Packed RGB data

2009-08-06 Thread Martin Chapman
Answered my on question: It is: outputDataset->RasterIO(GF_Write, 0, 0, width, height, buffer, width, height, GDT_Byte, numBands, NULL, 3, 3 * width, 1); Martin _ From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Martin Chapman S

[gdal-dev] RasterIO Writing Packed RGB data

2009-08-06 Thread Martin Chapman
I'm using the RasterIO method on the GDALDataset object and trying to write a buffer where the pixels are packed as RGBRGBRGB etc. and having trouble figuring out what parameters to pass as the pixel, line and band space. My desired output is a 3 band geotiff and the source and dest datatype is by

Re: [gdal-dev] JPEG format.

2009-07-29 Thread Martin Chapman
Good question. I imagine it is extra work for Frank that falls low on the priority list. :) Martin -Original Message- From: Belaid MOA Date: Wed, 29 Jul 2009 18:46:28 To: ; Subject: RE: [gdal-dev] JPEG format. That's excellent to know! Thanks a lot Martin. Instead of gettin

RE: [gdal-dev] JPEG format.

2009-07-29 Thread Martin Chapman
Use: if (!pDriver->TestCapability(ODrCCreateDataSource)) to test create capabilties of the driver. I think jpeg driver only supports CreateCopy(). You could use the Memory dataset to create a different size dataset and then use the jpeg driver to save it to disk. Martin From

RE: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Martin Chapman
ot;, FALSE, NULL ); for c. see http://www.gdal.org/ogr/ogr_apitut.html for more info Martin From: Martin Chapman [mailto:chapm...@pixia.com] Sent: Monday, July 20, 2009 3:48 PM To: 'Smart, Gary'; 'gdal-dev@lists.osgeo.org' Subject: RE: [gdal-dev] How do I ope

RE: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Martin Chapman
Call OGRRegisterAll(); on the line right before GDALOpen(); Martin From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Smart, Gary Sent: Monday, July 20, 2009 2:51 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] How do I open vector files (e.g.

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Martin Chapman
under the FWTools directory somewhere? There is no GDAL source in this directory – just include files and libraries. I presumed this was all that was needed to use GDAL? _ From: Martin Chapman [mailto:chapm...@pixia.com] Sent: 20 July 2009 14:49 To: Smart, Gary; gdal-dev

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Martin Chapman
Gary, Set your paths like such on startup or as an environment variable: GDAL_DATA points at the data dir that comes with gdal source. PROJ_LIB point to the nad directory that you download from proj4 website. string env = string("GDAL_DATA=") + dataPath; _putenv(env.c_str()); env = s

[gdal-dev] FL.lla file not included in makefile.vc nadshift option

2009-02-17 Thread Martin Chapman
Frank, I should also add that I am using proj 4.6.1. Martin ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] FL.lla file not included in makefile.vc nadshift option

2009-02-17 Thread Martin Chapman
Frank, I noticed in the /src/makefile.vc for proj4 that the config entries for nadshift is missing an entry for the FL.lla file. I didn't know if this was a big deal, but I thought it probably matters for datum shifts in Florida. Anyway I thought you would want to know. Also, I usually deploy

RE: [gdal-dev] Debugging on Windows Using Visual Studio

2008-12-20 Thread Martin Chapman
Joel, I debug into gdal source from visual studio all the time. Here is what I do: 1. Use nmake to build gdal from the command line with the nmake.opt file set to build gdal in the debug configuration. 2. Copy the gdalxxx.dll, gdalxxx_i.lib and gdalxxx.pdb to the same directory as my application

[gdal-dev] WINCE / MD redefinition; different linkage problem

2008-12-15 Thread Martin Chapman
All, I'm using GDAL on windows mobile 6.0 and when I set the runtime switch to be /MD I get the following errors. /MT works fine: 1>ogrfeaturequery.cpp 1>C:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\time.h(200) : error C2375: 'wceex_ctime' : redefinition; different linkag

RE: [gdal-dev] GDAL reference counting is thread unsafe

2008-11-01 Thread Martin Chapman
If anyone is interested the following code has been used safely on Windows and Linux for thread safe reference counting. You can paste it into a header file if you want, or use it as a guide. It uses pthreads on Linux and the Win32 thread functions on Windows with InterlockedIncrement() and Inter

[gdal-dev] null pointer check needed in shptree.c

2008-10-12 Thread Martin Chapman
Frank, In the file shptree.c on line 261 (psShape = SHPReadObject( hSHP, iShape );) in function SHPCreateTree() when the call to SHPReadObject() returns NULL the code crashes because the following line (262) tries to use the psShape pointer without checking if it is NULL. SHPReadObject() correct

RE: [gdal-dev] About Gdal contour - Opinion

2008-09-16 Thread Martin Chapman
FYI...I use gdal contour a lot for placing Tactical Access Points in the field for our customers. Works really good in my opinion. Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Warmerdam Sent: Tuesday, September 16, 2008 10:11 AM To: Anton

RE: [gdal-dev] Newbie Developer Question About Linking

2008-09-05 Thread Martin Chapman
Joel, Did you add "gdal_i.lib" to your linker input property in the project settings? Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Odom Sent: Friday, September 05, 2008 1:12 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Newbie Developer Question About

RE: [gdal-dev] geotiff image problem

2008-08-28 Thread Martin Chapman
Silvia, The d in gdal15d-vc8 means debug version. Run your IDE in release mode and make sure the .dll file is in the same directory as your application .exe. If you want to use the dll in debug mode, my suggestion is to get the source code via SVN and compile it locally. It's really easy to d