[gdal-dev] Gdal_grid produces a lot of empty cells

2024-05-22 Thread Paul Meems via gdal-dev
gh data points: https://pasteboard.co/4CmBs7kgQGVO.png https://pasteboard.co/J8ZbMHKeErZu.png Thanks if you made it all the way here ;) My questions are: - Am I using Gdal_Grid in the proper way or do I need to change one or more arguments? - What might be an explanation for

Re: [gdal-dev] gdal_contour: min value unexpected

2024-04-19 Thread Paul Meems via gdal-dev
Thanks Even, I create a ticket: https://github.com/OSGeo/gdal/issues/9705 With regards, Paul Op vr 19 apr 2024 om 11:46 schreef Even Rouault : > Hi, > > > I can't imagine this is a bug that was never noticed before. > > Why? If everybody followed that reasoning nobody will report and hardly >

Re: [gdal-dev] gdal_contour: min value unexpected

2024-04-19 Thread Paul Meems via gdal-dev
, Paul Op vr 5 apr 2024 om 10:27 schreef Paul Meems : > Hello List, > > I have a Surfer grid which I want to convert into polygons using > gdal_contour. > The min value of the lowest polygon is 0 which I didn't expect. > In the next step, I calculate the average of the

[gdal-dev] gdal_contour: min value unexpected

2024-04-05 Thread Paul Meems via gdal-dev
Hello List, I have a Surfer grid which I want to convert into polygons using gdal_contour. The min value of the lowest polygon is 0 which I didn't expect. In the next step, I calculate the average of the min and max values, and in this case that average is wrong. These are the values of the

Re: [gdal-dev] Convert grid to polygon shapefile

2023-04-11 Thread Paul Meems
merged by > cell value. > > QGIS uses gdal_polygonize.py under the hood to do this (via a simple GUI > interface), so if you work out the command line parameters you need, you > could run it from the command line. > > > HTH, > > Brent Wood > > > On Fri, 7 Apr 202

[gdal-dev] Convert grid to polygon shapefile

2023-04-07 Thread Paul Meems
Hello List, I'm working on a C# application that uses Golden Software Surfer to create maps, but I also need to export the data to a polygon shapefile. Unfortunately, Surfer creates a shapefile with shapes on top of each other instead of inside each other, and Golden Software support couldn't help

Re: [gdal-dev] Convex hull with holes

2023-03-10 Thread Paul Meems
ect(geometry),2.5,1), 2.5) from 'MyData'" \ "MyData-border.shp" "MyData.csv" Thanks, Paul Op ma 6 mrt 2023 om 15:12 schreef Paul Meems : > Thanks Jukka for finding this. > > It seems exactly what I'm looking for. > Later this week I'll give it a

Re: [gdal-dev] Convex hull with holes

2023-03-06 Thread Paul Meems
te holes > > ogr2ogr -f jml -dialect SQLite -sql "select > ST_ConcaveHull(ST_Collect(geometry),3,1) from concave" out.jml concave.jml > > and the result was > > > > For fine tuning you may want to add ST_Buffer into the SQL. > > -Jukka Rahkonen- > >

Re: [gdal-dev] Convex hull with holes

2023-03-03 Thread Paul Meems
come from a GPX device, make the application to record > indexes for both the points and the rings “ring1-point1, > ring1-point2---ring2-point1,ring2-point2” and construct the polygon ring by > ring. > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* gdal-dev *Puolesta *Paul

[gdal-dev] Convex hull with holes

2023-03-03 Thread Paul Meems
, such as in a donut-shaped field? The output can be json or shapefile, that doesn't matter. Thanks, Paul Meems ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-18 Thread Paul Meems
Thank you Even. Paul Op zo 18 dec. 2022 om 22:59 schreef Even Rouault : > Paul, > > I've queued your proposed fix in pull request > https://github.com/OSGeo/gdal/pull/6943 > > Even > Le 18/12/2022 à 22:18, Paul Meems a écrit : > > I made the brackets bold. That seem

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-18 Thread Paul Meems
I made the brackets bold. That seems to result in the * Only ( and ) are needed, no *. Regards, Paul Op zo 18 dec. 2022 18:39 schreef Andrew C Aitchison : > On Sun, 18 Dec 2022, Paul Meems wrote: > > > Thanks all for your suggestions. > > I did some more research and it se

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-18 Thread Paul Meems
, but if no impact could this be changed in the code? Thanks, Paul Meems Op za 17 dec. 2022 om 07:10 schreef : > I'm not using MSVC, so this is a guess: > Are you including 'windows.h' without 'NOMINMAX' being defined? > Then you will get macros which interfere with the limits code. &g

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Paul Meems
Thanks, Kurt for your response. I'm getting a very vague error message: E0040 expected an identifier. Regards, Paul Op za 17 dec. 2022 om 00:40 schreef Kurt Schwehr : > What exact error are you getting? > > On Fri, Dec 16, 2022 at 3:31 PM Paul Meems wrote: > >> Hello List,

[gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Paul Meems
for any advice. Paul Meems ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdal_translate options

2022-03-09 Thread Paul Meems
Hi List, We use GDAL3+ with MapWinGIS (C++ ActiveX control) and I'm working on making unit/functional tests for it. In one of our functions, we use GDALTranslate(). I'm creating the unit tests in C#: We pass the options as a string array to our C++ function, which expects SAFEARRAY* This one is

Re: [gdal-dev] Access violation OGRSpatialReference.importFromESRI() in GDAL304.dll

2022-02-04 Thread Paul Meems
[2]; > char* s = proj.GetBuffer(); > apszPrj[0] = s; > apszPrj[1] = NULL; > return sr->importFromWkt(apszPrj); > > Le 04/02/2022 à 16:47, Paul Meems a écrit : > > Hi List, > > We use GDAL v3+ in our Open Source mapping application MapWinGIS. > We build using

[gdal-dev] Access violation OGRSpatialReference.importFromESRI() in GDAL304.dll

2022-02-04 Thread Paul Meems
* s = proj.GetBuffer(); return sr->importFromWkt(); } We're currently upgrading from GDAL2+ to GDAL3+. Users report the crash in both versions. Most likely we're not calling the importFromESRI correctly. Please advice. Regards, Paul Meems https://github.com/MapWindow/Map

[gdal-dev] Converting WFS to shapefile

2021-06-18 Thread Paul Meems
GDAL: GDALClose(Perceel-aan.shp, this=018A70565430) GDAL: In GDALDestroy - unloading GDAL shared library. When I open the URL in the browser, I do get back JSON data. When I copy this and paste it in QGis I get the expected polygons. I'm not sure how I need to change my

Re: [gdal-dev] 'HOST_FILLORDER': macro redefinition

2019-08-02 Thread Paul Meems
Hi Even, I come across other macro redefinitions: - 'TIFF_INT64_T': macro redefinition (compiling source file Control\Map_Core.cpp) \gdal_sdk\v141\include\win32\tif_config.h 39 - 'TIFF_UINT64_T': macro redefinition (compiling source file Control\Map_Core.cpp)

Re: [gdal-dev] 'HOST_FILLORDER': macro redefinition

2019-07-16 Thread Paul Meems
Thanks Even for the clarification. We'll add the #undef. Regards, Paul Op ma 15 jul. 2019 om 12:24 schreef Even Rouault : > > If it were redefining to the same value, that would be one thing, but > since > > it is redefining to another value, it makes you wonder 1) why is it > coming > > in

[gdal-dev] 'HOST_FILLORDER': macro redefinition

2019-07-15 Thread Paul Meems
Hi List, We use GDAL with MapWinGIS, a C++ ActiveX control. We use the binaries, libs and header files from GisInternals.com We're currently in the process of getting rid of the last compiler warnings. One of them is 'HOST_FILLORDER': macro redefinition Our Map_Core.cpp includes tiff.h, which

Re: [gdal-dev] UK Ordnance Survey grid references

2019-04-29 Thread Paul Meems
Thanks Even for your quick response and your full example. You are right the coordinates are in EPSG:4326. I will use this example. Thanks, Paul Op za 27 apr. 2019 om 18:36 schreef Even Rouault : > > and drop the last 2 figures and round appropriately > > Hum, after reflexion, rounding is

[gdal-dev] UK Ordnance Survey grid references

2019-04-27 Thread Paul Meems
Hi, I'm not sure if this is the correct list, it might be I need to ask this on the proj4-list. Because I'm not a member of that list, I try here first. Can GDAL/OGR/Proj4 convert lat/long coordinates to Ordnance Survey grid references? I've been searching for an answer and found only this page:

Re: [gdal-dev] How to convert shapefile to geojson, using c# binding?

2019-01-10 Thread Paul Meems
Exception("Can't open GDAL dataset: " + input); var gdalOptions = new GDALVectorTranslateOptions(options); using (var newDs = Gdal.wrapper_GDALVectorTranslateDestName(output, ds, gdalOptions, null, null)) { if (newDs == null) throw new Exception(&qu

Re: [gdal-dev] Dissolve large amount of geometries

2018-07-16 Thread Paul Meems
I took the advice of Andreas and converted my code to using PostGIS. And the speed difference is enormous. The commands I've used: // Import shapefile into PostGIS: ogr2ogr -f PostgreSQL PG:"host=localhost user=..." fishnet.shp -gt unlimited -lco GEOMETRY_NAME=geom -a_srs "EPSG:28992" // Add

Re: [gdal-dev] Dissolve large amount of geometries

2018-07-16 Thread Paul Meems
Thanks, Jon for your suggestion of GeoPandas. Unfortunately, I'm not allowed to use new external dependencies. I tried doing all steps in an SQLite file instead of using several intermediate shapefiles. And I had some good results, so I created a script dissolving an increasingly higher number of

Re: [gdal-dev] Dissolve large amount of geometries

2018-06-29 Thread Paul Meems
with the same values. Regards, Paul Op do 28 jun. 2018 om 13:25 schreef Even Rouault : > On jeudi 28 juin 2018 12:53:27 CEST Paul Meems wrote: > > Hi list, > > > > I've been working on this for months (off and on) and still no satisfying > > outcome. > > Either the proce

[gdal-dev] Dissolve large amount of geometries

2018-06-28 Thread Paul Meems
Hi list, I've been working on this for months (off and on) and still no satisfying outcome. Either the process takes too long (multiple hours) or the result has invalid geometries. I want to try a different angle now. Instead of asking technical questions I want to explain what I try to do.

Re: [gdal-dev] Clip Raster with Polygon C#

2018-04-03 Thread Paul Meems
Here's a snippet of the code I use: using (var ds = GDAL.Open(input, Access.GA_ReadOnly)) { if (ds == null) { throw new Exception("Can't open GDAL dataset: " + input); } var options = new[] { "-of", "vrt", "-overwrite",

Re: [gdal-dev] gdalwarp from C#

2017-11-06 Thread Paul Meems
); } return true; } 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/

