[gdal-dev] Question about compiling C++ gdal utility

2008-08-12 Thread Roger André
I'm trying to compile a gdal utility written in C++ (which is something completely new to me), and am encountering an error. color-relief.cpp:30:23: gdal_priv.h: No such file or directory color-relief.cpp:31:23: stringtok.h: No such file or directory The gdal_priv.h file is located in

Re: [gdal-dev] HowTo open NetCDF SUBDATASET and write to new file

2008-09-17 Thread Roger André
Hi Steve, Thanks very much for the code snippet. I figured out the following via experimentation. - Open specific layer by using: layer = gdal.Open('netCDF:annual_mean.nc:temp') - Then get at the layer data data using the following: netcdf_band = layer.GetRasterBand(1) - Read in the data one

Re: [gdal-dev] gdalwarp interpolation artifacts

2008-09-30 Thread Roger André
of the original bug.) ~Seth On Sep 29, 2008, at 11:19 PM, Frank Warmerdam wrote: On Tue, Sep 30, 2008 at 4:30 AM, Roger André [EMAIL PROTECTED] wrote: Hi List, I've hit the same problem twice now, and I'm pretty certain after Round 2 that I'm not introducing it. Basically, I'm using

Re: [gdal-dev] creating an epsg code that can be used within the epsg file for fwtools and MapServer

2008-10-06 Thread Roger André
Hi John, No guarantees that I got this right, but you could try adding the following entry to your FWTools/share/proj/epsg file: # Guatemala Transverse Mercator 001234 +proj=tmerc +x_0=50.00 +y_0=0 +lon_0=-90.5 +lat_0=0 +k=0.999800 +ellps=WGS84 +datum=WGS84 +to_meter=0.3048006096012192

[gdal-dev] nodata value assigned via script

2008-10-17 Thread Roger André
Hi, I'm getting raster data written by different people who can't seem to use the same nodata values. I'm reading the data files via the Python API to GDAL, and doing various calculations on the data values, then writing new rasters with the results of my calculations. Is there a nodata value

[gdal-dev] Problem reprojecting from EPSG:4326 to EPSG:900913

2008-10-20 Thread Roger André
Hi Everyone, I'm having some issues when reprojecting data via a WMS request to MapServer. While I realize this only touches on the gdal side of things slightly (I'm using the gdal driver and FWTools version 2.0.6 in Linux), I'm hoping the problem is one that someone on this list may have

[gdal-dev] Going between gdal nodata and GMT NaN

2008-10-22 Thread Roger André
Sooo... apparently nodata values are not converted to NaN when doing something like a gdal_translate from GeoTiff to GMT format. Is there a way that anyone knows to do this? Thanks, Roger -- ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] Re: Going between gdal nodata and GMT NaN

2008-10-24 Thread Roger André
Hmm, let me ask this a different way. Does the GMT driver implemented in gmtdataset.cpp support the creation of Nan values when writing to an output dataset? Thanks, Roger -- On Wed, Oct 22, 2008 at 4:38 PM, Roger André [EMAIL PROTECTED] wrote: Sooo... apparently nodata values

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-11 Thread Roger André
-- On Tue, Nov 11, 2008 at 2:08 AM, Markus Neteler [EMAIL PROTECTED] wrote: On Mon, Nov 10, 2008 at 10:43 PM, Roger André [EMAIL PROTECTED] wrote: Andrew, I believe your syntax is incorrect. Assuming that you are trying to exclude water from your image, it should be something like

[gdal-dev] Can I change SOURCE_EXTRA setting at compile time?

2008-11-18 Thread Roger André
I've been mercilessly beating a dead horse on a couple of lists about some weird artifacts that I'm getting when doing reprojections in Mapserver from epsg:4326 to epsg:900913. It's recently come to my attention that something was discussed in an IRC chat that might be pertinent to this issue,

Re: [gdal-dev] Can I change SOURCE_EXTRA setting at compile time?

2008-11-18 Thread Roger André
seem to make a difference. Thanks for the info though. Roger -- On Tue, Nov 18, 2008 at 5:07 PM, Frank Warmerdam [EMAIL PROTECTED]wrote: Roger André wrote: I've been mercilessly beating a dead horse on a couple of lists about some weird artifacts that I'm getting when doing reprojections

Re: [gdal-dev] Can I change SOURCE_EXTRA setting at compile time?

