[gdal-dev] Convert and make ecw transparent - Part 2

2013-04-16 Thread Paul Meems
Hi All, I'm still working on my process to make my ecw ready for GeoServer and enable transparency. I've written about it before and got some valuable feedback that allowed me to convert my first ecw. I now have a second ecw that doesn't work properly with my first steps. For this ecw the resultin

[gdal-dev] Aggregate bands

2013-06-13 Thread Paul Meems
Hi list, I have a netCDF file with 24 bands. I want to create a new (ASCII) grid with the bands aggregated. Is this possible using the gdal tools or with an existing python script? Thanks, Paul ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Paul Meems
#x27;t work. I don't need an ASCII grid, a different format is also OK. But I do need all bands combined/aggregated. Do you have a different suggestion? Or should I read (using Python or similar) each band/pixel and manual aggregate them? Thanks, Paul *Paul Meems * Release manager, confi

Re: [gdal-dev] EPSG 8.2 Upgrade

2013-10-03 Thread Paul Meems
I'm not sure if this is the correct place to report this. If not please let me know. I'm having trouble compiling the trunk version of PROJ.4 with the updated EPSG 8.2 database definitions. I'm running Win7 and use VS2008. I'm getting these errors and warnings: Warning 1Command line warning D

Re: [gdal-dev] EPSG 8.2 Upgrade

2013-10-03 Thread Paul Meems
Thanks Even, That patch works great. Hopefully it will get implemented soon. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl * * 2013/10/3 Even

[gdal-dev] Compile GDAL with GEOS, strange GEOS_CFLAGS

2013-10-04 Thread Paul Meems
running Win7 and compile using nmake in a VS2008 command prompt. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl * * __

[gdal-dev] Changed API for exportToGEOS

2013-10-08 Thread Paul Meems
h for some documentation about this but can't find it. I've looked at the code used in GDAL and it looks like I just have to call GEOSContextHandle_t hGEOSCtxt = createGEOSContext(); first and pass hGEOSCtxt. Am I correct? Thanks, Paul *Paul Meems * Release manager, configuration manager an

Re: [gdal-dev] Changed API for exportToGEOS

2013-10-08 Thread Paul Meems
Thanks Even, I'll change our code. I assume I need to call freeGEOSContext( hGEOSCtxt ); afterwards as well. And you are right. I'm using the trunk version of GDAL because I want the update EPSG database. But I'm using GEOS v3.4.2 (Stable) Paul *Paul Meems * Release manager

[gdal-dev] Compile errors when including gdal.lib (trunk version)

2013-10-14 Thread Paul Meems
aries. But I'm not sure if we can still show ecw-files. #1 seems to be the biggest problem and we've tried several different configurations and searched a lot using Google but we can solve this. Does anybody understands what is going on and how we can fix this so we can use the latest G

Re: [gdal-dev] Compile errors when including gdal.lib (trunk version)

2013-10-14 Thread Paul Meems
Thanks Even, I commented the DllMain() implementation and now my project compiles again. I would love to send a patch but I'm not a C++ developer and don't know how to fix this. I will now look into the ECW error. Thanks, Paul *Paul Meems * Release manager, configuration manager

[gdal-dev] Statically link ECW v5 with GDAL

2013-10-17 Thread Paul Meems
mport) public: __thiscall NCS::CString::~CString(void)" (__imp_??1CString@NCS@@QAE@XZ) referenced in function "public: virtual enum CPLErr __thiscall ECWDataset::SetMetadataItem(char const *,char const *,char const *)" (?SetMetadataItem@ECWDataset@@UAE?AW4CPLErr@@PBD00@Z)

[gdal-dev] How to enable NetCDF?

2013-10-17 Thread Paul Meems
I'm still working on configuring GDAL and MapWinGIS to open several raster formats. I've got several problems with some file formats. The most blocking is when I enable NetCDF GDALAllRegister() generates an exception. I'm using the trunk version (R.26534) of GDAL v1.10. I compile using nmake with

[gdal-dev] Understanding gdal_rasterize