[gdal-dev] Using OpenEx() in C# with CSV file

2017-10-23 Thread Paul Meems
Hi List, I'm trying to read all fields in a CSV file. Using this command it is working: ogrinfo -ro -al -so test.csv -oo X_POSSIBLE_NAMES=Lon* -oo Y_POSSIBLE_NAMES=Lat* -oo KEEP_GEOM_COLUMNS=NO Now I need to do this in my C# application. Because I need to send -00 (open options) I cannot use

Re: [gdal-dev] Clipping shapefile with another produces invalid shapes

2017-10-13 Thread Paul Meems
I create a test dataset to reproduce this issue. I'm not capable of debugging GDAL myself. 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] Clipping shapefile with another produces invalid shapes

2017-10-13 Thread Paul Meems
resulting shapefile to my client and ask if his application can process the data. 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 MapWindow G

[gdal-dev] Clipping shapefile with another produces invalid shapes

2017-10-12 Thread Paul Meems
Hi list, I have a very large shapefile, with almost 700k shapes which I want to clip with a border shapefile (in red): https://ibb.co/gKth1G I'm using this command: ogr2ogr -clipsrc "border.shp" -overwrite -explodecollections -f "ESRI Shapefile" ogr_clipped.shp Fishnet.shp with GDAL 2.1.3,

Re: [gdal-dev] Improve clipping of shapefiles

2017-09-12 Thread Paul Meems
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 users. www.mapwindow.nl *

[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] 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 users

[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

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

2017-07-05 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

[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

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

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

[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

[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",

[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

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 <even.roua...@spatialys.com>: > On mardi 9 mai 2017 14:25:58 CEST Paul Meems wrote:

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

2017-05-09 Thread Paul Meems
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://lists.osgeo.org

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 moderator

[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

[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

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 MapWindow

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

2017-02-13 Thread Paul Meems
); } 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 manager, configurati

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

2017-01-17 Thread Paul Meems
t_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 *Paul

[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,

[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

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 MapWindow

[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

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

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

2016-12-13 Thread Paul Meems
it to be. 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

[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

[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

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] 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

[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

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

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

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

2015-12-28 Thread Paul Meems
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, configuration

[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 MapWindow GIS

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 manager

[gdal-dev] Librarified version of GdalBuildVrt

2015-11-22 Thread Paul Meems
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 MapWindow v5. Read

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've

[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, con

[gdal-dev] GDAL and C# bindings

2015-01-07 Thread Paul Meems
) 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.mapwindow.nl *The English

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

2015-01-07 Thread Paul Meems
*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/mapwindow

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

2014-12-29 Thread Paul Meems
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 Conference 2014

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

2014-12-21 Thread Paul Meems
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, configuration

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

2014-12-20 Thread Paul Meems
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.mapwindow.org Owner

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

2014-12-20 Thread Paul Meems
is not the 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

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

2014-10-24 Thread Paul Meems
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 *The English

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

2014-10-23 Thread Paul Meems
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 for Dutch speaking users

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
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.mapwindow.nl

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

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

2014-09-29 Thread Paul Meems
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 forum moderator

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 MapWindow.nl

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

2014-04-08 Thread Paul Meems
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, configuration

[gdal-dev] exportToProj4

2014-01-25 Thread Paul Meems
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 and forum moderator of MapWindow GIS. www.mapwindow.org Owner

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 Owner

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, configuration

[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

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

[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

[gdal-dev] Statically link ECW v5 with GDAL

2013-10-17 Thread Paul Meems
) referenced in function public: virtual enum CPLErr __thiscall ECWDataset::SetMetadataItem(char const *,char const *,char const *) (?SetMetadataItem@ECWDataset@@UAE?AW4CPLErr@@PBD00@Z)gdal.lib MapWinGIS Any help is much appreciated. Thanks, Paul *Paul Meems * Release manager, configuration

[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

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

2013-10-14 Thread Paul Meems
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 GDAL library? Thanks, Paul *Paul Meems * Release manager, configuration

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 and forum

[gdal-dev] Changed API for exportToGEOS

2013-10-08 Thread Paul Meems
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 and forum moderator

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, configuration

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

2013-10-04 Thread Paul Meems
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

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

  1   2   >