[gdal-dev] Proper way to burn in a shape to a Cloud Optimized Geotiff(COG)?

2021-08-24 Thread Brian
Looking at what is the proper way to burn in - to a COG? Here are the steps I have came up with: 1. Remove overviews 2. gdal_rasterize the geometry into the COG 3. create new overviews. Is there a way to just rebuild the overviews after burning in the values? I want to manipulate the

[gdal-dev] does TIGER vector driver extract 1980 block information

2020-07-10 Thread Brian Stults
I am trying to generate a shapefile of 1980 census blocks using the 1992 Tiger/Line files. I am able to open the files directly using QGIS, and I can create shapefiles using the GDAL TIGER driver. However, these methods do not seem to extract the 1980 block information. Perhaps the GDAL Tiger

Re: [gdal-dev] vsis3 to access a .vrt

2020-04-17 Thread Brian
it to work ill see if I can rig up some data I can share. On Fri, Apr 17, 2020, 5:07 PM Even Rouault wrote: > On vendredi 17 avril 2020 15:49:58 CEST Brian wrote: > > > Is using vsis3 to access a vrt possible? I have exhausted my debugging > > > skills. I can read .tifs just fine

[gdal-dev] vsis3 to access a .vrt

2020-04-17 Thread Brian
Is using vsis3 to access a vrt possible? I have exhausted my debugging skills. I can read .tifs just fine but as soon as I try a vrt it gives me corrupt empty or missing file. The call for using vsis3 is coming from mapserver but I thought this would be a gdal issue. Could anyone verify for me

Re: [gdal-dev] Need some help understanding why this raster is so big

2020-03-13 Thread Brian
.054 Minimum=0.001, Maximum=96.054, Mean=6.209, StdDev=10.756 NoData Value=- Metadata: STATISTICS_MAXIMUM=96.0537109375 STATISTICS_MEAN=6.2090953579112 STATISTICS_MINIMUM=0.0009765625 STATISTICS_STDDEV=10.756049212573 On Fri, Mar 13, 2020 at 8:53 AM Michael Sumner wrote

Re: [gdal-dev] Need some help understanding why this raster is so big

2020-03-13 Thread Brian
Is it faster to do a gdal_warp with compression then without? Is it safe to assume the drive write speed would be the limiting factor for speed in this case? On Fri, Mar 13, 2020 at 8:33 AM Cainã K. Campos wrote: > Hello Brian, > > Try to add the switch -co "COMPRESS=LZW"

[gdal-dev] Need some help understanding why this raster is so big

2020-03-13 Thread Brian
So compressed this raster is fairly small about 120mb but running gdal_warp produces a raster that is about 416 gb, is this something this list can help with? If so I can upload the file somewhere and let you guys/gals take a look at it. ___ gdal-dev

[gdal-dev] Occasional ERROR 4 on gdal.Open() with vrt files hosted on AWS S3

2020-02-25 Thread Brian
Jon do you think it could be a memory or storage issue? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Recommended process for running a intersect test between a raster and a simple vector

