[gdal-dev] KML polygons with a label

2023-04-21 Thread paul.malm
I'm trying to export a table from PostgreSQL to a KML file, using: ogr2ogr -a_srs epsg:4326 -f "LIBKML" C:\Temp\kml\obst.kml PG:"dbname='aaa' host='localhost' port='5434' user='postgres' password='postgres'" "obstaclepolygon1" -progress The table (Polygons) has a column: OGR_STYLE=BRUSH(fc:#AABBC

Re: [gdal-dev] ogrinfo XML (AIXM)

2021-12-09 Thread paul.malm
Tried with the downloaded file: https://github.com/aixm/donlon/blob/master/EA_EADD_OBS_DS_AREA_2_3_4_FULL_20191205.xml And the result is: C:\>ogrinfo GMLAS:c:\Temp\eaddata\EA_EADD_OBS_DS_AREA_2_3_4_FULL_20191205.xml --debug on GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_BA

Re: [gdal-dev] ogrinfo XML (AIXM)

2021-12-09 Thread paul.malm
Hi, I turnd off the proxy and added -debug on. This is the result: ogrinfo GMLAS:c:\Temp\data\mydata.GML --debug on GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_BAG.dll using GDALRegister_BAG. GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_ECW_JP2ECW.dl

Re: [gdal-dev] ogrinfo XML (AIXM)

