Re: [gdal-dev] Call for discussion on RFC 46: GDAL/OGR unification

2014-05-15 Thread Frank Warmerdam
Even, I have (finally) looked over the RFC and I'm super pleased. I couldn't find anything I wanted to argue against, and it all looks excellent to me though I could imagine some some bumps in real world use. Feel free to call for a motion when you are ready. Best regards, Frank On Thu, May

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Etienne Tourigny
You might be able to gzip compress the file GDAL can read gzip files transparently, but I am not sure that the csv reading code in GDAL works with compressed files. On Thu, May 15, 2014 at 9:00 AM, Yann Chemin wrote: > Hi Even, > > I would be interested to include it. But I see that the 1Mb >

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Peter Baumann
I've been talking to OGP folks, and they were not really interested - BTW, also not in our time coordinate reference systems; Time CRSs are being addressed within OGC, therefore: the OGC resolver serves space and (soon) time, and spatial requests will be forwarded to the EPSG service. On inclu

Re: [gdal-dev] OSM driver to create separate tables for tags

2014-05-15 Thread Jukka Rahkonen
Andre Joost nurfuerspam.de> writes: > > But import time does not matter for me , as it is done only once. I was > rather thinking about rendering time. From the postgis database, I can > select a column "network" and style my cycle paths according to the > values "icn","ncn","rcn","lcn". Pret

[gdal-dev] OGRLineString Project