2020-01-27 Thread Brian
the overview level (see Even's post > http://erouault.blogspot.com/2014/10/warping-overviews-and-warped-overviews.html); > then you can run polygonize against a much smaller dataset. If it's a COG > presumably it has internal overviews. > > On Mon, Jan 13, 2020 at 12:22 PM Brian w

[gdal-dev] New Warnings from GTIFF output

2020-01-23 Thread Brian
Currently using the master and received these warnings when running gdal_translate "Warning 1: TIFFReadDirectory:Invalid data type for tag TileByteCounts Warning 1: TIFFReadDirectory:Invalid data type for tag TileOffsets" The exact command was gdal_translate -stats raster_trans.tif

[gdal-dev] Reprojection issue that works in GDAL 2.4.0 but not 3.0+

2020-01-21 Thread Brian
I am trying to go from (this is the .prj from an ESRI shapefile)

[gdal-dev] Recommended process for running a intersect test between a raster and a simple vector

2020-01-13 Thread Brian
So I am not sure if this is the right place or not. Feel free to remove if it is not. The problem: I am needing to see if an extent (vector polygon, 4 vertices) has any interaction with a raster stored in the cog format. I thought about using raster_polygonize and running a intersect but that

Re: [gdal-dev] stere

2017-07-14 Thread Brian McCormick
I work with NWS grids a lot for nexrad data. They are in a 1/40 lfm grid. Your data looks like it might be an a 1/1 LFM grid. Here is the WKT I would use for a 1/1 LFM grid. Each cell is 190.5 km. PROJCS["1/1.0 LFM",GEOGCS["NOT SPECIFIED",DATUM["SPHERE",

Re: [gdal-dev] Problem with black edges to DOQQs using JPEG in Tiff compression

2017-02-12 Thread Brian Case
warp. when using gdal_translate to create a tiff with a mask band, and you warped file has a alpha band, gdal_translate -b 1 -b 2 -b 3 -mask 4 this will crate a mask band from the alpha band brian On Sat, 2017-02-11 at 18:18 -0500, Stephen Woodbridge wrote: > Hi All, > > I need your wi

Re: [gdal-dev] how to create just the msk file from a rgba vrt file

2014-02-06 Thread Brian Case
Duarte gdaltranslate -of outfrmt -b 1 -b 2 -b 3 -mask 4 infile outfile brian you can output to vrt's just dont try to mosaic masked or aphad files with vrts brian On Thu, 2014-02-06 at 13:20 +, Duarte Carreira wrote: Hi there. Continuing with trying to cut processing times, I

Re: [gdal-dev] Fast Pixel Access

2014-02-03 Thread Brian Case
-Jukka tileindex, mapserver, and the gdal wms driver On Mon, 2014-02-03 at 17:20 +, Jukka Rahkonen wrote: Luke Roth roth.luke at gmail.com writes: Another thing that might speed up access is setting the config option GDAL_DISABLE_READDIR_ON_OPEN = TRUE, either as an environment

Re: [gdal-dev] Fast Pixel Access

2014-01-31 Thread Brian Case
evenr what about the use of a tileindex? seems an intersection with a set of polys first would be quick brian On Fri, 2014-01-31 at 19:30 +0100, Even Rouault wrote: Le vendredi 31 janvier 2014 17:15:53, David Baker (Geoscience) a écrit : Dev's, I have a set of 55,501 bil files

Re: [gdal-dev] Can gdal_rasterize utilize OGR_STYLE?

2014-01-30 Thread Brian Case
Jukka you could use mapserver to create your image. it will make use of ogrstyle shp2img or if that is an issue use mapserver and the wms driver in gdal brian On Thu, 2014-01-30 at 15:51 +, Jukka Rahkonen wrote: Hi, By reading the manual page and after doing some experiments I guess

Re: [gdal-dev] Question about gdaladdo and raster mosaicking

2014-01-23 Thread Brian Case
Ammar you want to turn on internal masks in the shell, gdaladdo will not use them otherwise. also you will need to turn this on if you use mapserver. gdal will need to have this turned on for any further operations. gdaladdo should use the correct image options without specifying them export

Re: [gdal-dev] Reading CurveString and CurvePolygon Geometries from FGF Data

2014-01-21 Thread Brian Case
bob, if you decide to go the mask band route you wont be able to use a vrt. you will need to use gdalwarp or mapserver Brian On Tue, 2014-01-21 at 09:04 -0800, Bob Cave wrote: Even Rouault wrote Le vendredi 17 janvier 2014 17:08:38, Bob Cave a écrit : Hello, I am using the OGR

Re: [gdal-dev] gdal_polygonize and polygon edges

2013-02-19 Thread Brian Case
done this myself and it works Brian On Tue, 2013-02-19 at 14:28 -0500, Jeff Lacoste wrote: Hi Frank, Thanks for your quick response. Following the edges of the pixels seems a perfect solution for non continuous grid (ex. land use, etc.) as the boundary between the class is important to keep

Re: [gdal-dev] substitute pixel values

2013-01-09 Thread Brian Case
http://www.gdal.org/gdal_vrttut.html you should also keep in mind gdal will not know the difference between - values in death valley and - values in the ocean Brian On Wed, 2013-01-09 at 16:33 +, Smith, Michael wrote: I have some DEMs that are created from lidar. For reasons related

Re: [gdal-dev] GDAL 1.9.2 python swig-modules build fails on OS X Lion

2012-12-29 Thread Brian Miles
It looks like GDAL was being built with clang/clang++, but the Python module was being build with llvm-gcc-4.2 and CFLAGS configured via a previous configure run. I re-extracted the GDAL source from the archive, re-ran configure, and was able to make and make install without problem. Brian

[gdal-dev] GDAL 1.9.2 python swig-modules build fails on OS X Lion

2012-12-28 Thread Brian Miles
/bin/geos-config --with-static-proj4=/Library/Frameworks/PROJ.framework/unix --with-expat=/usr/local --with-curl --with-python --with-macosx-framework=yes CFLAGS=-Os -arch x86_64 CXXFLAGS=-Os -arch x86_64 LDFLAGS=-arch x86_64 Any help would be appreciated. Sincerely, Brian

Re: [gdal-dev] Multiple pens in OGR feature style

2012-12-10 Thread Brian Case
i never considered this possibility when writing the libkml driver. perhaps check what mapserver does?. there is not a lot that uses featurestyle. perhaps a clarification of this in the spec is in order? brian On Mon, 2012-12-10 at 09:34 -0700, David Strip wrote: On 12/10/2012 7:29 AM, Even

Re: [gdal-dev] Unable to open GRIB file

2012-02-14 Thread Brian Case
On Wed, 2012-02-15 at 09:10 +0300, SupportLists wrote: Carlos is it raster or vector data? can you make the file accessible some place? Brian Hi, I am trying to open a grib file (meteorological data) with GDAL 1.8.1 but i get the following error: ./2011.grib is a grib file

Re: [gdal-dev] building geotransform with lower left and upper right coordinates

2012-02-13 Thread Brian Case
Brice, with that projection the origin should be in meters. convert the ll to meters and try setting dy to dy * -1 Brian On Mon, 2012-02-13 at 05:40 -0700, la...@ucar.edu wrote: Hello, I have a raster where I know the projection and the lower left and upper right coordinates and pixel size

Re: [gdal-dev] building geotransform with lower left and upper right coordinates

2012-02-13 Thread Brian Case
Brice, After some thought your image might not be bottom up. if thats the case calc the origin the way you did before, but don't convert back to lat lon Brian On Mon, 2012-02-13 at 05:40 -0700, la...@ucar.edu wrote: Hello, I have a raster where I know the projection and the lower left

Re: [gdal-dev] Geolocation Arrays ??

2012-02-12 Thread Brian Case
the forward transform is pretty strait forwards, however the reverse is not, it creates back-mask (a geo-referenced image that contains the x/y locations in the source image). the points that the warper tries to transform to figure out the target extent are no-data in the back-mask. Brian

Re: [gdal-dev] Geolocation Arrays ??

2012-02-12 Thread Brian Case
Etienne the algorithm that finds the target extent is not in the transformer Brian On Sun, 2012-02-12 at 13:17 -0200, Etienne Tourigny wrote: Brian, I'm not sure I understand your point - I probably don't understand the algorithm enough. Are both the forward and reverse transformations

Re: [gdal-dev] Geolocation Arrays ??

2012-02-11 Thread Brian Case
Etienne with the transformer the way it sits now, in most cases you will need to specify -te xmin ymin xmax ymax with gdalwarp to avoid that error Brian On Tue, 2012-02-07 at 19:22 -0200, Etienne Tourigny wrote: Even, Frank, thanks for your answers. I have run into a problem with using

Re: [gdal-dev] End User Questions :( KML Raster to Shapefile

2012-01-17 Thread Brian Case
Dennis gdal does not have any code for reading raster files in kml/kmz like that. can you make the files you have available so i can look? Brian On Mon, 2012-01-16 at 17:11 -0600, Dennis Burgess wrote: I have a .KML File and .PNG file or a .TIF along with a .GEO file that my application

Re: [gdal-dev] Warping onto an image with only GCPs with Python

2012-01-13 Thread Brian Case
/ticket/4193 http://trac.osgeo.org/gdal/ticket/4192 http://trac.osgeo.org/gdal/ticket/4188 if you have any additional information or issues please add them Brian On Fri, 2012-01-13 at 10:33 +0100, Anton Korosov wrote: Dear Brian, thank you very much for your reply! The '-geoloc' switch does

Re: [gdal-dev] Warping onto an image with only GCPs with Python

2012-01-12 Thread Brian Case
://lpdaac.usgs.gov/tools/modis_reprojection_tool_swath Brian On Thu, 2012-01-12 at 09:23 +0100, Anton Korosov wrote: Hello everyone! Some time ago I've asked about problems with gdalwarp (the e-mails below). I tried to utilize Python binding instead but got the same results. This brief

Re: [gdal-dev] Motion: Authorize Islandwood Funding for Brian Case

2012-01-09 Thread Brian Case
hey people Thanks for the support. looking forwards to the sprint. Brian On Tue, 2012-01-03 at 10:01 -0800, Frank Warmerdam wrote: On Tue, Dec 13, 2011 at 11:03 PM, Frank Warmerdam warmer...@pobox.com wrote: Motion: The GDAL PSC authorizes funding up to US$525 to pay entrance fees

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-06 Thread Brian Case
Aneesh i believe the only driver that supports layer andf dataset style tables is the libkml driver Brian On Thu, 2012-01-05 at 18:06 +0530, Aneesh Muralidharan wrote: Chaithanya, Ahhh that explains it ! Thanks a lot. By the way where do I find out these information (like DXF driver

Re: [gdal-dev] Writing Pixel Functions with VRT

2011-12-21 Thread Brian Case
Yves, You need to be write a custom application to make use of PixelFunctionType If you are looking for a command line utility solution you should use gdal_calc.py if your end goal is to serve this data via a wms you could try the thredds server

Re: [gdal-dev] re-gridding to a coarser grid

2011-12-15 Thread Brian Case
Andreas I think thats referring to my suggestion of GMT to do part of the work On Thu, 2011-12-15 at 14:00 +0100, Andreas H. wrote: Joaquim, nearneighbor is not really a good thing to use. Grid it with surface. What do you mean by grid it with surface? In my GDAL (1.8.1), I only

Re: [gdal-dev] Newbie question about gdal_grid for 3d data

2011-12-14 Thread Brian Case
Andreas, There are no vector drivers for hdf and nc. take a look here http://www.gdal.org/ogr/ogr_formats.html As an alternative to gdal_grid you can use GMT's blockmean, blockmedian, or blockmode. then use GMT's surface http://www.soest.hawaii.edu/gmt5/ On Wed, 2011-12-14 at 15:03 +0100,

Re: [gdal-dev] Which is the way to handle altitude layers within one file?

2011-12-14 Thread Brian Case
Andreas, you can use gdal to read grib, hdf, and netcdf files built this way. take a look at the format pages for those formats. http://www.gdal.org/formats_list.html note: gdal requires all the bands or subdatasets to be the same size if you find yourself needing to put multiple files together

Re: [gdal-dev] how to combine overlapping rasters?

2011-12-06 Thread Brian Case
Etienne if they overlap your limited to one of 2 options to mosaic gdalwarp or mapserver to get what ones are on top with gdalwarp i would imagine you would just need to play with the order on the command line. Brian On Tue, 2011-12-06 at 19:59 -0200, Etienne Tourigny wrote: Hi all. I am

Re: [gdal-dev] how to combine overlapping rasters?

2011-12-06 Thread Brian Case
Etienne you can gdal_rasterise the polys into a alpha band, then add your alpha band to your image in a vrt. Brian On Tue, 2011-12-06 at 19:59 -0200, Etienne Tourigny wrote: A related question: How can I effectively mask (mark as nodata) raster pixels inside a polygon? For example, I

Re: [gdal-dev] Editing KML files using ogr_csharp.dll

2011-12-05 Thread Brian Case
Chris, Have you tried the libkml driver? http://www.gdal.org/ogr/drv_libkml.html Brian On Mon, 2011-12-05 at 14:50 +, Pouliot, Christopher (DNR) wrote: Hello All, I have a C# application that uses OGR_CSHARP.DLL to read/write KML files. I’m able to read from KML files fine

Re: [gdal-dev] Problems writing big tiff image with RasterIO function

2011-10-31 Thread Brian Claywell
better. If you're seeing this behavior pre-1.8.1, it sounds similar to this bug, which has since been fixed: http://trac.osgeo.org/gdal/ticket/4090 -b -- Brian Claywell bcclayw...@gmail.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http

Re: [gdal-dev] Re: Gdal_translate, question from an amateur.

2011-10-23 Thread Brian Case
joolek, I noticed you used the word strip. Are you trying to remove portions of the image that are all black or white? On Sun, 2011-10-23 at 03:01 -0700, joolek wrote: Basically - I have an imagery with RGB 0-255, but I would like to strip it to 1-254. So i want to get rid off two extremes

Re: [gdal-dev] Re: Gdal_translate, question from an amateur.

2011-10-23 Thread Brian Case
Joolek, gdal_translate cannot look at 3 bands at a time, -scale 0 255 1 254 will scale each band separately, therefore 0 255 0 would become 1 254 1. At one point I thought perhaps you were trying to get rid of a border, but now I don't think thats the issue. Brian On Sun, 2011-10-23 at 11

Re: [gdal-dev] gdal_fillnodata.py filling interior holes in RGB images

2011-10-12 Thread Brian Case
to the outside nodata areas. I don't know howto deal with that other than to just live with the extra pixel around the outside of the valid data. Brian On Wed, 2011-10-12 at 08:46 -0400, Travis Kirstine wrote: I have some RGB orthophotos that have interior holes, typically 1 pixel. Most

Re: [gdal-dev] Re: KML's extendedData not visible

2011-10-11 Thread Brian Case
,-1,5,523,5 Brian On Tue, 2011-10-11 at 03:21 -0700, jarmstrong wrote: I have a similar question regarding KML and OGR. When trying to import the example extended data as given at http://code.google.com/apis/kml/documentation/extendeddata.html http://code.google.com/apis/kml/documentation

Re: [gdal-dev] Resquest for comments (RFC 36)

2011-10-03 Thread Brian Case
Ivan Makes me wonder what kind of performance gain you could see with mapserver on a layer with a large number of images to open. Seems to me that a tileindex would be a good application of this. Brian On Mon, 2011-10-03 at 19:02 -0500, Ivan Lucena wrote: Hi All, RFC 36: http

Re: [gdal-dev] Re: Can't get gdalwarp to create a raster in Mercator-2SP projection?

2011-09-29 Thread Brian Case
believe the formula (EPSG) notes are exactly the same for Mercator (1SP) and Mercator (2SP). There is only one projection in GeoTIFF for straight Mercator. hope this helps Brian On Thu, 2011-09-29 at 11:42 +1000, Patrick Sunter wrote: Oops, sorry sent message accidentally without last bit of text

Re: [gdal-dev] Can't find a way of properly warping into a buffer

2011-09-12 Thread Brian Case
Daniele a simple solution could be warp your image to an in memory raster http://www.gdal.org/frmt_mem.html Brian On Mon, 2011-09-12 at 19:24 +0200, Daniele Tessaro wrote: Hello everybody, I'm really sorry if this post will be very long, but I swear I've spent a lot of time (days

Re: [gdal-dev] Re: discussion on improvements to the NetCDF driver and CF-1 convention

2011-09-02 Thread Brian Case
Etienne I can read it with ogr. I am wondering if others have interest too http://svn.osgeo.org/gdal/sandbox/winkey/ogr-netcdf/ogrsf_frmts/netcdf/ Brian On Fri, 2011-09-02 at 10:57 -0300, Etienne Tourigny wrote: There has been recent work on incorporating netcdf support for point

Re: [gdal-dev] GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Brian Case
Chris, Try passing gdalwarp -et 0.0 I am also suspicious of doing compression with the warp. you might want to do that as a second step Brian On Wed, 2011-08-31 at 23:16 -0700, heng.feng wrote: Hi, I have used the (OSGeo4W) GDALWARP command to warp some height data image files (NTv2

Re: [gdal-dev] RE: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Brian Case
Chris have you tryed other kernels? cubic, etc.. read this too http://www.gdal.org/structGDALWarpOptions.html#0ed77f9917bb96c7a9aabd73d4d06e08 perhaps someone else may have other ideas. Brian On Wed, 2011-08-31 at 23:58 -0700, heng.feng wrote: Tried the -et 0.0 option with no luck :( Any

Re: [gdal-dev] Re: discussion on improvements to the NetCDF driver and CF-1 convention

2011-08-28 Thread Brian Case
any thoughts on a ogr netcdf driver? I have a simple one for madis data that needs work in my sandbox Brian On Sun, 2011-08-28 at 14:56 -0700, Etienne Tourigny wrote: I have created a new wiki page at http://trac.osgeo.org/gdal/wiki/NetCDF_Improvements , following Even's suggestion

Re: [gdal-dev] pruge images

2011-08-26 Thread Brian Case
Jan if you already have a wms setup with your data you could use the wms driver to read it. gdal_translate to a bigtiff. then cut it up into tiles with gdal_translate -srcwin Brian On Fri, 2011-08-26 at 15:17 +0200, Jan Tappenbeck wrote: hi! i have following problem. openstreetmap

Re: [gdal-dev] pruge images

2011-08-26 Thread Brian Case
? http://www.gdal.org/gdaladdo.html Brian On Fri, 2011-08-26 at 15:53 +0200, Jan Tappenbeck wrote: Am 26.08.2011 15:48, schrieb Brian Case: Jan if you already have a wms setup with your data you could use the wms driver to read it. gdal_translate to a bigtiff. hi ! thanks

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-07-26 Thread Brian Case
Nikolaos I have warped modis with swath2grid and mosaicked it with mapserver, I have not seen that issue. also you don't need to use a vrt to mosaic, this can be done with one gdalwarp call. gdalwarp file1 file2 file3 outfile Brian On Mon, 2011-07-25 at 17:20 -0700, Nikolaos Hatzopoulos

Re: [gdal-dev] Draw map in Visual C++

2011-07-22 Thread Brian Case
://gdal.org/gdal_tutorial.html vector data: http://gdal.org/ogr/ogr_apitut.html Brian On Fri, 2011-07-22 at 11:47 -0700, mark wrote: Hi I am a beginner to OSGEO, I am using GDAL/OGR. What is the fastest way , to draw maps / layers in my application. I am using C++. Thanks in advance

Re: [gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread Brian Case
Luiz, do you have a url handy for the source code of that plugin? Brian On Tue, 2011-07-12 at 14:53 -0300, Luiz Motta wrote: Met, I made a QGIS's plugin where calculate the 4 corners of polygon with the real pixels inside. Maybe is useful for you. The name of plugin is Image Boundary

Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-07 Thread Brian Case
Michael, another option is to use gdalwarp to merge images together. Brian On Thu, 2011-07-07 at 09:47 -0700, Michael Corey wrote: Thanks for your responses, Chaitanya and Eli. The semitransparency isn't really noticeable until you put the image on top of something else (in Photoshop

Re: [gdal-dev] KML 2 SHP with attributes

2011-06-30 Thread Brian Case
Patrick, Can you give an example of what tags your loosing? are you using the kml or the libkml driver? Brian On Thu, 2011-06-30 at 15:30 -0600, Patrick Wild wrote: I am converting KML to .shp with OGR2ORG, however, due to the KML tags I am loosing my attributes. Does anyone have any

Re: [gdal-dev] jpeg in tiff artifacts

2011-06-16 Thread Brian Case
/storage/creating.html Brian On Thu, 2011-06-16 at 10:20 -0700, Matt Wilkie wrote: Hello, When I convert with gdal_translate and use jpeg compression in geotiff format there is artifacting on the edges. It looks like nodata is being ignored. Is there any way to avoid this? (and still use

[gdal-dev] ogr2ogr custom coordiante system

2011-06-14 Thread Brian Fischer
utility and PostGIS recognize it? Regards, Brian Brian Fischer, CFM GIS Manager Houston Engineering, Inc. 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: Direct: 763-493-6664 / W: 763.493.4522 / M: 763.229.2734 Email: bfisc...@houstoneng.commailto:bfisc

Re: [gdal-dev] Converting from 16 bit to 8 bit images (best practices?)

2011-06-09 Thread Brian Case
Jonathan I don't know about worldview, but with modis I wound up using multiple ranges 0:0,750:110,1500:160,3000:210,4750:240,6375:255 see lut in the vrt tutorial Brian On Thu, 2011-06-09 at 12:39 -0700, Jonathan Greenberg wrote: Brian: Thanks! Great solution, definitely saved me

Re: [gdal-dev] Converting from 16 bit to 8 bit images (best practices?)

2011-06-09 Thread Brian Case
Nikos 143, and 721 Brian On Thu, 2011-06-09 at 16:49 -0700, Nikolaos Hatzopoulos wrote: for modis truecolor images? --Nikos On Thu, Jun 9, 2011 at 4:44 PM, Brian Case r...@winkey.org wrote: Jonathan I don't know about worldview, but with modis I wound up using

Re: [gdal-dev] Converting from 16 bit to 8 bit images (best practices?)

2011-06-08 Thread Brian Case
outfile1.vrt outfile2.vrt outfile3.vrt gdal_translate -of gtiff output.vrt output.tif for more complicated scaling you may need to hand write a vrt http://www.gdal.org/gdal_vrttut.html Brian On Wed, 2011-06-08 at 19:31 -0700, Jonathan Greenberg wrote: Nikos and GDALers: This is CLOSE

Re: [gdal-dev] Adding libKML

2011-05-18 Thread Brian Case
Paul You need libkml 1.3.0. this was only svn but i do not know if they have released since i last looked.\ Brian On Wed, 2011-05-18 at 11:35 +0200, Paul Meems wrote: Hi list, I'm still struggling enabling new (at least for us) support for certain file formats. I'm working on Win7

Re: [gdal-dev] Creating mosaic larger than 4GB using gdal_merge.py

2011-05-13 Thread Brian Wilson
On Fri, May 13, 2011 at 11:03 AM, Vytas vy...@dendron.com wrote: Hi, gdal_merge.py -o tot.tif Port*.tif Try gdal_merge.py -co BIGTIFF=IF_NEEDED -o tot.tif Port*.tif ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] gdal reading in grib values in awrong state?

2011-05-05 Thread Brian Case
Bill gdal uses degrib to read grib files, best I can tell is it does whatever degrib does by default Brian On Thu, 2011-05-05 at 22:33 +, Cassanova, Bill wrote: I have noticed the same thing. My question is why would gdal do a conversion that you had not asked for? We create some

Fwd: [gdal-dev] merging shapefiles larger than 4GB

2011-05-02 Thread Brian Wilson
I am afraid you are out of luck, the shapefile format restricts its size to 32 bit. See bytes 24-27 http://en.wikipedia.org/wiki/Shapefile Even if the SHP part was not so restricted, I bet the DBF part is. Cheers Brian On Mon, May 2, 2011 at 3:28 PM, Harsha Ch harsha...@gmail.com wrote: Hi

Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-21 Thread Brian Wilson
of corner points indicates the edge of the paper map with collar attached and a second set is a polygon around the actual map area. I think the write up is good enough not to copy it here. Please look at it and let me know. Brian ___ gdal-dev mailing list

Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread Brian Wilson
no_defs Anyway - if I needed to do this TODAY that's what I would do because it's now in my meager skill set. Someone inspired by my clumsiness might be inspired now to chime in with a more elegant way to do this. Hope this helps Brian ___ gdal-dev

Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread Brian Case
Dan use nearblack to add a alpha or mask band, and collar the image Brian On Wed, 2011-04-20 at 19:15 -0700, spalt wrote: Hi Brian- Thanks so much for your help. That works, though I feel a little silly now because I am realizing the lat/lon the FAA provides with these is the corners

Re: [gdal-dev] gdal datum shift

2011-04-13 Thread Brian Wilson
that I had missed the step in building Proj.4 of downloading separately the datum shift zip file. Upon fixing that I am now able to reproject correctly! HURRAH! Brian It can be helpful to run gdalwarp with the commandline option --debug on in which case the debug output should include the PROJ.4

[gdal-dev] gdal datum shift

2011-04-12 Thread Brian Wilson
it's doing I can't intelligently ask for help. :-) Thanks for your patience with a n00by Brian Command I am using: gdalwarp -of HFA -co COMPRESSED=YES -t_srs ESRI::NAD_1927_StatePlane_Oregon_North_FIPS_3601.prj 11s5w34f_color_ne.sid 11s5w34f_color_ne_nad27.img Output is in the right coordinate

Re: Fwd: [gdal-dev] kml superoverlay help request

2011-04-05 Thread brian
Brian Basicly you need to build a vrt out of every image in the level of intrest, in this case they seem to be the 7th level. attatched is a script to do so. Brian On Mon, 2011-04-04 at 18:09 -0700, Brian Wilson wrote: Darn -- meant this to go to the list not just to Harsh

Re: [gdal-dev] kml superoverlay help request

2011-04-04 Thread brian
Brian IIRC the superoverlay driver is read only. Reading images from knls are problematic at best. Can you give me some info on the stucture of the kmz's? Brian On Sun, 2011-04-03 at 22:43 -0700, Brian Wilson wrote: I received a batch of files that are in a kml format that looks like

RE: [gdal-dev] kml superoverlay help request

2011-04-04 Thread brian
Harsh, Depending on how its layed out, I have a way to read these. Brian On Mon, 2011-04-04 at 12:51 -0400, Harsh Govind wrote: Brian, I had responded earlier but for some reason my email was rejected by list maybe because my official ID changed. In any case below is my response. What

Fwd: [gdal-dev] kml superoverlay help request

2011-04-04 Thread Brian Wilson
Darn -- meant this to go to the list not just to Harsh -- Forwarded message -- From: Brian Wilson br...@wildsong.biz Date: Mon, Apr 4, 2011 at 11:10 AM Subject: Re: [gdal-dev] kml superoverlay help request To: Harsh Govind govind.ha...@geoeye.com Okay, so I cannot read KMZ w/gdal

[gdal-dev] kml superoverlay help request

2011-04-03 Thread Brian Wilson
the + means update or append?? (And rov means remotely operated vehicle? oops context shift sorry) Thanks in advance Brian Wilson Corvallis OR ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

RE: [gdal-dev] KML conversion and attributes

2011-03-22 Thread brian
Sbastien, Yes i was able to create the shape file. I see the libkml in your --formats output So that appears to be good Perhaps you could paste back the output of ogrinfo -al testy.kml? Brian On Tue, 2011-03-22 at 08:40 +, Favre, Sebastien wrote: Hello Brian, Thank you for your

Re: [gdal-dev] KML conversion and attributes

2011-03-21 Thread brian
Sbastien try removeing the Folder and /Folder from the kml if you want seperate schemas for different layers you need seperate documents not seperate folders Brian rush@octopi ~ $ ogrinfo -al testy.kml INFO: Open of `testy.kml' using driver `LIBKML' successful. Layer name: testy

Re: [gdal-dev] KML conversion and attributes

2011-03-21 Thread brian
Can someone forward my reply to Sbastien seems spotimage bounces my mails Thanks Brian ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] openjpeg build configuration

2011-03-17 Thread Brian Wilson
directory and unpacked a fresh copy to make sure nothing was cached. I can see this test in configure output checking for opj_decode_tile_data in -lopenjpeg... no which does not look promising. Is there a version compat problem? Brian ___ gdal-dev

Re: [gdal-dev] Reproject Globcover

2011-03-16 Thread Brian Claywell
it using gdal? Try: gdalwarp -t_srs EPSG:32631 -tr 300 300 -dstnodata 0 input file output file EPSG 32631 is WGS84 UTM zone 31N. See http://spatialreference.org/ref/epsg/32631/ -b -- Brian Claywell bcclayw...@gmail.com ___ gdal-dev mailing list gdal-dev

Re: [gdal-dev] Re: Gdal2tiles in Gdal18 and creating KMZ files

2011-02-23 Thread brian
nearblack.tif warped.tif gdal_translate -of kmlsuperoverlay warped.tif final.kmz brian On Tue, 2011-02-22 at 15:38 -0500, Roland Duhaime wrote: I have been working with the png creation option under gdal_translate -of kmlsuperoverlay to create kmz files that include transparency. I haven't had much luck

Re: [gdal-dev] Downsample with averaging?

2011-02-21 Thread Brian Claywell
directory. -b -- Brian Claywell bcclayw...@gmail.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] MrSID mask band support

2011-02-17 Thread Brian Claywell
-- Brian Claywell bcclayw...@gmail.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Gdal2tiles in Gdal18 and creating KMZ files

2011-02-16 Thread brian
Roland the problem is in /12/1211/2558.kml line 26 href2558.png/href this should be a relative path from the root of the zipfile not from 2558.kml Brian On Wed, 2011-02-16 at 15:14 -0500, Roland Duhaime wrote: I am following the instructions for creating one KMZ file that are posted

[gdal-dev] Naive warping question

2010-12-21 Thread Brian Hamlin
, they are *not* complete coverage of the area covered in the original tiffs. This is unexpected to me.. Is this expected results? How can I be sure to get complete coverage in the resulting set of re-projected tiffs? thanks -Brian == Brian Hamlin planetwork.net OSGeo California Chapter

Re: [gdal-dev] GDAL/OGR Python Question

2010-12-06 Thread Brian Walawender
Frank, Thanks for tip. I was able to rasterize my polygon and used that to calculate my sum. Very fast. bw On Fri, Dec 3, 2010 at 2:28 PM, Frank Warmerdam warmer...@pobox.com wrote: Brian Walawender wrote: Hello, I am looking for some assistance in optimizing a section of code

[gdal-dev] GDAL/OGR Python Question

2010-12-03 Thread Brian Walawender
seconds -- Brian Walawender Technique Development Meteorologist Scientific Services Division - Central Region Headquarters 816-268-3114 - Office 816-805-6497 - Cell ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman

[gdal-dev] Building GDAL 1.7.3 Python bindings

2010-12-03 Thread Brian Wilson
back to real work.) Cheers -- Brian Wilson Corvallis Oregon ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] new nearblack feature

2010-10-26 Thread brian
Hello everybody A new switch has been added to nearblack, -setmask, nearblack will write a mask band to mask out the nodata areas. Brian ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] JVM crash on making a call to the class/method OGRLineString::exportToWkt

2010-10-05 Thread Brian Kelly
Even, Thanks for the suggestions. I'll be working through them and will try to factor out into a standalone test case if possible. Best regards, Brian On Thu, Sep 30, 2010 at 6:01 PM, Even Rouault even.roua...@mines-paris.orgwrote: Brian, This is indeed going be difficult to help you

Re: [gdal-dev] ERROR 4: ... is a grib file, but no raster dataset was successfully identified.

2010-10-04 Thread brian
Hermann Do you have a link to the grib file you can share? Brian On Mon, 2010-10-04 at 15:16 +0200, Hermann Peifer wrote: Hi All, I am getting this error for a grib2 file: $ gdalinfo HRES_ENS_2010100300+000.grib2 ERROR 4: HRES_ENS_2010100300+000.grib2 is a grib file, but no raster

Re: [gdal-dev] ERROR 4: ... is a grib file, but no raster dataset was successfully identified.

2010-10-04 Thread brian
Hermann GDAL uses degrib to read grib files. I tryed the product in both degrib and gribdump, neither app will read it. Either the grib file is corrupt or it is a varient that neither app will read. Brian r...@octopi ~ $ degrib HRES_ENS_2010100300+000.grib2 -I ERROR: with inventory, so far

[gdal-dev] JVM crash on making a call to the class/method OGRLineString::exportToWkt

2010-09-30 Thread Brian Kelly
in a C++ world on this one. Thanks, Brian ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Raster Strategies Examples

2010-08-04 Thread brian
Edi, Personaly I beleve gdalwarp is the wrong tool for the job, you already have it all set up for mapserver so just use shp2img. On Mon, 2010-08-02 at 17:14 +0200, Edi KARADUMI wrote: as you may know, i have very slow performance when i zoom out and im stucked here. As i have read i should

  1   2   >