2008-11-18 Thread Roger André
: Roger André wrote: Hi Frank, I've theorized all sorts of reasons for what I'm seeing. So far none of them are right. Basically, if I take a really high-res epsg:4326 image, and serve it up through Mapserver in epsg:900913, there are instances where I get images back which are missing rows

[gdal-dev] Re: gdal segmentation fault when reading NetCDF grid files

2008-11-24 Thread Roger André
libhdf5-serial-dev 2. Doing a sudo make clean in my /usr/local/gdal dir 3. Doing a new configure with --with-hdf4=no --with-hdf5=no, then running make. Seems to work now, Thanks. -- On Mon, Nov 24, 2008 at 10:07 AM, Roger André [EMAIL PROTECTED] wrote: Hi everyone, I'm having some problems

[gdal-dev] Working between GeoTIFF's and Arc/Info ASCII Grid formats with NAN values

2008-12-09 Thread Roger André
Hi All, Just had an email from a client complaining about the nan values that I included in some Arc/Info ASCII Grid files that I sent them. The files were created by converting GeoTIFF's into ASCII Grid format via gdal_translate. I personally like that the nan's were carried through, but I

Re: [gdal-dev] Working between GeoTIFF's and Arc/Info ASCII Grid formats with NAN values

2008-12-09 Thread Roger André
ROTFL You could also potentially do it with by ascii search and replace in the resulting grid file You are SO right! I had totally forgotten that this was ASCII output. Doh! Thanks Frank. -- On Tue, Dec 9, 2008 at 5:24 PM, Frank Warmerdam [EMAIL PROTECTED] wrote: Roger André wrote: Hi

[gdal-dev] gdal2tiles.py and dateline gap

2009-01-06 Thread Roger André
I've gotten the map tile output from gdal2tiles.py to work properly with Tilecache and the results look pretty good. However, I'm seeing a fairly large gap in data at the international dateline. I recall seeing some discussion about this between Frank and Klokan on the list previously, and

Re: [gdal-dev] gdal_translate input separate R,G,B output combined RGB

2009-01-16 Thread Roger André
Hi Greg, I don't know of a gdal_translate command for this, but you can use the gdal_merge.py tool to do this. gdal_merge.py - o outfile -separate gtif_R.tif gtif_G.tif gtif_B.tif Roger -- 2009/1/9 Greg Coats gregco...@mac.com I have 3 single band GeoTIF images of the same geographic area:

[gdal-dev] Trying to clean up multiple GDAL installs

2009-02-07 Thread Roger André
Ok, I admit it. I was lured by the promise of what I didn't already have. I had a perfectly functional gdal install from source on my Ubuntu box. Then I went and installed Qgis using apt-get, which brought in a gdal package as well, and started to get errors like the one below. ogrinfo: symbol

[gdal-dev] NetCDF data upside down when read by gdal

2009-02-18 Thread Roger André
Hi All, - I am attempting to use a NetCDF file as a data source for a raster layer in Mapserver. According to a very useful email sent in November 2005 from Norman Barker, http://lists.osgeo.org/pipermail/mapserver-users/2005-November/012153.html, and from Mapserver documentation at

Re: [gdal-dev] NetCDF data upside down when read by gdal

2009-02-20 Thread Roger André
, Shawn -- *From:* gdal-dev-boun...@lists.osgeo.org [mailto: gdal-dev-boun...@lists.osgeo.org] *On Behalf Of *Roger André *Sent:* Wednesday, February 18, 2009 3:45 PM *To:* gdal-dev *Subject:* [gdal-dev] NetCDF data upside down when read by gdal Hi All

[gdal-dev] gdal, netCDF and projection

2009-03-16 Thread Roger André
Hi all, Just a couple quick netCDF related questions: 1) Is there any way to include projection information in a netCDF file so that gdal can properly read it? It appears that georeferencing is handled correctly, but not projection info. This causes problems with the whole north/south origin

Re: [gdal-dev] gdal, netCDF and projection

2009-03-16 Thread Roger André
WCS system up at work that uses tiled netCDF's with time series data, so I think I've hit most of the remaining issues along the way. Roger -- On Mon, Mar 16, 2009 at 9:51 AM, Frank Warmerdam warmer...@pobox.com wrote: Roger André wrote: Hi all, Just a couple quick netCDF related questions

