Re: [gdal-dev] assigning vertical datum to image files

2015-06-08 Thread Hermann Peifer
About your initial problem: > but gdalbuildvrt complained, informing me that > they were not in the same projection. What about using the below gdalbuildvrt option? Hermann -allow_projection_difference: (starting with GDAL 1.7.0) When this option is specified, the utility will accept to make

Re: [gdal-dev] Ascii Grid and Shapefile

2015-06-08 Thread David Fawcett
Edgar, GDAL can read (and write) ArcInfo ASCII grids. You can find more info here: http://www.gdal.org/frmt_various.html#AAIGrid The case that you are describing is not a great fit for GDAL alone. If you want to overlay your grid and other vector datasets in a desktop application, you might wa

[gdal-dev] Ascii Grid and Shapefile

2015-06-08 Thread Ronquillo, Edgar Nahum
Hello, I already asked a similar question but I will be more exact on what I am looking for. Is it possible with Gdal to read ascii grid file (.asc)? If yes, I would like to read this ascii grid file and produce and display a map out this. Moreover, after having this map I would like to put a sh

Re: [gdal-dev] ImportError: numpy.core.multiarray failed to import

2015-06-08 Thread Luke Pinner
On 8 Jun 2015 11:11 pm, "Ronquillo, Edgar Nahum" wrote: > > I just noticed I have numpy 1.6. However, I installed the binaries and bindings from Tamas' GIS internals site. Would I need numpy 1.7 or higher in this case? If you're running 32bit python, yes, get numpy 1.7.2 from the numpy sourcefo

[gdal-dev] assigning vertical datum to image files

2015-06-08 Thread Newcomb, Doug
Hi Folks, I have a directory of 783 .img format Lidar - based DEMs in the same projection, North Carolina State Plane Feet (2011) , NAD 83 , NVD88. I was going to use gdalbuildvrt to create a single virtual image for the area, but gdalbuildvrt complained, informing me that they were not in the s

Re: [gdal-dev] Querying Geographic Coordinate System from an existing image file.

2015-06-08 Thread Kyle Shannon
Jim, On Mon, Jun 8, 2015 at 10:11 AM, Tilton, James C. (GSFC-6063) wrote: > I seem to be missing some key point in understanding the use of OGR > Projections. > > > > The OGR Projections Tutorial (www.gdal.org/osr_tutorial.html) very clearly > describes how to set up a new OGRSpatialReference, >

[gdal-dev] Querying Geographic Coordinate System from an existing image file.

2015-06-08 Thread Tilton, James C. (GSFC-6063)
I seem to be missing some key point in understanding the use of OGR Projections. The OGR Projections Tutorial (www.gdal.org/osr_tutorial.html) very clearly describes how to set up a new OGRSpatialReference, but does not tell how to determine and query the O

Re: [gdal-dev] Is it possible?

2015-06-08 Thread Ivan Lucena
Check gdal_rasterize [http://www.gdal.org/gdal_rasterize.html]. > From: david.m.ba...@chk.com > To: p.ha...@york.ac.uk; eronqui...@lanl.gov; gdal-dev@lists.osgeo.org > Date: Mon, 8 Jun 2015 14:59:45 + > Subject: Re: [gdal-dev] Is it possible? > > Peter, > > I can think of a few reasons, on

Re: [gdal-dev] Is it possible?

2015-06-08 Thread David Baker (Geoscience)
Peter, I can think of a few reasons, one for example, I have a geologic map that has only USGS quads for position reference. I also have a shapefile that has county outlines and another that has the PLSS land survey townships and section lines. I need a GeoTiff because one of the applications

Re: [gdal-dev] Writing/reading a tiff with 8 bands

2015-06-08 Thread Even Rouault
Selon Andrea Peri : > Hi, > I need to pass from some tiff (landsat LC8) all with 1 only band, to > one tiff with 8th bands. > > Is this possible with gdal ? Sure. One possibility is to create a VRT file assembling the 8 bands. For example with gdalbuildvrt with the -separate option. And then use

[gdal-dev] Writing/reading a tiff with 8 bands

2015-06-08 Thread Andrea Peri
Hi, I need to pass from some tiff (landsat LC8) all with 1 only band, to one tiff with 8th bands. Is this possible with gdal ? AFAIK the TIFF allow to hos a image with 8 bands, but I'm not sure that gdal is capable to wite/red this kind of image. Thx, -- - Andrea Peri . . . . .

Re: [gdal-dev] Is it possible?

2015-06-08 Thread Peter Halls
Why would you want to map a Shapefile into a Geotiff file? They are two fundamentally different types of spatial object. Shapefiles are exclusively vector in nature, whilst Geotiffs are exclusively raster. I suggest reading a text, such as Burrough and McDonnell, Principles of Geographical Inform

[gdal-dev] Is it possible?

2015-06-08 Thread Ronquillo, Edgar Nahum
Hello Gdal users, I have a question. I have been working here for quite a while on how to map a shapefile into a GeoTiff image. First of all, is this possible with Gdal? Right now I am able to map a shapefile using Basemap, which it isn't Gdal of course. However, I would like to map this same sh

Re: [gdal-dev] shape_encoding and Windows

2015-06-08 Thread Even Rouault
Martin, > it's seems to me that SHAPE_ENCODING doesn't work on Windows [1]. There's no [1] link in your email > I > wonder how to set up encoding when reading Shapefiles on Windows, > ENCODING options is new in GDAL 2.0? As an open option, yes. But with previous versions (and still with 2.0), y

Re: [gdal-dev] GDAL/OGR C API, how should I be dealing with 'handles'

2015-06-08 Thread Mateusz Loskot
On 8 June 2015 at 13:07, jramm wrote: > Many C API functions return a typedef which is referred to as a handle. E.g. > > > OGRFeatureH OGRLayerH OGRGeometryH > These seem to occur when the C++ api returns a pointer. I have 3 questions: > > Why doesnt the C API return pointers? H suffix denotes a

[gdal-dev] GDAL/OGR C API, how should I be dealing with 'handles'

2015-06-08 Thread jramm
Many C API functions return a typedef which is referred to as a handle. E.g. OGRFeatureHOGRLayerHOGRGeometryH These seem to occur when the C++ api returns a pointer.I have 3 questions: Why doesnt the C API return pointers? How should I pass these 'handles' around. Should I create pointers to them

[gdal-dev] shape_encoding and Windows

2015-06-08 Thread Martin Landa
Hi, it's seems to me that SHAPE_ENCODING doesn't work on Windows [1]. I wonder how to set up encoding when reading Shapefiles on Windows, ENCODING options is new in GDAL 2.0? Thanks, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___

Re: [gdal-dev] Validating a projection

2015-06-08 Thread Even Rouault
Selon Andre Joost : > Am 08.06.2015 um 01:38 schrieb Doug McCorkle: > > > >> > > > > Andre, > > > > I have updated the projection information with the recommended names. > > When I process GeoTIFF files with this projection everything works > > fine while all of the data is in memory and none of t