[gdal-dev] Black lines across images using GDAL 1.7.2 and above

2010-12-15 Thread Smart, Gary
I recently updated our GDAL source to version 1.7.3 from 1.7.1 and suddenly we appear to have lots of black lines across any imagery read using the GDAL (e.g. NITF files, WMS geotiffs). Wondering if it was a 1.7.3 issue, I switched to 1.7.2 which showed exactly the same problem. Moving back to 1.7

[gdal-dev] NITF 16bit pixel scaling using NBITS/ABPP

2010-12-15 Thread Smart, Gary
We are reading NITF images which occupy the lower 12bits of a 16bit datatype. These images clearly have ABPP=12 and NBPP=16 set in the header. However, when I use GetMetadataItem("NBITS"), the string returned is always 'null'. I have also tried GetMetadataItem("ABPP") - which also returns 'null'

[gdal-dev] NITF masks

2010-11-02 Thread Smart, Gary
Does anyone have an example of adding a mask while creating a NITF file? I can create NITF files OK but can't figure out from the "RFC 15: Band Masks" documentation how to include a rectangular mask area. When I call CreateMaskBand on the dataset, where does it go? Calling GetMaskBand from any o

[gdal-dev] NITF invalid read of 2 bytes causes crash

2010-04-27 Thread Smart, Gary
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed. If this email is from an unknown source, please simply delete this email. If this email was expected

RE: [gdal-dev] Re-aligning maps from grid north to true north

2010-01-28 Thread Smart, Gary
. > -Original Message- > From: Peter J Halls [mailto:p.ha...@york.ac.uk] > Sent: 28 January 2010 07:25 > To: Smart, Gary > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Re-aligning maps from grid north to true north > > Gary, > > what do you mean by 

RE: [gdal-dev] Projection for OSGB36

2010-01-28 Thread Smart, Gary
> -Original Message- > From: fwarmer...@gmail.com [mailto:fwarmer...@gmail.com] On Behalf Of > Frank Warmerdam > Sent: 28 January 2010 02:36 > To: Smart, Gary > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Projection for OSGB36 > > On Wed, Jan 27, 2

RE: [gdal-dev] Projection for OSGB36

2010-01-27 Thread Smart, Gary
l-dev-boun...@lists.osgeo.org] On Behalf Of Smart, Gary Sent: 27 January 2010 11:21 To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Projection for OSGB36 I have a series of OS map TIF files with associated tfw files. However, the tif files contain no information about the projection. I understand that these

[gdal-dev] Re-aligning maps from grid north to true north

2010-01-27 Thread Smart, Gary
We have tif maps which are OSGB grid aligned, but we need them aligned to true-north. I presume this could be achieved by gdalwarp. Can anyone give me a clue how to do this? Am I right in thinking that simply setting the correct s_srs and t_srs would achieve everything I need? If so - what part

[gdal-dev] Projection for OSGB36

2010-01-27 Thread Smart, Gary
I have a series of OS map TIF files with associated tfw files. However, the tif files contain no information about the projection. I understand that these files are using OSGB36 AIRY1830 Can anyone tell me the precise text specification I need to be able to set up this projection. An ex

FW: RE: [gdal-dev] No PROJ.4 translation for source SRS

2010-01-21 Thread Smart, Gary
OK - this has been sorted. A simple misused pointer. Thanks to all contributors. > -Original Message- > From: Frank Warmerdam [mailto:warmer...@pobox.com] > Sent: 19 January 2010 15:31 > To: Smart, Gary > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [g

[gdal-dev] No PROJ.4 translation for source SRS

2010-01-19 Thread Smart, Gary
I still can't get to the bottom of this message - can anyone explain it... ERROR 1: No PROJ.4 translation for source SRS, coordinate transformation initialization has failed. I'm trying to convert the native coordinates in a file into WGS84 lat/longs. However, when I create the OGRCoord

RE: [gdal-dev] geoTransforms and OGRSpatialTransforms

2010-01-11 Thread Smart, Gary
Gary From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Smart, Gary Sent: 07 January 2010 18:25 To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] geoTransforms and OGRSpatialTransforms // First create a spatial reference in the input

[gdal-dev] geoTransforms and OGRSpatialTransforms

2010-01-07 Thread Smart, Gary
1) Can anyone tell me why the following program returns a GetProjectionRef as 'empty string' (not NULL) from some files and not others (even though openEv seems to be able to open them and georeference them all fine?) I am looking at geotiffs from the MapServer tutorial directory. 2)