[gdal-dev] Re: gdal2tiles dateline gap

2009-03-16 Thread Roger André
Hi Jeff, Adding list, just in case there is additional input on this. Yes, but the solution I found may not be applicable to your use-case. I needed to create Google Map tiles in spherical mercator projection, not Google Earth KML, so I was able to use TileCache with MapServer to generate them.

[gdal-dev] gdaltindex and netCDF files

2009-03-19 Thread Roger André
Hi All, Is it possible to use gdaltindex to create a shapefile index of a group of netCDF files? Specifivally, I need to index a specific netCDF variable that exists in all of the files. I just tried running it on a single file, using the variable selection syntax that seems to work with the

[gdal-dev] MapServer using GDAL_WMS to access TileCache layer

2009-03-23 Thread Roger André
Hi All, I've created a TileCache layer that's being used to overlay tiles in a Google Maps page. That's working just fine, but I would also like to access this layer via a MapServer WMS call as well. I have tried to setup a GDAL_WMS file that can read the TileCache layer, but am getting

Re: [gdal-dev] MapServer using GDAL_WMS to access TileCache layer

2009-03-23 Thread Roger André
, and not {X}). Best regards, Even Le Monday 23 March 2009 21:18:16 Roger André, vous avez écrit : Hi All, I've created a TileCache layer that's being used to overlay tiles in a Google Maps page.  That's working just fine, but I would also like to access this layer via a MapServer WMS call

[gdal-dev] GDAL TMS minidriver

2009-03-26 Thread Roger André
Hi All, I'm trying to use the TMS minidriver to read a TileCache instance and am getting an error that says, GDALWMS: No mini-driver registered for 'TMS'. I'm trying to follow the instructions on http://www.gdal.org/frmt_wms.html, but am a bit confused. At the top of the page it says there are 3

Re: [gdal-dev] GDAL TMS minidriver

2009-03-26 Thread Roger André
://trac.osgeo.org/gdal/ticket/2878 http://crschmidt.net/blog/376/toronto-code-sprint-day-2/ If you find a bug in the online documentation feel free to patch it ;-). Best reagards, Klokan 2009/3/26 Roger André ran...@gmail.com: Hi All, I'm trying to use the TMS minidriver to read a TileCache instance

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-09 Thread Roger André
gdal_translate or ENVI (I doubt though) or both. Thanks. Mo --- On Thu, 4/9/09, Roger André ran...@gmail.com wrote: From: Roger André ran...@gmail.com Subject: Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate To: mohwawang

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-09 Thread Roger André
-70.8894939447889 42.8082925732318 -gcp 0 419 -70.8894939447889 42.8093748999134 I don't have a .ntif file that was not created by gdal to test GE via the Import Image Tool. Thanks. Mo --- On Thu, 4/9/09, Roger André ran...@gmail.com wrote: From: Roger André ran...@gmail.com Subject: Re

Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-10 Thread Roger André
Here's another way you can do it, a Python script that will create discreet color classes from a grayscale image. It uses a function named MakeColor which is currently set to work on Z values between 0 and 255. You can test it by converting your file into an 8-bit version (gdal_translate -scale

Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-12 Thread Roger André
Sorry about that. It has to do with the little progress indicator that runs when gdal processes a file. There are different ways of invoking it, and my mileage varies with each of them. I think it is based on what version of gdal you're using. Anyhow, 2 ways you can deal with this. I think

[gdal-dev] Recommendation for what vector format to use?

2009-04-15 Thread Roger André
Hi All, I'm about to implement a new workflow that uses gdal_rasterize and it dawned on me that A) I wasn't limited to using shapefiles, and B) that it would be a heck of alot more convenient to use a binary data format that stored all the information in a single file. Is there such a thing? Do

Re: [gdal-dev] need suggestion on Linux OS

2009-04-22 Thread Roger André
I have been running a fairly complete open source GIS stack on a couple of Ubuntu 8.04 machines for about 6 months. I have had no problems getting anything installed from source on them, and use the supporting libs that are available via apt-get almost exclusively. If anyone wants to see the

[gdal-dev] SRTM data and Pixel is area vs. Pixel is point

2009-04-24 Thread Roger André
Morning, I have a bit of a conundrum which I'm trying to find an answer for, and which is prompting a certain amount of contentious debate at work. I've downloaded a 1-deg x 1-deg SRTM tile from the GLCF site, SRTM_f03_n007e000.tif.  Now from its name, this tile should have its origin at N 7, E