2013-10-21 Thread Paul Meems
I'm trying to understand how gdal_rasterize works. As a test I'm trying to convert a shapefile with all counties of the USA to a GeoTiff. I've added a field to the shapefile called myID which is equal to the shape number. The goal is to create a tiff with each county its own value. This is my comm

Re: [gdal-dev] Understanding gdal_rasterize

2013-10-23 Thread Paul Meems
Thanks Hermann for your explaination. I probably made a typo because now the pixels have different colors/values as I would expect. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for

[gdal-dev] Fwd: Changed API for exportToGEOS

2013-11-08 Thread Paul Meems
Hi all, Sorry to bother you all again. We're still struggling with upgrading to GDAL and GEOS. When I use GDALv1.9 with GEOSv3.3.5 with our C++ application (MapWinGIS), I have no problems. The GEOS methods are still working. I've made a test to buffer a geometry. When I upgrade to GDAL trunk (v1.

Re: [gdal-dev] gdal_clip

2014-01-08 Thread Paul Meems
Hi Zack, Your function sounds great. We've tried to implement something similar last summer but couldn't get it to work properly. I have no authority to say if this should be implemented in GDAL or not, but you've got my vote ;) Thanks, Paul *Paul Meems * Release manager

[gdal-dev] exportToProj4

2014-01-25 Thread Paul Meems
hes on delete oSRS;. I've been searching for examples of how to use exportToProj4() in C++ but can only find Python examples. And I'm not a C++ developer, just a C# developer :) How should I now free oSRS? Thanks for any advice. Paul *Paul Meems * Release manager, configuration manager

Re: [gdal-dev] exportToProj4

2014-01-25 Thread Paul Meems
(around like 440). I tried to use your suggestion in all those places, but it does compile but doesn't run. I'll need to let a true C++ developer look at it ;) Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org

Re: [gdal-dev] GDAL 1.11 release plan

2014-03-26 Thread Paul Meems
+1 for adding VS2013 binaries in GISInternals Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *Join us at the MapWindow GIS Conference 2014

[gdal-dev] MapWindow Open Source GIS Users and Developers Conference

2014-04-08 Thread Paul Meems
! Allowed languages are Hungarian and English (preferred). I hope to see you in Debrecen. Sorry for sending this through this list, but it's the last week before the deadline and we really would like some additional Open Source GIS related presentations. Thanks, Paul *Paul Meems * Release manager,

[gdal-dev] Migrate to GDAL v2 or not?

2014-09-29 Thread Paul Meems
We already recompiled using GDAL v2 and it seems we have only a few issues which seems to be easily fixed. We won't release a new version of MapWinGIS within a few months, probably around X-Mas. What is recommended? Thanks, Paul *Paul Meems * Release manager, configuration manager and for

Re: [gdal-dev] Migrate to GDAL v2 or not?

2014-09-29 Thread Paul Meems
Thanks Even for the quick reply. We like bleeding edge technology ;) So we'll be using GDAL v2. If we stumble on something I'll post it on this list. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of Ma

Re: [gdal-dev] StringList and Esri Shapefile

2014-10-14 Thread Paul Meems
Hi Martin, For ESRI shapefiles to max size of fieldnames is 10, so it is truncated. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The English

Re: [gdal-dev] How to project all the files or newest files that were added to the directory using gdalwarp and commandline(.bat file)

2014-10-21 Thread Paul Meems
at file to run periodically. BTW. I don't think this is a GDAL question, more a Windows batch question. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwi

[gdal-dev] Create PostGIS database using OGR/GDAL

2014-10-23 Thread Paul Meems
revent to bypass GDAL/OGR and connect to PostGIS directly to create and drop a database. Any suggestions are much appreciated. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support

Re: [gdal-dev] Create PostGIS database using OGR/GDAL

2014-10-24 Thread Paul Meems
xcept create or drop a database. Perhaps the driver needs a ExecuteNonQuery() function, like npsql does? Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl

[gdal-dev] [Windows] GDAL plug-ins are not found

2014-12-20 Thread Paul Meems
ame issue with prior versions of GDALv2 as well. But because the test application did show the image we ignored it. But the demo is a bit more strict ;) Any suggestion is much appreciated. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.map

Re: [gdal-dev] [Windows] GDAL plug-ins are not found

