[gdal-dev] Convert OGRGeometry* to pointer to derived geometry type

2021-08-13 Thread Brook Milligan
I would like to convert a pointer to OGRGeometry into a pointer to the appropriate derived type based upon the result of wkbFlatten(geometry->getGeometryType()). It used to be possible to do this with functions like geometry->toLineString(). However, it seems that those are all deleted with

Re: [gdal-dev] modify zvalue in database when inserted using zfield option

2021-08-13 Thread Donovan Cameron
Oh! Thank you! I'm thinking maybe I'll generate a trigger in the database to update the zvalue when the ELEVATION field is updated. On 2021-08-13 2:04 p.m., Jan Heckman wrote: Quite possibly in the Z-coordinate of your geometry column. You can check in pgadmin or psql (or another program like

Re: [gdal-dev] modify zvalue in database when inserted using zfield option

2021-08-13 Thread Jan Heckman
Quite possibly in the Z-coordinate of your geometry column. You can check in pgadmin or psql (or another program like omnidb) what the exact type of the postgis geometry in your table is. You should see something like geometry(LineStringZM,28992) what i.c. means a dutch projection of a linestring

[gdal-dev] modify zvalue in database when inserted using zfield option

2021-08-13 Thread Saulteau Don
I used ogr2ogr to append contours into a larger dataset. I opted for the zfield option using the ELEVATION field. I realized one of my contours has a bad value and need to modify it to match the other contours it is connected to. I can edit the attribute ELEVATION fine, but when I rerun a mesh

Re: [gdal-dev] HANA driver proposal

2021-08-13 Thread Even Rouault
Maxim, “I assume the driver would depend on the ODBC library, and would require users to build https://github.com/SAP/odbc-cpp-wrapper as the corresponding ODBC driver ?” The odbc-cpp-wrapper library is going to be used only during the compilation

Re: [gdal-dev] unicode support in GDAL

2021-08-13 Thread Claudiu Cochior via gdal-dev
Thanks for the advice, My string were in utf-8 but were not displaying well even with cpg file. Setting the encoding for the layer did the trick. Thanks From: Even Rouault Sent: Thursday, August 12, 2021 12:24 PM To: Claudiu Cochior ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] unicode

[gdal-dev] Crash during ChunkAndWarpImage in C++ API

2021-08-13 Thread Craig Delancy
When calling ChunkAndWarpImage I have an unhandled exception on the line pTransformArg = psInfo->pDstTransformArg; in gdaltransformer.cpp. Does anyone have any advice for where I should start debugging or what I may be doing wrong? My full function is as follows: bool WarpDataset(GDALDataset*