Re: [gdal-dev] SRTM data and Pixel is area vs. Pixel is point

2009-04-24 Thread Roger André
-- On Fri, Apr 24, 2009 at 9:59 AM, Frank Warmerdam warmer...@pobox.com wrote: Roger André wrote: Morning, I have a bit of a conundrum which I'm trying to find an answer for, and which is prompting a certain amount of contentious debate at work.  I've downloaded a 1-deg x 1-deg SRTM tile from

Re: [gdal-dev] Help with first GDAL program

2009-04-27 Thread Roger André
Hi Leith, This should help get you started. Roger -- On Sun, Apr 26, 2009 at 11:25 PM, Leith Bade le...@leithalweapon.geek.nzwrote: Hi, I am new to GDAL and would like some guidance on a simple task that I am writing a Python script for. Given a set of GeoTIFFs I would like to find the

Re: [gdal-dev] free raster elevation model download

2009-05-07 Thread Roger André
http://srtm.csi.cgiar.org/ -- On Wed, May 6, 2009 at 4:30 PM, Matt Klaric m...@klaric.com wrote: On Wed, May 6, 2009 at 4:22 PM, mohwawang mohwaw...@yahoo.com wrote: Is there a website that provides free download for raster elevation model (DEM) that can be used by the gdal utility

Re: [gdal-dev] FOSS4G 2009 Registration Opens

2009-05-11 Thread Roger André
Just out of curiosity, how is the location of FOSS4G determined? Thanks, Roger -- On Fri, May 8, 2009 at 6:22 AM, Frank Warmerdam warmer...@pobox.com wrote: Folks, FOSS4G is always the premier open source geospatial event of the year, and an important venue for MapServer and a variety of

Re: [gdal-dev] FOSS4G 2009 Registration Opens

2009-05-11 Thread Roger André
Hi Jeff, I have no other questions, and thanks for explaining how the selection process works. Roger -- On Mon, May 11, 2009 at 11:13 AM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: Roger André wrote: Just out of curiosity, how is the location of FOSS4G determined

Re: [gdal-dev] Relax KML driver about xmlns

2009-05-19 Thread Roger André
Are you doing any version-dependent actions, or just checking for one of three versions? If not, then yes, I'd say take the namespace requirement out. Roger -- On Tue, May 19, 2009 at 4:30 PM, Mateusz Loskot mate...@loskot.net wrote: Hi, Would it make sense to relax a bit the KML driver

Re: [gdal-dev] gdalwarp and Molleweide projections

2009-07-08 Thread Roger André
Hi Matthew, It would be useful to see what your source image looks like. I have an image that covers essentially global extents, and which is in EPSG:4326. I did a reprojection using gdalwarp in GDAL 1.6.1: $ gdalwarp -s_srs EPSG:4326 -t_srs +proj=moll +lon_0=0 infile outfile The results that

Re: [gdal-dev] python gdal installation issues

2009-07-08 Thread Roger André
try adding the path to libgdal.so.1 in /etc/ld.so.conf $ find /usr -name libgdal.so.1 /usr/local/lib/libgdal.so.1 $ sudo vi /etc/ld.so.conf -- add /usr/local/lib $ ldconfig $ /sbin/ldconfig -p | grep gdal libgdal.so.1 (libc6) = /usr/local/lib/libgdal.so.1 libgdal.so (libc6) =

[gdal-dev] Writing georeferencing and projection info to NetCDF with Python Scientific.IO.NetCDF

2009-07-08 Thread Roger André
Hi all, After a considerable delay due to work on other projects, I would like to get back to exploring the capability of the GDAL netCDF driver. To that end, I am trying to create some netCDF files in which I can control variable names, number of dimensions etc. I have been exploring the

[gdal-dev] Status of TMS minidriver in gdal_wms

2009-08-19 Thread Roger André
Hi All, I'd like to use GDAL to access tiles that have been generated by TileCache. It appears this should be possible in GDAL 1.7 via the TMS service. I *think* the example at http://www.gdal.org/frmt_wms_openstreetmap_tms.xmlshows this. I'd appreciate it if someone could clarify whether my

[gdal-dev] Re: Status of TMS minidriver in gdal_wms

