Re: [gdal-dev] Reading JPEG2000 File

2019-02-05 Thread Kai Muehlbauer
Just tried gdal 2.4.0 and 2.3.3 from conda-forge. Both contain the line: JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library HTH, Kai Maybe Am 05.02.19 um 15:04 schrieb bhandari: > I tried GDAL 2.3 from conda forge. When I see the support ed formats with > gdalinfo --fo

Re: [gdal-dev] Reading JPEG2000 File

2019-02-05 Thread bhandari
I tried GDAL 2.3 from conda forge. When I see the support ed formats with gdalinfo --formats . It doesn't show JPEG2000. So how do I include support for JPEG2000? THANKS FOR YOUR RESPONSE -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html __

Re: [gdal-dev] Reading JPEG2000 File

2019-02-05 Thread Christoph Paulik
I installed an up-to date version of gdal from conda forge. But of course it all depends on which version you are currently using and what your exact error is. It is probably best if you go back to the package distributor. On Tue, 5 Feb 2019 at 13:34, bhandari wrote: > > Thank You Christoph but

Re: [gdal-dev] Reading JPEG2000 File

2019-02-05 Thread bhandari
Thank You Christoph but trying that link did not work for me. Could you please tell how did you solve the problem -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists

Re: [gdal-dev] ogr2ogr giving postgres source a specific ogr layer name

2019-02-05 Thread andrew terry
Apologies - i see -nln works both when using sql or just calling a table andrew terry wrote > Hi, > > Is it possible to give postgres -sql output a specific ogr layer name. > > As i understand it - In order to create DXF blocks, i need my postgres > table > (and therefore ogr layer name) to be

Re: [gdal-dev] Reading JPEG2000 File

2019-02-05 Thread Christoph Paulik
Hi, Depending on which version of gdal you are using from anaconda it could be a problem with the gdal packages as compiled by e.g. conda-forge. I had a similar problem in the past. See e.g. https://github.com/conda-forge/gdal-feedstock/issues/227 Cheers, Christoph On Tue, 5 Feb 2019 at 12:36,

[gdal-dev] ogr2ogr giving postgres source a specific ogr layer name

2019-02-05 Thread andrew terry
Hi, Is it possible to give postgres -sql output a specific ogr layer name. As i understand it - In order to create DXF blocks, i need my postgres table (and therefore ogr layer name) to be called blocks. Is there a way to force the ogr layer name being used. I tried -sql "SELECT * FROM (SELECT

Re: [gdal-dev] ogr2ogr dxf multilinestring as block

2019-02-05 Thread andrew terry
Hi Alan, I've found that by having a postgres table "blocks", that is an ogr layer and i can get a cad file out which has the block in it. Not sure whether i can call two tables with ogr2ogr but at worst i can run the command once to create a template dxf to use as a header for my entities to out

[gdal-dev] Reading JPEG2000 File

2019-02-05 Thread bhandari
Hello All I am trying to read JPEG2000 (sentinel) file with GDAL python bindings using anaconda python. I am not able to load JPEG2000 drivers. Could you please guide me how to install JPEG 2000 drivers for GDAL in anaconda environment. Thanking You -- Sent from: http://osgeo-org.1

Re: [gdal-dev] Oracle spatial with gdal

2019-02-05 Thread jratike80
Thomas Knudsen wrote > try user:password instead of user/password. > > (Also, you *may* need a port number, server:port/service_name) Hi, No need to try user:password, it won't work. Just use user/password as documented in https://gdal.org/drv_oci.html. What I have always used for making a conn

Re: [gdal-dev] ogr2ogr dxf extents

2019-02-05 Thread andrew terry
Thanks Alan, i was beginning to think that was the case but good to know i'm not missing anything. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailm

Re: [gdal-dev] ogr2ogr dxf multilinestring as block

2019-02-05 Thread andrew terry
Hi Alan, Thanks for replying. I'm creating from postgres as a source. I think i may have been confused by the "layer" references as i am getting CAD layers nicely with a Layer field from postgres but i'm suspecting now that there's some additional OGR Layer i need to reference? Is there a way to

Re: [gdal-dev] ogr2ogr dxf multilinestring as block

2019-02-05 Thread Alan Thomas
Hi Andrew, I'm assuming here that you are converting from another format to DXF. The writer ignores DXF_INLINE_BLOCKS; this configuration option is only used by the reader. To create blocks, you must place the features that will compose the block on the "blocks" layer. (Clearly the format that yo

Re: [gdal-dev] ogr2ogr dxf extents

2019-02-05 Thread Alan Thomas
Hi Andrew, No such option exists in GDAL's DXF driver. Extents are calculated according to the overall bounding envelope of the geometries. DXF files are not difficult to manipulate as plain text, so if you wish to modify the extent values (which are conveniently stored very close to the beginnin