Re: [gdal-dev] How to convert GeoJson to EsriJson

2020-01-21 Thread Mateusz Loskot
Well, the driver says no and I'm not aware of any workarounds to make it say yes or make GeoJSON driver output yhr ESRIJSON. GDAL 2.3 extracted read-only ESRIJSON driver from read-write GeoJSON driver. Mateusz Loskot, mate...@loskot.net (Sent from mobile, may suffer from top-posting) On Tue, 21

Re: [gdal-dev] How to convert GeoJson to EsriJson

2020-01-21 Thread Lucas Caixeta Lucas GT4W
Thank you Mateus!! you asnwer was very enlightening. So, problaby it is not possible to do this parse right? is there a way to get a esri type geojson? Best regards. Mateusz Loskot escreveu no dia terça, 21/01/2020 à(s) 18:37: > On Tue, 21 Jan 2020 at 21:29, Lucas Caixeta Lucas GT4W < > lucasc

Re: [gdal-dev] How to convert GeoJson to EsriJson

2020-01-21 Thread Mateusz Loskot
On Tue, 21 Jan 2020 at 21:29, Lucas Caixeta Lucas GT4W < lucascaixeta.g...@gmail.com> wrote: > > I tried to convert geojson to esrijson either but got an error > this message, ESRIJSON driver does not support data source creation. > > -- > $ ogr2ogr -f ESRIJSON file_output.json cities.json >

[gdal-dev] How to convert GeoJson to EsriJson

2020-01-21 Thread Lucas Caixeta Lucas GT4W
Hi, good evening! I'm new on the use ofo org2org, trying to learn the library. I couldn't find any info about it on google so I decide to ask it here. I'm trying to convert a shape file into a esri json. I was able to convert the shapefile to geojson, but was not able to convert the same file to e

Re: [gdal-dev] Tiff file with CMYK colors that appears much worse with GDAL than in Windows Photo Viewer

2020-01-21 Thread Lars Schylberg
Hi, When I have more advanced needs in tiff-processing I usally use ImageMagick "convert" command. It has more options to do advanced things with images. Convert will complain that it doesn't understand the geotiff tags, but that is something You could ignore, it is just warnings. Use the

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

2020-01-21 Thread Even Rouault
On mardi 21 janvier 2020 17:09:07 CET Even Rouault wrote: > Brian, > > > I am trying to go from (this is the .prj from an ESRI shapefile) > > PROJCS["USA_Contiguous_Albers_Equal_Area_Conic_USGS_version",GEOGCS["GCS_N > > or > > th_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",63

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

2020-01-21 Thread Even Rouault
Brian, > I am trying to go from (this is the .prj from an ESRI shapefile) > PROJCS["USA_Contiguous_Albers_Equal_Area_Conic_USGS_version",GEOGCS["GCS_Nor > th_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137. > 0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453

[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) PROJCS["USA_Contiguous_Albers_Equal_Area_Conic_USGS_version",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJE

[gdal-dev] Tiff file with CMYK colors that appears much worse with GDAL than in Windows Photo Viewer

2020-01-21 Thread Mikael Rittri
Hello, list. I need some advice. We have a customer with some Tiff files with CMYK colors. It is a rasterized vector map, not an orthophoto, so the assigned colors are somewhat arbitrary, of course. The file colors look pleasant enough when opened with Windows Photo Viewer, and these are the

[gdal-dev] Making OGR raise exceptions in Python

2020-01-21 Thread Matsamentet
Hi! I'm developing a Python script which uses both gdal and ogr. Since exceptions are not raised by default, I have added to my script *gdal.UseExceptions() ogr.UseExceptions()* *raster_ds = gdal.Open('c:/nonexistant.tif')* raises an exception as expected. *vector_ds = ogr.Open('c:/nonexistan