2009-08-19 Thread Roger André
to make the requests work. Thanks, Roger -- On Wed, Aug 19, 2009 at 3:18 PM, Roger André ran...@gmail.com wrote: Hi All, I'd like to use GDAL to access tiles that have been generated by TileCache. It appears this should be possible in GDAL 1.7 via the TMS service. I *think* the example

Re: [gdal-dev] Shortening execution time of Python script

2009-09-18 Thread Roger André
So the problem is that ArcGIS Server is expecting the data to be ready (unzipped), but due to the large size of the data set, the unzip has not finished? Roger -- On Wed, Sep 9, 2009 at 3:54 AM, David Shi davidg...@yahoo.co.uk wrote: I have a Python script that automatically downloads zip

Re: [gdal-dev] Re: gdal_rasterize with a NetCDF file?

2009-09-23 Thread Roger André
Hey Scott, You could extract that layer from the netCDF, burn it with gdal_rasterize as a geotiff, convert the geoTiff into a GMT grid, and then possibly add that back into the netCDF (somehow). Sounds like a pain though. Roger -- On Mon, Sep 21, 2009 at 11:49 AM, Scott Lewis

Re: [gdal-dev] Python bindings

2009-10-17 Thread Roger André
Had a similar problem in the past that I resolved like this: $ gdalinfo --formats gdalinfo: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory -- Is the lib acessible outside of gdal? $ /sbin/ldconfig -p | grep gdal --nuffin... Let's

Re: [gdal-dev] open source tool

2009-10-21 Thread Roger André
This could be done with GRASS, I think. First extract the LAS file into an ASCII x,y,z file. Then load into GRASS with r.in.xyz. Then use one of the v.delaunay or v.voronoi GRASS modules. Roger -- 2009/8/27 Riki Tiki mongoose_r...@mail.ru: hi, do you know any tools available for the

[gdal-dev] Setting nodata tag with Python API

2009-12-31 Thread Roger André
Hi All, I'm using the Python API to build some GeoTIFFs and would like to set the nodata value to - at creation time. How do I do that? Below is a sample of my code def makeRaster(self): out_drv = gdal.GetDriverByName('GTiff') out_ds = out_drv.Create(self.raster_name, 4320, 2160

Re: [gdal-dev] trying to change regionator image resampling to nearest-neighbor

2009-12-31 Thread Roger André
Hi Mary Jo, Sounds like you have started down a slightly different path to resolve this by using gdal2tiles.py, but I'm still a bit curious about the results you were seeing with the regionator. Would you mind sending me a couple screenshots that show the before and after images, with haloing?

[gdal-dev] Can GDAL open binary buffer contents as input for MEM format?

2010-01-16 Thread Roger André
Hi All, I'd like to know if I can take the results of a MapServer Python mapscript 'mapImage.getBytes()' operation, and feed it into GDAL as a data source for an in-memory raster? The MapServer docs state that the results of 'getBytes' in Python is a string of binary data. I'm not sure if GDAL

Re: [gdal-dev] error about gdal shared libraries from within GRASS

2010-01-16 Thread Roger André
Hi Isaac, I see that you've updated LD_LIBRARY_PATH already, but perhaps you could try adding the lib location to ls.so.conf as well. See below for how I dealt with similar error in the past. -- $ gdalinfo --formats gdalinfo: error while loading shared libraries: libgdal.so.1:

Re: [gdal-dev] Can GDAL open binary buffer contents as input for MEM format?

2010-01-16 Thread Roger André
16, 2010 at 1:26 PM, Frank Warmerdam warmer...@pobox.comwrote: Roger André wrote: Hi All, I'd like to know if I can take the results of a MapServer Python mapscript 'mapImage.getBytes()' operation, and feed it into GDAL as a data source for an in-memory raster? The MapServer docs state

Re: [gdal-dev] Can GDAL open binary buffer contents as input for MEM format?

2010-01-16 Thread Roger André
the string and determine what data type it is. One last question. How does a utility like gdal_translate figure out what the input data type is? Thanks again, Roger -- On Sat, Jan 16, 2010 at 2:34 PM, Frank Warmerdam warmer...@pobox.comwrote: Roger André wrote: Hi Frank, Thanks

[gdal-dev] Using RasterIO in Python to crop images

