[gdal-dev] What is the maximum number of fields a shapefile can contain?

2017-06-10 Thread Djordje Spasic
Hello everyone, When converting an .osm file to .shp files with ogr2ogr.exe, one needs to define a list of required fields in gdal-data\osmconf.ini file. I defined today a total of 338 field names, and the ogr2ogr.exe succeeded successfully in converting the .osm file to a .shp file containing a

Re: [gdal-dev] shortest path or networks in GDAL

2016-12-24 Thread Djordje Spasic
think this build is not available by GISInternals. Try our (NextGIS) own build of GDAL from here: http://nextgis.com/borsch/ Best regards, Dmitry 15.12.16 3:04, Djordje Spasic пишет: I am wondering if it is possible to perform the shortest path or network analysis in Windows version of

[gdal-dev] shortest path or networks in GDAL

2016-12-14 Thread Djordje Spasic
I am wondering if it is possible to perform the shortest path or network analysis in Windows version of GDAL? I googled and found gnmanalyse page on GDAL website, which seems to be able to do that: http://www.gdal.org/gnmanalyse.html But is this gnmanalyse functionality available only through GD

[gdal-dev] Why are fields required in osmconf.ini file?

2016-12-03 Thread Djordje Spasic
which already exist in the .osm file, be extracted? Thank you for the reply. Kind regards, Djordje Spasic ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] osm_id vs osm_way_id?

2016-12-02 Thread Djordje Spasic
Hi Jukka, Thank you again for the explanation and information about GDAL history!! > If I understand right you consider that instead of having now in the > multipolygon layer relation_id as osm_id and way_id as osm_way_id it would be > better to have way_id as osm_id and relation_id as osm_rel

[gdal-dev] laundering of field's names in GDAL

2016-11-27 Thread Djordje Spasic
sort of a bug? Thank you for the reply. Kind regards, Djordje Spasic ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] identifying the fields from the .osm file

2016-11-19 Thread Djordje Spasic
stall osgeo4w.Yes you can set the osmconf.ini or directly use the goal ogr api to write the output file. On 19 Nov 2016 18:00, "Djordje Spasic" wrote: Thank you for the quick reply Etienne! I am stuck with ogr2ogr.exe, or GDAL C# libraries. I can not use QGIS or other applications. Indeed Ev

[gdal-dev] identifying the fields from the .osm file

2016-11-18 Thread Djordje Spasic
During the last couple of days, both Jukka and Even helped me with some .osm file issues. And I am grateful on that. I would like to ask one more question, if that's ok: Is it possible to open an .osm file through ogr2ogr.exe and somehow read all the fields (keys) used in that .osm file? The fin

Re: [gdal-dev] Why are fields required in osmconf.ini file?

2016-11-18 Thread Djordje Spasic
Thank you for the useful reply Jukka! The command you gave me: ogr2ogr -f PostgreSQL "PG:dbname=osm" test.pbf -lco COLUMN_TYPES=all_tags=hstore does the same thing as "all_tags=yes" in the osmconf.ini file: # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive all_ta

Re: [gdal-dev] How to replace an osm key?

2016-11-12 Thread Djordje Spasic
Thank you for the reply Jukka. Neither "building:levels" nor "height" fields were located in osmconf.ini under the "[multipolygons]". I have just added them as you suggested, and now the previously mentioned command creates the .shp file without raising an error.I tried the initial: -dialect sq

Re: [gdal-dev] How to replace an osm key?

2016-11-11 Thread Djordje Spasic
Hi Jukka, I have just tried to rename the fields with SQL. Here is the syntax: "C:\gdal\ogr2ogr.exe" --config OSM_USE_CUSTOM_INDEXING NO -skipfailures -f "ESRI Shapefile" -dialect sqlite -sql "select geometry, building as bldg, 'building:levels' as bldg_level, height as height from multipolygon

Re: [gdal-dev] How to replace an osm key?

2016-11-11 Thread Djordje Spasic
e that by default it is selected only for multipolygons. However, I suppose that in the native OSM data the building tag is sometimes used also on points and relations (other_relations for GDAL). I also aimed at a general answer that could be useful for all tags and layers in OSM data. -Jukka Rah

Re: [gdal-dev] How to replace an osm key?

2016-11-11 Thread Djordje Spasic
layers in OSM data.   -Jukka Rahkonen-   Lähettäjä: Djordje Spasic [mailto:issworld2...@yahoo.com] Lähetetty: 11. marraskuuta 2016 16:38 Vastaanottaja: Rahkonen Jukka (MML) ; gdal-dev@lists.osgeo.org Aihe: Re: [gdal-dev] How to replace an osm key?   Thank you for the reply Jukka.   > and

Re: [gdal-dev] Reading the points from shp file

2016-01-11 Thread Djordje Spasic
Kohles, Eem...@jasonkohles.come =head1 COPYRIGHT AND LICENSE Copyright 2002,2003 by Jason Kohles This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut On 1/11/2016 7:54 AM, gdal-dev-requ...@lists.osgeo.org wrote: > Date: Mon, 1

Re: [gdal-dev] Reading the points from shp file

2016-01-11 Thread Djordje Spasic
on to help, though. Kind regards, Djordje Spasic From: Mike Flannigan To: gdal-dev@lists.osgeo.org Cc: issworld2...@yahoo.com Sent: Monday, January 11, 2016 3:11 AM Subject: Re: [gdal-dev] Reading the points from shp file I can't help with the ironpython problem you are having, but

[gdal-dev] load the file to a gdal data set

2015-11-15 Thread Djordje Spasic
A_ReadOnly dataSet = gdalcsharp.Gdal.Open("c:/gdal/elevations.asc", readOnlyAccess) But at the last line, an exception arise: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. What is the problem? Am I defining the Access incorrectly?Thank you in advance.

[gdal-dev] using gdal on ironpython

2015-11-12 Thread Djordje Spasic
" functionalities. Are they available through gdal_csharp.dll? I would be very grateful for any help. Thank you in advance, Kind regards, Djordje Spasic ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] using gdal on ironpython 2.7

2015-10-27 Thread Djordje Spasic
Hello to GDAL community, Lately I have been trying to use the SRTM 3 arc second elevation data in a form of ASCII grid (.asc file) downloaded freely from opentopography.org. The problem is that, decimal degrees for .asc files downloaded from opentopography.org are unprojected. I have been told