2014-12-20 Thread Paul Meems
problem, right? Any suggestions what could be the problem? Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The English presentations of the

Re: [gdal-dev] [Windows] GDAL plug-ins are not found

2014-12-21 Thread Paul Meems
econdly we relied on the GDAL_DRIVER_PATH environment variable to find the GDAL plug-ins. We changed that by using CPLSetConfigOption on startup. Now out test application is no longer reporting errors and our demo application can also load ECW files. Thanks, Paul *Paul Meems * Release manager, con

Re: [gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-29 Thread Paul Meems
it should give you some pointer were to look. Cheers, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The English presentations of the MapWindow GIS

[gdal-dev] GDAL and C# bindings

2015-01-07 Thread Paul Meems
ased 2014/09/24) It looks like PInvoke can't find the dll. What do I need to set to get this to work? Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.map

Re: [gdal-dev] GDAL and C# bindings

2015-01-07 Thread Paul Meems
Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The English presentations of the MapWindow GIS Conference 2014 are online. <http://www.slideshare.net/m

[gdal-dev] Promote debug msg to warning

2015-11-03 Thread Paul Meems
abled because runtime spatialite library is v3.0 !" which is a understandable message but because it is a debug message and not a warning message it is hard to spot. Wouldn't it be more logical if GDAL would report this message as a warning? Thanks, Paul *Paul Meems * Release manager

Re: [gdal-dev] Promote debug msg to warning

2015-11-04 Thread Paul Meems
Hi Even, One of our team members created a ticket: https://trac.osgeo.org/gdal/ticket/6199 Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *We&#x

[gdal-dev] Librarified version of GdalBuildVrt

2015-11-22 Thread Paul Meems
e can wait or should we copy the code again? Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *We've started with the development of MapWindo

Re: [gdal-dev] Librarified version of GdalBuildVrt

2015-11-22 Thread Paul Meems
Thanks Even for the reply, I am not a C++ developer so I need to rely on somebody else to implement this. For now I'll ask the C++ developer of the MapWindow project to fix the implementation we already have for the GdalBuildVrt tool. Thanks, Paul *Paul Meems * Release ma

[gdal-dev] RFC 48: Geographical networks support

2015-11-22 Thread Paul Meems
Hi List, I'm looking at this RFC. Is it already implemented in GDAL v2? And can we use it to create the shortest path between 2 points using a shapefile of roads (linestring) Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindo

[gdal-dev] Can not connect to MSSQL database on Azure

2015-12-28 Thread Paul Meems
ot be used with Windows authentication. A co-worker looked at the code of the MSSQL driver and noticed you are using the ODBC drivers, but are hard coding the trusted_connection parameter to be yes. Is this by design? Should I file a issue report? Thanks, Paul *Paul Meems * Release manager, configur

Re: [gdal-dev] Can not connect to MSSQL database on Azure

2015-12-29 Thread Paul Meems
Thanks Tamas, You are completely right. We misinterpret de code. Thanks to the link you provided we now understand we need to use a different connection string: MSSQL:server=***;database=***;trusted_connection=no;uid=***;pwd=*** Thanks, Paul *Paul Meems * Release manager, configuration

Re: [gdal-dev] Librarified version of GdalBuildVrt

2016-01-14 Thread Paul Meems
Thanks Even for this. Is there somewhere a list of GDAL tools that are available as a C callable function? Regards Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users

[gdal-dev] gdalwarp + cutline and change extent

2016-06-03 Thread Paul Meems
Hi, Currently we're using GDAL v1.10 We need to clip a piece out of a larger tiff file using a shapefile. When we use this command: gdalwarp -cutline Field9.shp -crop_to_cutline -wo "CUTLINE_ALL_TOUCHED=TRUE" input.tif output.tif We get a nicely cropped tiff-file like we want. But the pixels have

[gdal-dev] ogrinfo not a C callable function?