2010-01-18 Thread Roger André
Hi all, I'd like to do some cropping based on pixel coordinates in a script I'm writing. I'm familiar with using the srcwin option to gdal_translate, but have not done this using the API before. Reading the API docs and some of the previous postings to this list, it appears that the RasterIO

[gdal-dev] How to calculate total change in headings?

2010-02-10 Thread Roger André
Hi all, Not a GDAL question at all, but one which might amuse some of you, and which has been unsolveable in a satisfactory fashion for me. Given a list of compass headings in degrees, how can you reliably calculate the total change in direction? Here's an example: [355.5, 10.0, 5.1] This

Re: [gdal-dev] Raster data extraction

2010-04-22 Thread Roger André
Hi Brent, You can write a program that takes in the coordinates of your sample points as input, and then reads the pixel values in each band of the image at that location. Not sure if that's what you're looking for, but it works. Roger -- On Mon, Apr 19, 2010 at 2:36 PM, pcr...@pcreso.com

Re: [gdal-dev] SRTM/hgt to TIFF with alpha

2010-04-27 Thread Roger André
Hi David, Can you clip out a small section of your DEM that contains both ocean and land and send it to me? Your question sounds interesting, and I'd like to take a look at the data before I comment on it. Thanks, Roger -- On Wed, Apr 7, 2010 at 9:08 PM, David dbainbri...@gmail.com wrote:

Re: [gdal-dev] create a png file

2010-04-27 Thread Roger André
Have you looked at http://www.gdal.org/gdal_tutorial.html? Attached is a Python code snippet that shows how to assign values to pixels in an image. To do what you're asking, you need to create the output raster, and then write out the values in your array into the correct pixel position. I

Re: [gdal-dev] NetCDF geotransform - pixel centre/upper-left issue

2010-04-27 Thread Roger André
From my experience working with NetCDF files in GDAL, your best option is to write your own tools to work between NetCDF and other raster formats. Specifically, I would use the API to read the NetCDF, and explicitly define the georeferencing of your output file using whatever logic you know to be

Re: [gdal-dev] Getting an WMS without XML file.

2010-04-27 Thread Roger André
Doe this not work for you? $ python from osgeo import gdal image = gdal.Open('

Re: [gdal-dev] read envisat with gdal

2010-04-27 Thread Roger André
Can you make a small portion of your data available to us? If GDAL can read the data file, then it should be able to read this information as well. Roger -- On Fri, Apr 2, 2010 at 5:44 PM, menglong yan yanmengl...@gmail.com wrote: Hi, I want to read envisat with gdal, and I can read the data

Re: [gdal-dev] read envisat with gdal

2010-04-27 Thread Roger André
08:14:40.282674', snip} metadata = image.GetMetadata() metadata['SPH_FIRST_MID_LAT'] '+0058766642' image.GetMetadataItem('SPH_FIRST_MID_LAT') '+0058766642' Can you run gdalinfo on your file and post the output? Thanks, Roger -- On Tue, Apr 27, 2010 at 9:48 AM, Roger André ran...@gmail.com

[gdal-dev] Can VRT be used to control display order of images in mosaic?

2010-06-22 Thread Roger André
Hi All, I'd like to control the order in which overlapping images are displayed in a mosaic. Is it possible to do that by using a VRT, and altering the order in which the files are defined in it? The online doc for gdalbuildvrt states, If there is some amount of spatial overlapping between

Re: [gdal-dev] Can VRT be used to control display order of images in mosaic?

2010-06-22 Thread Roger André
images are overlapped in response to the BBOX extents specified in a WMS request. Roger -- On Tue, Jun 22, 2010 at 8:16 AM, Frank Warmerdam warmer...@pobox.comwrote: Roger André wrote: Hi All, I'd like to control the order in which overlapping images are displayed in a mosaic

[gdal-dev] Changing precision of coordinates in Python OGR API

2011-08-16 Thread Roger André
Hi All, I have an assignment that requires me to truncate the precision of all my polygon coordinates to 6 decimal places. Is there an easy way to do this while I have the feature opened with OGR and can access its ogr.Geometry directly? If not, can someone recommend a good way to iterate

Re: [gdal-dev] Changing precision of coordinates in Python OGR API

2011-08-16 Thread Roger André
://lists.osgeo.org/pipermail/gdal-dev/2011-April/028306.html On Wed, Aug 17, 2011 at 5:21 AM, Roger André ran...@gmail.com wrote: Hi All, I have an assignment that requires me to truncate the precision of all my polygon coordinates to 6 decimal places. Is there an easy way to do this while I

Re: [gdal-dev] Changing precision of coordinates in Python OGR API

2011-08-17 Thread Roger André
() was: 151.85768502434 -32.613605699642989,151.857672992 -32.613692002142983)) now: 151.8577 -32.6136,151.8577 -32.6137)) Roger --- On Tue, Aug 16, 2011 at 10:53 PM, Roger André ran...@gmail.com wrote: Thanks Chaitanya, I like the look of that second option. If I understand correctly what Even says, I should