2014-05-15 Thread Ochs, Elke ERDC-RDE-CRREL-NH
Hello, The class reference for OGRLineString says Project is available at OGR 1.11.0, GEOS >= 3.2.0. I'm using Python 2.7, OGR 1.11.0, GEOS 3.4.2, but can't locate the Project method. Is it really in 1.11.0? Someone smarter than I said it seems to be missing from the SWIG interface (hope I s

Re: [gdal-dev] How to map Int32 or Float32 GTiff to color map?

2014-05-15 Thread Stephen Woodbridge
Trent - thank you for your idea. That was another idea that I was thinking about doing but your recipe makes it much clearer on how to do it. Even - I tried the gdaldem method and after making the color mapping table it gave me very good results. Great feedback and suggestions! I think I'm ab

Re: [gdal-dev] How to map Int32 or Float32 GTiff to color map?

2014-05-15 Thread Hare, Trent
Steve, You can think of this very much *as a hack* but I had some success. I was also testing how to colorize a DEM (or 32bit floating point image) outside of gdaldem. You would need a script to configure the "lut" line for each file min/max range though. It does seem to work and you can convert

Re: [gdal-dev] How to map Int32 or Float32 GTiff to color map?

2014-05-15 Thread Stephen Woodbridge
On 5/15/2014 1:56 PM, Even Rouault wrote: Le jeudi 15 mai 2014 16:25:12, Stephen Woodbridge a écrit : Hi all, I'm trying to create a VRT file for a GTiff that is Int32 or Float32 to add a ColorTable but I seem to be missing a key piece of information. How are the pixel values mapped to the colo

Re: [gdal-dev] File geodatabase write lock using C# bindings

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 17:27:50, Eddie Stathopoulos a écrit : > Hello all, I am attempting to create a C# WCF service to convert GeoJSON -> > other formats. File Geodatabase is desired. I am using the latest C# GDAL > bindings and the driver is being recognized and loaded, but it seems I'm > bumping

Re: [gdal-dev] Call for discussion on RFC 46: GDAL/OGR unification

2014-05-15 Thread Even Rouault
Le jeudi 08 mai 2014 00:13:22, Even Rouault a écrit : > Hi, > > This is a call for discussion on "RFC 46: GDAL/OGR unification" > > http://trac.osgeo.org/gdal/wiki/rfc46_gdal_ogr_unification > No reaction : no interest or no time to review yet ? Or should I move that forward ? But I'd prefer

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Hare, Trent
No issues with distribution of IAU codes. Anything we or I release (code or otherwise) will have a "public domain" license as in normal as per US government policy. Thus it is free for use by anyone for any purpose without restriction under copyright law. If "GDAL" requires a more normal license it

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 16:56:26, Andre Joost a écrit : > Am 14.05.2014 12:53, schrieb Even Rouault: > > Regarding PROJ.4 'espg' and PostGIS spatial_ref_sys.sql files, I've also > > added the list of SRS that are GEOCCS (GeoCentric) and COMPD_CS > > (Compound Horizontal + Vertical). > > > > Please le

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 14:00:33, Yann Chemin a écrit : > Hi Even, > > I would be interested to include it. But I see that the 1Mb > uncompressed text is an issue. > > If it was OK for the additional Mb in the source code, > what would be the place to look into gdal code to create the patch needed?

Re: [gdal-dev] ogr2ogr with OSM data error Too many tags in relation

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 16:29:52, G. Allegri a écrit : > I'm trying to use the OGR OSM driver to convert an .osm file to sqlite > (spatialite) > Running: > > ogr2ogr -f SQlite myosm.sqlite myosm.osm -dsco SPATIALITE=YES > > I obtain: > > ERROR 1: Too many tags in relation 365331 > ERROR 1: Too many

Re: [gdal-dev] How to map Int32 or Float32 GTiff to color map?

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 16:25:12, Stephen Woodbridge a écrit : > Hi all, > > I'm trying to create a VRT file for a GTiff that is Int32 or Float32 to > add a ColorTable but I seem to be missing a key piece of information. > How are the pixel values mapped to the color table entries? via the > histogra

Re: [gdal-dev] Typo in geopackage driver page

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 14:58:56, Jukka Rahkonen a écrit : > Hi, > > Nice to see the spatial index support in geopackages. BTW. there is a tiny > typo on the driver page http://www.gdal.org/ogr/drv_geopackage.html: > > SPATIAL_INDEX: (GDAL <=2.0) Fixed thanks > > -Jukka Rahkonen- > > ___

Re: [gdal-dev] OGR 1.11 upgrade -> Geometry gone after layer.SetFeature() (MSSQL)

2014-05-15 Thread Even Rouault
Le jeudi 15 mai 2014 14:01:58, Niels Kjøller Hansen a écrit : > Hi Even, > > Thank you for responding so fast. I am not sure, however, how to use > ogr2ogr and ogrinfo to further diagnose my problem. Well, "ogrinfo the_syntax_to_open_a_mssql_db -al" and you'll see if there are geometries in it,

[gdal-dev] Difficulty finding all parts of shapefile polygon using Python and osgeo/ogr

2014-05-15 Thread Bruce Raup
Hello, I have a Python script that reads a shapefile, converts holes in polygons to top-level polygons, and writes a new polygon. The new top-level polygons inherit attributes from their parents, with optional modifications of specific attributes. For a simple test shapefile, the output of shpdu

[gdal-dev] File geodatabase write lock using C# bindings

2014-05-15 Thread Eddie Stathopoulos
Hello all, I am attempting to create a C# WCF service to convert GeoJSON -> other formats. File Geodatabase is desired. I am using the latest C# GDAL bindings and the driver is being recognized and loaded, but it seems I'm bumping into a write lock? I receive an AccessViolationException (Attemp

Re: [gdal-dev] GDAL_DRIVER_PATH dll hell

2014-05-15 Thread Andre Joost
Am 15.05.2014 12:07, schrieb Dmitriy Baryshnikov: I found out that another program used the gdal 1.8 was installed on that PC. And this program create env variable GDAL_DRIVER_PATH which pointed on some non standard driver linked with gdal 1.8 I think some version checking needed or something

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Andre Joost
Am 14.05.2014 12:53, schrieb Even Rouault: Regarding PROJ.4 'espg' and PostGIS spatial_ref_sys.sql files, I've also added the list of SRS that are GEOCCS (GeoCentric) and COMPD_CS (Compound Horizontal + Vertical). Please let me know if you see issues. The GEOCGS will likely cause a lot of c

Re: [gdal-dev] OSM driver to create separate tables for tags

2014-05-15 Thread Andre Joost
Am 14.05.2014 23:56, schrieb Jukka Rahkonen: Read the driver manual http://www.gdal.org/ogr/drv_osm.html Multilinestrings are mostly route relations. Line members of these relations go also into line layer. Ok, I missed that one. I do not see any reason why it should be much if any slower

[gdal-dev] ogr2ogr with OSM data error Too many tags in relation

2014-05-15 Thread G. Allegri
I'm trying to use the OGR OSM driver to convert an .osm file to sqlite (spatialite) Running: ogr2ogr -f SQlite myosm.sqlite myosm.osm -dsco SPATIALITE=YES I obtain: ERROR 1: Too many tags in relation 365331 ERROR 1: Too many tags in relation 365331 ERROR 1: Too many tags in relation 365331 ERROR

[gdal-dev] How to map Int32 or Float32 GTiff to color map?

2014-05-15 Thread Stephen Woodbridge
Hi all, I'm trying to create a VRT file for a GTiff that is Int32 or Float32 to add a ColorTable but I seem to be missing a key piece of information. How are the pixel values mapped to the color table entries? via the histogram? My GTiff has noData=-32767 and good values the range from say -

[gdal-dev] Typo in geopackage driver page

2014-05-15 Thread Jukka Rahkonen
Hi, Nice to see the spatial index support in geopackages. BTW. there is a tiny typo on the driver page http://www.gdal.org/ogr/drv_geopackage.html: SPATIAL_INDEX: (GDAL <=2.0) -Jukka Rahkonen- ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://

Re: [gdal-dev] OGR 1.11 upgrade -> Geometry gone after layer.SetFeature() (MSSQL)

2014-05-15 Thread Niels Kjøller Hansen
Hi Even, Thank you for responding so fast. I am not sure, however, how to use ogr2ogr and ogrinfo to further diagnose my problem. I have tried stepping through batch file, where the Python script is a part.. Ogr2ogr loads the file into dbo.table_name as it should (although with wrong character s

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Yann Chemin
Hi Even, I would be interested to include it. But I see that the 1Mb uncompressed text is an issue. If it was OK for the additional Mb in the source code, what would be the place to look into gdal code to create the patch needed? Thanks, Yann PS: did not copy other lists as I am not a member, r

Re: [gdal-dev] Update of EPSG database to v8.4

2014-05-15 Thread Even Rouault
Selon Yann Chemin : > Hi, > > is there planetary datum support in this new version (i.e. Moon 2000, or > etc.)? No, I don't think that the EPSG folks are interested in other planets yet ;-) But Frank mentionned some time ago ( http://osgeo-org.1560.x6.nabble.com/IAU-2000-Coordinate-System-Diction

Re: [gdal-dev] GDAL_DRIVER_PATH dll hell

2014-05-15 Thread Even Rouault
Selon Dmitriy Baryshnikov : > Hi, > > Yesterday I faced interesting problem on Win7 64 bit. > My program uses last gdal version 1.12. During start the error message > popuped in dialog that gdal v. 1.8 was not find and application closed. > I checked with dependency walker what were was no gdal 1.

Re: [gdal-dev] OGR 1.11 upgrade -> Geometry gone after layer.SetFeature() (MSSQL)

2014-05-15 Thread Even Rouault
Niels, you could use ogr2ogr and ogrinfo to check where the issue appears in your processing. Even > Hello all > > I have been running a python script daily, which takes a table from a > MSSQL database, identifies which fields are strings, and does some > character set fixing (utf8 to latin1) >

[gdal-dev] OGR 1.11 upgrade -> Geometry gone after layer.SetFeature() (MSSQL)

2014-05-15 Thread Niels Kjøller Hansen
Hello all I have been running a python script daily, which takes a table from a MSSQL database, identifies which fields are strings, and does some character set fixing (utf8 to latin1) The trouble is, that after an upgrade to GDAL/OGR 1.11, the table ends up with an empty geometry column. When I

[gdal-dev] GDAL_DRIVER_PATH dll hell

2014-05-15 Thread Dmitriy Baryshnikov
Hi, Yesterday I faced interesting problem on Win7 64 bit. My program uses last gdal version 1.12. During start the error message popuped in dialog that gdal v. 1.8 was not find and application closed. I checked with dependency walker what were was no gdal 1.8 dependency in application and all