2016-08-04 Thread Paul Meems
Hi, When I look at RFC 59.1 ( https://trac.osgeo.org/gdal/wiki/rfc59.1_utilities_as_a_library) I see gdalinfo,exe, ogr2ogr.exe are all C callable functions now. But I don't see ogrinfo? Do I understand it right that ogrinfo.exe is not a C callable function? If so is there a specific reason for th

Re: [gdal-dev] ogrinfo not a C callable function?

2016-08-04 Thread Paul Meems
Hi Even, Thanks for the clarification. We will update our code accordingly. Regards, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The MapWindow

[gdal-dev] Process MicaSense raw data using GDAL

2016-11-21 Thread Paul Meems
I'm investigating if we can process the raw data made by MicaSense using GDAL so we don't need to upload the data first and then get the multi-band GeoTiff back. The camera has 5 lenses maken 5 tiff-files each time. Each band (R, G, B, RedEx, NearInf) in its own file. Due to the direction and the

[gdal-dev] Convert precipitation accumulations from HDF5 to GeoTiff

2016-12-13 Thread Paul Meems
I'm trying to use the precipitation accumulations from our national weather agency: https://data.knmi.nl/datasets/radar_tar_corr_accum_03h/2.0 The data is in HDF5 with two subsets. I only need one subset and I need the data in WGS84. I'm using GDAL v2.2 from GisInternals.com I tried using GDALWarp

Re: [gdal-dev] Convert precipitation accumulations from HDF5 to GeoTiff

2016-12-13 Thread Paul Meems
. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The MapWindow GIS project has moved to GitHub <https://github.com/MapWindow>!* Download the

Re: [gdal-dev] Convert precipitation accumulations from HDF5 to GeoTiff

2016-12-13 Thread Paul Meems
Thanks again Rutger for your observation. The bounding box was sent to me and I was already very happy the tiff is located in The Netherlands ;) I did a closer look at the meta data and with your explanation I come up with this 'formula': The ul is 0.0, -1 * geographic_geo_row_offset lr is geogr

[gdal-dev] How does OGRFeature::GetFieldAsDouble handle NULL values

2017-01-05 Thread Paul Meems
We're using GDAL v2.1.2 on Windows. We use the GDAL library with MapWinGIS to connect to a PostGIS database. When the PostGIS table has NULL values in integer, numeric or double fields and that data is read the returned values are 0 (zero), which is unexpected by us. We use Feature->GetFieldAsDou

Re: [gdal-dev] How does OGRFeature::GetFieldAsDouble handle NULL values

2017-01-05 Thread Paul Meems
Thanks Nyall, Looking at the documentation it seems to be what I'm looking for. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The MapW

[gdal-dev] Simple band calculations

2017-01-12 Thread Paul Meems
Hi list, I have a 5 band GeoTiff and I want to derive a new image of it by doing some simple band calculations. For example (band5-band3) / (band5+band3). I was hoping I could do this with a VRT file, but can't find an example. I did found details about GDAL Algebra and Pixel Functions, but I'm no

[gdal-dev] Using GDALTranslateOptions with '-a_ullr' doesn't work

2017-01-17 Thread Paul Meems
Hi list, I'm using GDAL v2.1.2 from GisInternals.com on Win10 with the C#-bindings. I'm trying to recreate this gdal_translate command in C#: gdal_translate -of GTiff -a_nodata 65535 -a_srs "+proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6378.14 +b=6356.75 +x_0=0 y_0=0" -a_ullr 0.0, -3650.000, 800.

Re: [gdal-dev] Using GDALTranslateOptions with '-a_ullr' doesn't work

2017-01-17 Thread Paul Meems
e +lat_0=90 +lon_0=0 +lat_ts=60 +a=6378.14 +b=6356.75 +x_0=0 y_0=0", "-a_ullr", "0.0", "-3650.000", "800.000", "-4415.000" }); var newDs = Gdal.wrapper_GDALTranslate(outputFile, ds, options, null, null); Regards, Paul *Pa

[gdal-dev] How to use wrapper_GDALWarpDestName in C#

2017-02-13 Thread Paul Meems
gcHandle.Free(); } return true; } It seems to work, but the SWIGTYPE_p_p_GDALDatasetShadow and gcHandle feel a bit hacky. Is this the recommended flow? And the second parameter is object_list_count. We now put in 1, but what should this be? Thanks, Paul *Paul Meems * Release manag