Re: [gdal-dev] KMLSuperOverlay in Google Earth 6.1.0.5001

2011-11-17 Thread Roger André
What is the output of gdalinfo on one of the PNG's in the superoverlay? On Thu, Nov 17, 2011 at 1:36 PM, Roland Duhaime roland.duha...@gmail.comwrote: Has anyone else experienced the latest version of Google Earth (6.1.0.5001) or the G.E. API not loading PNG formatted KMLSUPEROVERLAYs

Re: [gdal-dev] What's up with the 8859 encoding?

2014-11-07 Thread Roger André
Even, Thank you for the quick reply. And it appears that using a .CPG file does not make a difference in this. Is that correct? Roger On Fri, Nov 7, 2014 at 3:00 PM, Even Rouault even.roua...@spatialys.com wrote: Le vendredi 07 novembre 2014 23:53:09, Roger André a écrit : Hello List

Re: [gdal-dev] What's up with the 8859 encoding?

2014-11-07 Thread Roger André
I see. So the output will default to ISO-8859-1 - regardless of the input .CPG - if the ENCODING flag isn't used. On Fri, Nov 7, 2014 at 3:08 PM, Even Rouault even.roua...@spatialys.com wrote: Le samedi 08 novembre 2014 00:03:22, Roger André a écrit : Even, Thank you for the quick reply

[gdal-dev] What's up with the 8859 encoding?

2014-11-07 Thread Roger André
Hello List, I am very curious why after installing GDAL 1.11, I now need to use the -lco ENCODING=UTF-8 option when using ogr2ogr on any of my already UTF-8 encoded shapefiles? Failure to do so results in this error, Warning 1: One or several characters couldn't be converted correctly from

Re: [gdal-dev] Aligning Raster Over the Polygon

2014-11-18 Thread Roger André
Have you tried using a World File? http://en.wikipedia.org/wiki/World_file Roger On Tue, Nov 18, 2014 at 10:29 AM, Simen Langseth simlan...@gmail.com wrote: Dear GDAL Users: I have a raster image which have to be aligned over the polygon. Both the raster and polygon have the same

Re: [gdal-dev] georeferencing raster data using vector polygon

2014-11-21 Thread Roger André
Hi Simen, Ok, here is how to implement the suggestion I gave, which was to create a new worldfile and shift the image so that it fit the footprint vector better. 1. Use gdal_edit.py with the -unsetgt option to remove the georeferencing from the .tif 2. Then copy the attached .tfw file into the

[gdal-dev] Setting encoding using Python API

2015-01-30 Thread Roger André
Hi All, Curious how I go about specifying the equivalent of -lco ENCODING=UTF-8 when using the Python API to write out shapefiles with OGR? Thanks, Roger ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Setting encoding using Python API

2015-01-30 Thread Roger André
Awesome! I hate to ask [another] dumb question, but how can I peruse that autotest suite? Under some sort of test dir in the install? Roger On Fri, Jan 30, 2015 at 1:39 AM, Even Rouault even.roua...@spatialys.com wrote: Le vendredi 30 janvier 2015 10:37:30, Roger André a écrit : Hi All

Re: [gdal-dev] [Proj] Pixel Shifts When Warping

2015-05-18 Thread Roger André
The GDAL data model does specifically call out the top-left corner of the top-left pixel as the origin. Not sure if that's helpful, but I remember having to look this up before. http://www.gdal.org/gdal_datamodel.html On Mon, May 18, 2015 at 8:31 AM, Yuta Sato yutaxs...@gmail.com wrote: Dear

[gdal-dev] Problem appending non-geometry tables in PostGis

