Re: [gdal-dev] gdal_retile JAVA bindings

2021-04-21 Thread jratike80
Hi, The gdal_retile.py utility is a Python script and as far as I know nobody has ported it into Java so far. Even the GeoServer documents advice to use it as it stands https://docs.geoserver.org/stable/en/user/tutorials/imagepyramid/imagepyramid.html. It is about 1000 lines of Python code https:/

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
Still, it seems like there's no support to get WKT2 from the exportToPretty() function. Is this correct? $ python -c "from osgeo import osr; srs = osr.SpatialReference(); srs.ImportFromEPSG(4326); print(srs.ExportToWkt(['FORMAT=WKT2']))" GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 19

[gdal-dev] gdal_retile JAVA bindings

2021-04-21 Thread Lorenzo Di Giacomo
Hi, i can't find the gdal_retile porting on java, is there a class / method? If not, which is the best workaround? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Andrew Bell
On Wed, Apr 21, 2021 at 10:49 AM Even Rouault wrote: > Andrew, > > Le 21/04/2021 à 16:31, Andrew Bell a écrit : > > exportToPrettyWkt() takes an argument called simplify. If it's set, > > the FORMAT option is set to WKT1_SIMPLE before a call is made to > > exportToWkt(). But it seems that WKT1_SI

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Michael Smith
A 3d srs would have to be demoted to 2d first before exporting to wkt1, correct? sr.SetFromUserInput("epsg:4979") sr.ExportToWkt(['FORMAT=WKT1_SIMPLE']) RuntimeError: PROJ: proj_as_wkt: WKT1 does not support Geographic 3D CRS. Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GI

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
that contains a DATUM[] node I meant a ENSEMBLE[] node -- http://www.spatialys.com My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
Andrew, Le 21/04/2021 à 16:31, Andrew Bell a écrit : exportToPrettyWkt() takes an argument called simplify. If it's set, the FORMAT option is set to WKT1_SIMPLE before a call is made to exportToWkt(). But it seems that WKT1_SIMPLE is also the default format value for exportToWkt(). Perhaps I'm

[gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Andrew Bell
exportToPrettyWkt() takes an argument called simplify. If it's set, the FORMAT option is set to WKT1_SIMPLE before a call is made to exportToWkt(). But it seems that WKT1_SIMPLE is also the default format value for exportToWkt(). Perhaps I'm misreading, but it seems like the simplify argument is po

Re: [gdal-dev] GDAL question

2021-04-21 Thread jratike80
Hi, Please check your GeoJSON before fighting with Python. "Name" placed into here {"type": "FeatureCollection", "Name": "testName", will probably be just skipped. If you used lower case "name" {"type": "FeatureCollection", "name": "testName", then "testName would be used as a name of the layer

Re: [gdal-dev] gdal.open fails from C#

2021-04-21 Thread Paul Harwood
If I parse your email correctly: - You CAN open that uri in the gdalinfo bash command - you CANNOT open it in Python - You CANNOT open it in c# Is this correct? That, together with your trace that suggests that the C# bindings (and therefore presumably also the Python bindings) are doing their j

Re: [gdal-dev] gdal-dev Digest, Vol 203, Issue 38

2021-04-21 Thread Peter P
> > > Send gdal-dev mailing list submissions to > gdal-dev@lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/gdal-dev > or, via email, send a message with subject or body 'help' to > gdal-dev-requ...@list

Re: [gdal-dev] GDAL question

2021-04-21 Thread Peter P
PostgreSQL "table1" columns: Name Data Type Id integer Name text TestGeometry geometry Example geojson - this will be one row in table: jsonVariable = {"type": "FeatureCollection", "Name": "testName", "features": [{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[26.54296875,64

Re: [gdal-dev] gdal-dev Digest, Vol 203, Issue 38

2021-04-21 Thread Ari Jolma
Elena, It seems that the 2 x 2 image which GDAL first fetches to get information about the data (BBOX=101082,4289059,101102,4289079) triggers an error on the server. I don't know at this point if that is an error on the server side (wrong extent) or on the client side (gdal). Best regards,

Re: [gdal-dev] GDAL question

2021-04-21 Thread Peter P
PostgreSQL "table1" columns: Name Data Type Id integer Name text TestGeometry geometry Example geojson - this will be one row in table: jsonVariable = {"type": "FeatureCollection", "Name": "testName", "features": [{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[26.54296875,64