RE: [gdal-dev] Converting to J2K

2009-08-19 Thread Smart, Gary
stuff also. I installed everything from the FWTools package. I don't suppose anyone knows a reliable installation source for GDAL on SUSE10? From: Greg Coats [mailto:gregco...@mac.com] Sent: 18 August 2009 17:36 To: Smart, Gary Cc: gdal-dev@lists.osgeo.org Su

RE: [gdal-dev] Converting to J2K

2009-08-18 Thread Smart, Gary
:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Greg Coats Sent: 18 August 2009 15:44 To: Smart, Gary Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Converting to J2K $ gdal_translate --version GDAL 1.6.2, released 2009/07/31 $ gdal_translate -of JPEG2000 18stj940125.tif 18stj940125.jp2

[gdal-dev] Converting to J2K

2009-08-18 Thread Smart, Gary
Can someone quickly tell me how to convert a ntf file into J2K format? I am trying 'gdal_translate -of JPEG2000 thingy.ntf thingy.j2k' but GDAL complains that it doesn't understand the format thingy.j2k I think its getting the arguments confused. What am I doing wrong? Gary __

[gdal-dev] Converting coordinates (easting/Northing to WGS84 Lat/Long)

2009-08-04 Thread Smart, Gary
(&tmp); // Create a spatial reference in WGS88 lat/long space and // create a transform object betseen input and output space OGRSpatialReference oref; oref.SetWellKnownGeogCS("WGS84"); OGRCoordinateTransformation *coord_transform = OGRCreateCoordinateTransfo

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

2009-07-21 Thread Smart, Gary
files I used, and the response they give, are included in the attachment as comments. Gary From: Martin Chapman [mailto:chapm...@pixia.com] Sent: 20 July 2009 22:46 To: Smart, Gary Subject: RE: [gdal-dev] Converting raster pixel space to geospace Gary,

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

2009-07-21 Thread Smart, Gary
GL or something)? Gary > -Original Message- > From: Even Rouault [mailto:even.roua...@mines-paris.org] > Sent: 20 July 2009 22:03 > To: gdal-dev@lists.osgeo.org > Cc: Smart, Gary > Subject: Re: [gdal-dev] How do I open vector files (e.g. shp) using GDAL > > Le M

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

2009-07-20 Thread Smart, Gary
I understand that GDAL can open vector formats as if they were a dataset? E.g. I read that it is possible to pass the GDALOpen either a single .shp file (in which case it treats it as if it only had one layer) or a directory containing multiple .shp files - which presumably it opens as multi la

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

2009-07-20 Thread Smart, Gary
ata' directory 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 2

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

2009-07-20 Thread Smart, Gary
R["central_meridian",-124.5],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]] ...and I am looking to output WGS84 lat/longs. > -Orig

RE: [gdal-dev] MapServer interface

2009-07-16 Thread Smart, Gary
MapServer! From: Craig Miller [mailto:craig.mil...@spatialminds.com] Sent: 15 July 2009 21:20 To: Smart, Gary Subject: RE: [gdal-dev] MapServer interface Would it work for you to setup MapServer as a WMS, then use the GDAL WMS driver? From: gda

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

2009-07-16 Thread Smart, Gary
> -Original Message- > From: Even Rouault [mailto:even.roua...@mines-paris.org] > Sent: 15 July 2009 21:14 > To: Smart, Gary > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Converting raster pixel space to geospace > > Le Wednesday 15 July 2009 20:50:1

[gdal-dev] MapServer interface

2009-07-15 Thread Smart, Gary
Still a newbee to this so forgive any daft questions. In an answer to a previous question of mine, it was hinted (thank you Even) that I could possibly MapServer to return tiles of rasterised maps for display using my display application. From my initial studies, MapServer seems to be aimed a

[gdal-dev] Converting raster pixel space to geospace

2009-07-14 Thread Smart, Gary
OK - having messed with GDAL for a couple of days now, I can display imagery using the GDAL c++ classes to extract raster tiles. However, I now need to be able to convert xPixel/Line couplets to geo-positions (UTM, LL or whatever). I have scanned the classes and have failed to come across a me

[gdal-dev] Newbee - pointers needed

2009-07-08 Thread Smart, Gary
OK - I have been coding c++ raster image display systems on Linux for years now and long ago developed our own raster map display system based on CADRG/ASRP files. Our system effectively maps a huge raster image space around the world and stitches together tiles from raster map files as the use