2021-12-09 Thread paul.malm
Is this the correct syntax: C:\>ogrinfo GMLAS:c:\Temp\data\Mydata.GML I get the error: ERROR 3: Cannot resolve http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd FAILURE: Unable to open datasource `GMLAS:c:\Temp\eaddata\EADdata.GML' with the following drivers. -> BAG -> JP2ECW -> FITS -> n

[gdal-dev] ogrinfo XML (AIXM)

2021-12-08 Thread paul.malm
Hi, I'm trying to read a XML (AIXM) file. But ogrinfo says it can't be read with either KML, KMZ or GML installed drivers (among other formats). Is there anything I must do, the GML, KML, KMZ drivers are there. I'm working in Windows 10. Kind Regards, Paul [1_LFV_svensk_96] Paul Malm

Re: [gdal-dev] Reading from PNG file in Java from using GDAL

2021-08-18 Thread paul.malm
Yes I have gt-epsg-hsql (version 20.2) -Ursprungligt meddelande- Från: Brad Hards Skickat: den 18 augusti 2021 07:52 Till: gdal-dev@lists.osgeo.org Kopia: Malm, Paul (Operations AIM) Ämne: Re: [gdal-dev] Reading from PNG file in Java from using GDAL Klicka bara p? l?nkar och ?ppna bila

[gdal-dev] Reading from PNG file in Java from using GDAL

2021-08-17 Thread paul.malm
I've used gdalwarp.exe to project a tif-file from EPSG:4326 to EPSG:32635 and storing it in the PNG-format: gdalwarp.exe -dstalpha -t_srs EPSG:32635 -s_srs EPSG:4326 -if GTiff -of PNG -et 0.125 -r cubicspline -co COMPRESS=LZW -co WORLDFILE=YES H:\somlos_8.tif H:\trans32635.png Then I try t

[gdal-dev] gdaldem color-relief -exact_color_entry results in RGB 000

2021-05-17 Thread paul.malm
Hi list, I've tried to use exact_color_entry on a DEM-tif file. gdaldem color-relief 55.tif colornr.cpt 55_colrel.tif -of GTiff -exact_color_entry -co COMPRESS=LZW -b 1 Resulting in a blank rastefile (0 0 0). I've picked (info) the colors in QGIS and there are a lot of pixels in the span of the c

Re: [gdal-dev] Gdal Java

2021-04-06 Thread paul.malm
ge/imageio.html https://docs.geoserver.org/stable/en/user/data/raster/gdal.html to work. -Jukka Rahkonen- paul.malm wrote > Hi, > further additional information. > > I'm using > Windows 11 64-bit with x64 based processor > PROCESSOR_ARCHITECTURE=AMD64 > PROCESSOR_IDENTIFI

Re: [gdal-dev] Shall I continue trying to get gdal java bindings to work?

2021-04-06 Thread paul.malm
When I copy ALL the dll-files in gdal\bin (geos.dll, geos_c.dll etc.) to my java-jre\bin folder (where I also copied the gdalalljni.dll) it seems to work. Couldn't this be added in the installation instructions some were? Kind regards, Paul Från: Malm, Paul (Operations AIM) Skickat: den 6 apri

[gdal-dev] Shall I continue trying to get gdal java bindings to work?

2021-04-06 Thread paul.malm
Hi, is it possible to get Gdal java bindings to work in Windows 10? If not to whom do I report the error? I've downloaded release-1928-x64-gdal-3-2-1-mapserver-7-6-2.zip and can't get gdalalljni.dll to load. I've tried to get help from here and from the them creating the zip -file. But without an

Re: [gdal-dev] Gdal Java

2021-03-31 Thread paul.malm
Hi, further additional information. I'm using Windows 11 64-bit with x64 based processor PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel PROCESSOR_LEVEL=6 The Java I'm using is: OpenJDK's 8u262-b1, x86 64bit JRE. /Paul Från: Malm, Paul (Oper

Re: [gdal-dev] Gdal Java

2021-03-31 Thread paul.malm
Hi, additional information. All DLL-files in Dependency Walker under the tree of GDALALLJNI.dll that are placed in C:\program files\openjdk\jdk-8.0.262.10-hotspot\jre\bin\ are marked with a red "frame" icon. /Paul Från: Malm, Paul (Operations AIM) Skickat: den 31 mars 2021 10:00 Till: 'Stefan Moe

Re: [gdal-dev] Gdal Java

2021-03-31 Thread paul.malm
Hi, I've installed dependency Walker 22_x64. I don't know how to use it, but when I load gdalalljni.dll I get the following errorcodes: Error: At least one required implicit or forwarded dependency was not found. Error: At least one module has an unresolved import due to a missing export function

[gdal-dev] Gdal Java

2021-03-29 Thread paul.malm
Hi stefan, I have not come any further... I have copied gdalalljni.dll to C:\Program Files\OpenJDK\jdk-8.0.262.10-hotspot\jre\bin And I have set the following environment variables: GDAL_DATA=C:\Program Files\Gdal_321\bin\gdal-data GDAL_DRIVER_PATH=C:\Program Files\Gdal_321\bin\gdal\plugins JAVA_H

Re: [gdal-dev] Gdal Java

2021-03-25 Thread paul.malm
Hi Stefan, Thanks for responding on my guestion for help! -I've downloaded release-1928-x64-gdal-3-2-1-mapserver-7-6-2.zip and unzipped it to C:\Program Files\Gdal_321. -Then I added to the system path: C:\Program Files\Gdal_321\bin\gdal\java and C:\Program Files\Gdal_321\bin. -Restarted the compu

[gdal-dev] Gdal Java

2021-03-23 Thread paul.malm
Hi list, is there someone out there who has succeeded in installing Gdal Javabindings in Windows? I've tried for some weeks now :( and I can't find very much information how to do it I Windows. gdalalljni.dll is not found for starters (Gdal 3.2.0) but it is there, as installed by the installatio

[gdal-dev] javabindings

2021-03-11 Thread paul.malm
Hi, I've tried to install java bindings for GDAL this whole week. But is seems impossible for me to manage that. I've read on internet a lot of discussions an tried solutions that other has suggested, but without success. I have Windows 10, Java 1.8.0 Eclipse 4.17.0 I installed gdal-302-1928-x64-

[gdal-dev] Javabindings

2021-03-11 Thread paul.malm
Hi, I've tried to install java bindings for GDAL this whole week. But is seems impossible for me to manage that. I've read on internet a lot of discussions an tried solutions that other has suggested, but without success. I have Windows 10, Java 1.8.0 Eclipse 4.17.0 I installed gdal-302-1928-x64-

[gdal-dev] gdaljni

2020-12-11 Thread paul.malm
Hi, This java command: Dataset ds = gdal.Open(txtInFilename.getText()); Generates: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Open__SWIG_1(Ljava/lang/String;)J at org.gdal.gdal.gdalJNI.Open__SWIG_1(Native Method) at org.gdal

Re: [gdal-dev] ogr2ogr PDF

2019-11-15 Thread paul.malm
rted: color (c); width (w); dash pattern (p). > > So why, you know, nobody has implemented it yet. Meanwhile you can do > something with dash pattern, or edit the PDF with some PDF editor. > > -Jukka Rahkonen- > > > paul.malm wrote >> Hi, >> I’m now setting attribut

Re: [gdal-dev] ogr2ogr PDF

2019-11-13 Thread paul.malm
Meanwhile you can do something with dash pattern, or edit the PDF with some PDF editor. -Jukka Rahkonen- paul.malm wrote > Hi, > I’m now setting attribute OGR_STYLE in my postGis db for a testlayer > (line) > I’m now setting attribute OGR_STYLE in my postgis db for a test layer > (LineSt

Re: [gdal-dev] ogr2ogr PDF

2019-11-13 Thread paul.malm
Hi, I’m now setting attribute OGR_STYLE in my postGis db for a testlayer (line) I’m now setting attribute OGR_STYLE in my postgis db for a test layer (LineString): … SET \"OGR_STYLE\"= 'PEN(c:#FF,id:ogr-pen-4,w:1px)' Does anyone know why the pen symbol (id) is ignored when exporting the PDF,

Re: [gdal-dev] ogr2ogr PDF

2019-11-11 Thread paul.malm
m into the database SELECT geometry, attribute, 'PEN(c:#FF,w:5px)' AS OGR_STYLE from roads; -Jukka Rahkonen- paul.malm wrote > Hi list, > I have a question on how to export a PDF file from PostGIS with a color on > the lines instead of the default black lines. I have s

Re: [gdal-dev] ogr2ogr PDF

2019-11-10 Thread paul.malm
Thanks Andreas, Yes, I would like to automate it. I have read the page you suggested but I don’t understand how to implement it with ogr2ogr. Kind regards, Paul Från: Andreas Neumann [mailto:a.neum...@carto.net] Skickat: den 11 november 2019 08:35 Till: Malm, Paul (Operations AIM) Kopia: gdal-dev

[gdal-dev] ogr2ogr PDF

2019-11-10 Thread paul.malm
Hi list, I have a question on how to export a PDF file from PostGIS with a color on the lines instead of the default black lines. I have searched on the internet but have not reached all the way... I have 2 tables that I would like to export into test.pdf (rivers and roads) ogr2ogr -f "PDF" c:\Te

Re: [gdal-dev] ogr2ogr for windows

2019-10-24 Thread paul.malm
;FAA" AeronavFAA -vector- (rov): Aeronav FAA It may be that you need to hire somebody to make you a special Windows build with the ESRI fgdb. I have managed to do that through this mailing list sometimes and at reasonable price. -Jukka Rahkonen- paul.malm wrote > Thanks, > I tried

Re: [gdal-dev] ogr2ogr for windows

2019-10-18 Thread paul.malm
Thanks, I tried that but nothing happens when I execute the installation file. I don’t get any connection And a empty list appears where I can add new URLs? Kind regards, Paul Från: Stephen Knox [mailto:stephenkno...@gmail.com] Skickat: den 17 oktober 2019 15:08 Till: Malm, Paul (Operations AIM)

[gdal-dev] ogr2ogr for windows

2019-10-17 Thread paul.malm
Hi List! I'm looking for ogr2ogr for Windows with "FileGDB" (R/W) and "aeronavFAA" included is there a place where I can download it? I've tried: C:\>pip install C\Downloads\GDAL-3.0.1-cp38-cp38-win_amd64.whl And get this error message: ERROR: GDAL-3.0.1-cp38-cp38-win_amd64.whl is not a supported

Re: [gdal-dev] ogr2ogr openstreetmap

2019-09-04 Thread paul.malm
s "1517114" > multilinestrings "9812" > multipolygons "3317706" > other_relations "12587" > > I used the default osmconf.ini file and Swedish data from last night. > > -Jukka Rahkonen- > > > > paul.malm wrote >> Hi, >> Whe

Re: [gdal-dev] ogr2ogr

2019-09-04 Thread paul.malm
Hi Lars, I get among others: WFS3 -vector- (ro): OGC WFS 3 client (Web Feature Service) HTF -vector- (rov): Hydrographic Transfer Vector AeronavFAA -vector- (rov): Aeronav FAA Geomedia -vector- (ro): Geomedia .mdb Kul att höra ifrån dig! /Paul Från: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.o

[gdal-dev] ogr2ogr shp

2019-09-04 Thread paul.malm
When I import a shape layer to a postgis db with ogr2ogr, the table-name only gets lower characters (railroads) even though the shapefile is named like RailRoads.shp. Is there a way to force the parser to use the same characters as the filename ___ gd

[gdal-dev] ogr2ogr openstreetmap

2019-09-04 Thread paul.malm
Hi, When I try to convert an open street map directory to a postgis data base I only get one layer(other_relations) with some lines and some points, far from everything. There are no error meassages. ogr2ogr-f "PostgreSQL" PG:"host= 127.0.0.1 user=postgres dbname=test password=postgres" c:\temp

[gdal-dev] ogr2ogr

2019-09-04 Thread paul.malm
Hi, I don't know if this is the correct forum. I would like to fonvert a aeronavFAA obstacle file to the Esri shape format. >From all the information I can find on internet I think this should be correct: C:\Program Files\GDAL>ogr2ogr -f "ESRI Shapefile" c:\temp\FAAdof13_ga C:\Downloads\FAA_DOF\1