Re: [gdal-dev] How to use wrapper_GDALWarpDestName in C#

2017-02-13 Thread Paul Meems
Thanks Even, I saw that issue when searching for samples. I don't understand the status of this issue. I'm a right *just* a typemap is needed? Is somebody working on this? Can I help, if so how? Regards, Paul *Paul Meems * Release manager, configuration manager and forum moderator of

[gdal-dev] C# version of gdallocationinfo

2017-02-22 Thread Paul Meems
Hi list, I need to get the pixel value of my tiff-file. Using gdallocationinfo.exe I can get the correct value: gdallocationinfo -wgs84 -valonly 201612021600.tif 5.22543631866552 51.2581472440154 Now I need to do this in my C# code. Using examples I found with Google I came up with this piece of

[gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Paul Meems
I'm trying to use this gdal_rasterize command in my C# application: gdal_rasterize -a DN -a_srs "EPSG:28992" -tr 5 5 -a_nodata 0 -l test test.shp test.shp My goal is to convert a shapefile to a tiff-file. The above command does what I want. I need to call it from within my C# application. I'm alre

Re: [gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Paul Meems
Thanks Even, I now have using (var ds = Gdal.OpenEx(input, 1, null, null, null)) I couldn't find GDAL_OF_VECTOR in the C# bindings. I'm assuming it must be 1 since GDAL_OF_RASTER is 0. It is now working. Paul *Paul Meems * Release manager, configuration manager and forum mo

[gdal-dev] C# Calculate large rasters

2017-04-04 Thread Paul Meems
Hi List, I'm working on a C# application using the GDAL C#-bindings (v2.1.2). I have a (potentially) large single band GeoTiff (>100MB). I need to use this raster file, apply a formula and save as a new tiff. I already figured out I can use CreateCopy to create a copy of the input raster. Next I

[gdal-dev] Convert false-color single band tiff to png

2017-05-09 Thread Paul Meems
to my from an outside source I have no control about them. I need the png-files because I'm showing the files in OpenLayers. How can I do the conversion properly? Thanks, Paul Meems ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://

Re: [gdal-dev] Convert false-color single band tiff to png

2017-05-09 Thread Paul Meems
Thanks Even, I did look at the -scale switch but probably not correct. This is working: gdal_translate -of PNG -ot Byte -scale my.tif my.png Regards, Paul 2017-05-09 14:28 GMT+02:00 Even Rouault : > On mardi 9 mai 2017 14:25:58 CEST Paul Meems wrote: > > > I'm having tro

[gdal-dev] ISO-11783, known as Tractors and machinery for agriculture and forestry

2017-06-10 Thread Paul Meems
Hi List, I need to export my tiff file to ISOBUS (ISO-11783), which is a standard for the agriculture. In short I create a task map which will be loaded into a terminal of a tractor and the terminal will manage the, for example, crop duster to spray more or less according the the task map (using G

[gdal-dev] Clip tiff with shapefile

2017-06-12 Thread Paul Meems
Hi, I'm trying to clip a tiff-file with a shapefile. I'm using GDAL v2.1.3 with the SWIG-bindings in my C# application. The tiff-file has this info: Driver: GTiff/GeoTIFF Files: Size is 5140, 6065 Coordinate System is: PROJCS["WGS 84 / UTM zone 32N", GEOGCS["WGS 84", DATUM["WGS_1984",

[gdal-dev] Raster calculation optimalisation

2017-06-13 Thread Paul Meems
I'm using GDAL v2.1.3 with the SWIG bindings in my custom C# application. I've created a method to do some calculation of my raster file: public bool GdalCalculate(string input, string output, string formula, double? minValue = null) { if (!File.Exists(input)) throw new FileNotFoundEx

Re: [gdal-dev] Clip tiff with shapefile

2017-06-13 Thread Paul Meems
To answer my own question: GdalWarp is smart enough to internally reproject if needed. So I can use my tiff in UTM and my border in 28992 and I get a perfectly clipped output. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org

Re: [gdal-dev] Raster calculation optimalisation

2017-06-15 Thread Paul Meems
Thanks all for your suggestions. @Rutger and @Damian: Thanks for your suggestion about the blocks. I had a look at Rutger's links, I create the input file myself so I can add 'TILES=YES' but I'm not sure how to change my calculation code. I see in this first link xbs, ybs = b1.GetBlockSize() But I

[gdal-dev] VRT file with cutline behaves strangely with tiff with overviews

2017-07-01 Thread Paul Meems
I'm using GDAL v2.1.3 I have a tiff file with this info: Driver: GTiff/GeoTIFF Files: Chlorofyl-index.tif Chlorofyl-index.tif.aux.xml Size is 5140, 6065 Coordinate System is: PROJCS["WGS 84 / UTM zone 32N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137

Re: [gdal-dev] VRT file with cutline behaves strangely with tiff with overviews

2017-07-04 Thread Paul Meems
I've created a ticket: https://trac.osgeo.org/gdal/ticket/6954 and added some sample data to reproduce. Thanks, Paul 2017-07-01 20:32 GMT+02:00 Even Rouault : > > > > Is this a known and expected behavior of the VRT-format? > > > I really want to keep using the vrt-file since it is only 700kb i

[gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
I have a drone raster file which I want to use for some calculation. Before the calculation, I need to loose some extreme values. I want to do something like a percentile calculation where you get all values, order them and loose the top 10%. For this, I need to get all values first which can be sl

Re: [gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
Thanks Chris for your reply. I forgot to mention I'm not using GDAL with Python. I use it with C++ and/or C#. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking

[gdal-dev] Improve clipping of shapefiles

2017-09-11 Thread Paul Meems
I have a large shapefile with over 2.8 million shapes (fishnet) and I have a border file with only 1 multipolygon. I'm trying to clip the fishnet with the border. Using code is takes about 5 min. using command line it takes even longer. This is my command: ogr2ogr fishnetClipped.shp fishnet.shp -

Re: [gdal-dev] Improve clipping of shapefiles

2017-09-12 Thread Paul Meems
lve using Clipper is just taking 4 min. I prefer not to use yet another library. So I'm still open for more suggestions. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking us

[gdal-dev] How to check if projections are the same?

2011-07-25 Thread Paul Meems
quot;,0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]] GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree"

[gdal-dev] Compiling libCurl with GDAL v1.9

2012-08-13 Thread Paul Meems
for the package myself. I've downloaded curl-7.27.0-ssl-sspi-zlib-static-bin-w32.zip from fossies.org and curl-7.27.0-devel-mingw32.zip from haxx.se both both don't have the needed lib files. So my question is: How to obtain the correct libCurl package? Thanks, Paul *Paul Meems * Relea

Re: [gdal-dev] Compiling libCurl with GDAL v1.9

2012-08-13 Thread Paul Meems
o.org/gdal/wiki/LibCurl should be updated? Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl * * 2012/8/13 Tamas Szekeres > I recently used

[gdal-dev] How to get a working version of gdal_retile.py?

2012-09-05 Thread Paul Meems
o be some trouble between Python v2 and v3 The post states it has been fixed in the latest gdal_retile.py. So I downloaded that version and tried it, but now I'm getting even more errors. How can I get a working version of gdal_retile.py? Or can I get a newer

Re: [gdal-dev] How to get a working version of gdal_retile.py?

2012-09-05 Thread Paul Meems
l 2012/9/5 Even Rouault > Selon Paul Meems : > > > I'm trying to tile an ecw file to use in geoserver like explained here: > > > > http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html > > I've no experience with GeoServer but

Re: [gdal-dev] How to get a working version of gdal_retile.py?

2012-09-06 Thread Paul Meems
he problem is with the location of GDAL-1.9.1.win32-py2.7.msi. How should I install this properly? Leave the default setting and don't install it? Change the location the my Python27 folder or to my GDAL folder? Thanks, Paul 2012/9/5 Even Rouault > Le mercredi 05 septembre 2012 11:44:50,

Re: [gdal-dev] How to get a working version of gdal_retile.py?

2012-09-06 Thread Paul Meems
hanks, Paul 2012/9/6 Even Rouault > Selon Paul Meems : > > > Thanks Even for all your help. > > But I'm still having trouble. > > You've downloaded a 64-bit version of python (python-2.7.3.amd64.msi), and > are > trying to use it with a 32-bit build of

Re: [gdal-dev] How to get a working version of gdal_retile.py?

2012-09-11 Thread Paul Meems
Hi Eli I managed to complete the task thanks to the help of Even. I have used gdal v1.9 without the tag. I had a 4GB ecw file which resulted in about 11GB of tiled TIFF files. It took about 15 hours. Tomorrow I am going to try to get it working in geoserver. -- Paul Meems send from my Android Op

[gdal-dev] How to use gdal_polygonize.py

2012-10-22 Thread Paul Meems
Hi all, I'm investigating gdal_polygonize.py I'm thinking of using it to convert a DEM-file to a polygon shapefile. I did a quick test using gdal_polygonize.py logan.tif -f "ESRI Shapefile" logan_poly.shp and got a shapefile. But this shapefile is huge, it created a polygon for every pixel value.

Re: [gdal-dev] How to use gdal_polygonize.py

2012-10-22 Thread Paul Meems
r, that's why I didn't think of that. Thanks, Paul 2012/10/22 Ari Jolma > On 10/22/2012 12:38 PM, Paul Meems wrote: > >> >> Am I not understanding the purpose of gdal_polygonize? >> Can somebody tell me some real-life use cases when to use this? >> >

[gdal-dev] gdal_polygonize.py creates invalid shapes

2012-10-31 Thread Paul Meems
Hi, I noticed gdal_polygonize.py creates invalid shapefiles. I use this tiff file as input: http://www.fao.org/geonetwork/srv/en/http://www.fao.org/geonetwork/srv/en/resources.get?id=37139&fname=povt.zip&access=private And this is my command: gdal_polygonize.py pov.tif -f "ESRI Shapefile" pov_pol

Re: [gdal-dev] map selection -reg

2012-11-26 Thread Paul Meems
Hi Nikhil, This mailing list is about GDAL/OGR. I think you have more luck in the DotSpatial forum asking these questions: http://dotspatial.codeplex.com/discussions -- Paul 2012/11/27 Nikhil Sai Parupalli > Hi All, > > I am working on an application where I have used Dotspatail dll > for

[gdal-dev] Unions shapefiles using ogr

2012-12-17 Thread Paul Meems
Hi all, How can I union several shapefiles into one using ogr? I tried using the OGR Virtual Format and created a XML file similar to this: source1.shp source2.shp My next step was to call ogr2ogr to created the new file. Th

Re: [gdal-dev] Unions shapefiles using ogr

2012-12-17 Thread Paul Meems
Thanks Even. So this means I need to write my own application using the Union() from GEOS and I cannot use it on the command line using OGR VRT? That is OK, I can do that. Using existing utilities on the command line seemed easier ;) Thanks, Paul 2012/12/17 Even Rouault > Selon Paul Me

[gdal-dev] gdalinfo and ogrinfo file formats

2013-01-02 Thread Paul Meems
pefile.html Am I missing something or isn't this available for ogr? Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl * * __

Re: [gdal-dev] gdalinfo and ogrinfo file formats

2013-01-02 Thread Paul Meems
Hi Even, I'm not sure why I shouldn't use --format. If I can't use it why is it provided? Can I use --formats? Perhaps I should not handle this in my C#/WinForms but do this in our C++ core. I think we can make a method that would return what I need based on gcore/gdal_misc.cpp but that would rely

Re: [gdal-dev] gdalinfo and ogrinfo file formats

2013-01-02 Thread Paul Meems
ng C# bindings. Thanks, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl * * 2013/1/2 Even Rouault > Selon Paul Meems : > > > Hi Even, >

[gdal-dev] Looking for equivalent gdal/ogr methods

2013-01-05 Thread Paul Meems
pefile) * Erase shapefile with polygon (shape in a different shapefile) We have compiled GDAL with GEOS so we can access those methods as well. Thanks in advanced. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.n

Re: [gdal-dev] does gdal support multiple simultaneous writers to raster

2013-01-12 Thread Paul Meems
To add my 2cnts. With MapWindow GIS we use TauDEM binaries to perform watershed delineations. http://hydrology.usu.edu/taudem/taudem5.0/index.html These TauDEM binaries are optimized to use MPI, but also work if you don't have MPI installed. I don't know in detail how it works but in general you

[gdal-dev] Converting ecw to tif for Geoserver

2013-02-09 Thread Paul Meems
The last days I've been trying to convert my ecw file to a GeoTiff so I can use it in Geoserver. The ecw is a mozaik of aerial photos. When I do these two commands it is working in Geoserver: - gdal_translate -of GTiff -co tiled=yes -co compress=jpeg -co photometric=YCBCR -a_srs EPSG:28992 -

Re: [gdal-dev] Converting ecw to tif for Geoserver

2013-02-09 Thread Paul Meems
EG --config PHOTOMETRIC_OVERVIEW YCBCR lowres-compressed-transparent.tif 2 4 8 16 32 64 128 Thanks all. Paul 2013/2/9 Even Rouault > Le samedi 09 février 2013 13:48:13, Paul Meems a écrit : > > The last days I've been trying to convert my ecw file to a GeoTiff so I > can >

Re: [gdal-dev] Converting ecw to tif for Geoserver

2013-02-10 Thread Paul Meems
Did I loose it along the way? Or is it expected to have such a large sized end result. Because it is now so large I think I'll get into trouble when I add it to Geoserver. I hoped to use the tiff directly and not use Geoserver's pyramid plug-in. Thanks, Paul 2013/2/9 Paul Meems &g

Re: [gdal-dev] Converting ecw to tif for Geoserver

2013-02-10 Thread Paul Meems
Thanks Andrea, I didn't understand that the first time. So there is no way to have the raster on top of another layer without getting white areas? In that case I will upload the smaller tiff file ;) -- Paul 2013/2/10 Andrea Aime > On Sun, Feb 10, 2013 at 8:30 PM, Paul Meems wrote

Re: [gdal-dev] Converting ecw to tif for Geoserver

2013-02-13 Thread Paul Meems
facts-zoom.png I did use the "input transparent color" in GeoServer and it is working great. I can now continue with my task. When I'm done I'll do some more experimenting with different order of steps and different compression to get a clean tiff. Thanks all for your hel

[gdal-dev] Memory Error in _gdal.Band_ReadRaster(*args, **kwargs)

2009-08-10 Thread Paul Meems
lem. Does anybody know how to solve this? I run it on a Vista 64-Bit 4-core, with 8GB RAM. I'm getting the same error on a WinXP sp3 2-core, with 2 GB RAM Thanks, Paul Meems The Netherlands ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] RE: Memory Error in _gdal.Band_ReadRaster(*args, **kwargs)

2009-08-14 Thread Paul Meems
g: gdal_retile -v -s_srs EPSG:28992 -of GTiff -ps 17335 16000 -targetDir tiles Large.tiff >retile.txt I got again the memory error. I don't know anymore how to to this. How can I split my large ecw file into smaller tiles? I also noticed that even if I use the same EPSG code I get d

Re: [gdal-dev] RE: Memory Error in _gdal.Band_ReadRaster(*args, **kwargs)

2009-08-16 Thread Paul Meems
gdal_translate to use say 2 GB of memory for > GDAL_CACHEMAX, enter > gdal_translate --config GDAL_CACHEMAX 2000 ... > In my experience, increasing GDAL_CACHEMAX substantially speeds up > gdal_translate processing. > Greg > > On Aug 14, 2009, at 4:08 PM, Paul Meems wrote: >

[gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Paul Meems
Hi all, We're using GDAL and libecwj2.dll in our application: MapWindow GIS ( www.mapwindow.org) I'm trying to compile a Win-64Bit version of MapWindow. To do that I need to compile all supporting libraries to Win-64Bit version as well. GDAL is compiling great, except when using libecwj2.dll. Beca

Re: [Gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-10-01 Thread Paul Meems
Tamas, Mateusz and Rob, Thanks for all your help. It seems I can now successfully build to 64Bit. In my first attempt I replaced Win32 with Win64 in the Preprocessor Definitions. That gave me the "unknown machine type will require custom 64 bit variables" error. When I restored Win32 I got the __a

  1   2   >