2015-06-04 Thread Roger André
Hi All, I'm having some trouble using ogr2ogr to do batch uploads to a Postgis DB. It appears that on tables which don't contain geometry, CreateLayer is failing and not allowing data to be appended to an existing table. Here is the command that is being used to load each feature class: ogr2ogr

Re: [gdal-dev] Problem appending non-geometry tables in PostGis

2015-06-05 Thread Roger André
Even, That works, thanks. Roger On Fri, Jun 5, 2015 at 12:52 AM, Even Rouault even.roua...@spatialys.com wrote: Le vendredi 05 juin 2015 02:19:06, Roger André a écrit : Hi All, I'm having some trouble using ogr2ogr to do batch uploads to a Postgis DB. It appears that on tables which

Re: [gdal-dev] Merge all features in polygon shapefile with gdal

2015-07-06 Thread Roger André
Hey Steven, Are you trying to do this via a spatially enabled database? In PostGIS, the dissolve syntax looks like this: SELECT dissolve_field, ST_UNION(geometry) FROM table GROUP BY dissolve_field; Roger On Mon, Jul 6, 2015 at 4:13 PM, Steven Lutz ste...@ruggedrocksoffroad.com wrote:

[gdal-dev] Weird OpenFileGDB error

2015-10-21 Thread Roger André
Hi All, I've been trying unsuccessfully to extract a feature class from a large file geodatabase. While many of the other feature classes in it are read properly, on this one I get the following error: $ ogrinfo -summary file.gdb Streets Had to open data source read-only. INFO: Open of

Re: [gdal-dev] How to write WKB as string?

2015-10-14 Thread Roger André
Ahh, thanks! It helps to frame the question correctly. I see now that what I am trying to do is create the hex-encoded form of WKB. On Wed, Oct 14, 2015 at 10:24 AM, Even Rouault <even.roua...@spatialys.com> wrote: > Le mercredi 14 octobre 2015 19:18:20, Roger André a écrit : >

[gdal-dev] How to write WKB as string?

2015-10-14 Thread Roger André
Hi All, I have a tool which currently exports geometry using the ExportToWkt() function. It works great, but I'd like to try reducing the size of my output files by using a format like the string representation of WKB that shp2pgsql produsces when creating SQL insert files. Is there a export

Re: [gdal-dev] How to write WKB as string?

2015-10-14 Thread Roger André
<n...@cape.com> wrote: > > On Oct 14, 2015, at 12:59 PM, Roger André <ran...@gmail.com> wrote: > > Hi All, > > I have a tool which currently exports geometry using the ExportToWkt() > function. It works great, but I'd like to try reducing the size of my >

[gdal-dev] Python feature.SetField() fails with unicode strings

2017-07-24 Thread Roger André
Good morning, I've been working on a simple script to load GeoJSON into PostGIS. I'm encountering an error that has me scratching my head, it seems that unicode strings cannot be used with the feature.SetField() function in Python. Is that really true? I've tested this by re-writing the

Re: [gdal-dev] Python feature.SetField() fails with unicode strings

2017-07-24 Thread Roger André
wrote: > On lundi 24 juillet 2017 08:43:02 CEST Roger André wrote: > > > Good morning, > > > > > > I've been working on a simple script to load GeoJSON into PostGIS. I'm > > > encountering an error that has me scratching my head, it seems that > unicode > &

Re: [gdal-dev] Large number of "Unable to translate coordinate system" in epsg file

2018-04-17 Thread Roger André
> system" in epsg file > > On lundi 16 avril 2018 10:46:18 CEST Roger André wrote: > > Hi All, > > > > Slightly off-topic question, but I'm curious why I'm seeing so many > entries > > that look like this in my epsg file: > > > > # NAD27 / Michi

[gdal-dev] Large number of "Unable to translate coordinate system" in epsg file

2018-04-16 Thread Roger André
Hi All, Slightly off-topic question, but I'm curious why I'm seeing so many entries that look like this in my epsg file: # NAD27 / Michigan North # Unable to translate coordinate system EPSG:6200 into PROJ.4 format. Is this normal, or the sign of a flawed install of dependencies, or something

Re: [gdal-dev] Import Shapefile into SQL Server on Ubuntu

2018-10-22 Thread Roger André
See if this helps - https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017 . On Mon, Oct 22, 2018 at 8:25 AM Peter Marlow wrote: > Hi, > > > > I’m trying to import a Shapefile into an SQL Server database using ogr2ogr