Coder Social home page Coder Social logo

osm2xmap's People

Contributors

dg0yt avatar matkoniecz avatar sembruk avatar sikmir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

osm2xmap's Issues

fatal error on encountering UTF-8 letters outside ASCII

Example of synthetic input, based on real causing data error:

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.4.0 (30408 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
 <bounds minlat="50.0530600" minlon="19.8482400" maxlat="50.0545200" maxlon="19.8524600"/>
 <node id="447039358" visible="true" version="1" changeset="1926268" timestamp="2009-07-24T16:08:01Z" user="sledzik1984" uid="58785" lat="50.0541494" lon="19.8488857"/>
 <way id="38042707" visible="true" version="4" changeset="31621045" timestamp="2015-05-31T22:38:07Z" user="dziabaducha" uid="775276">
  <nd ref="447039358"/>
  <nd ref="447039360"/>
  <tag k="highway" v="ą"/>
 </way>
</osm>

to compare, following input differing by replacing "ą" with "footway" is not causing crash:

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.4.0 (30408 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
 <bounds minlat="50.0530600" minlon="19.8482400" maxlat="50.0545200" maxlon="19.8524600"/>
 <node id="447039358" visible="true" version="1" changeset="1926268" timestamp="2009-07-24T16:08:01Z" user="sledzik1984" uid="58785" lat="50.0541494" lon="19.8488857"/>
 <way id="38042707" visible="true" version="4" changeset="31621045" timestamp="2015-05-31T22:38:07Z" user="dziabaducha" uid="775276">
  <nd ref="447039358"/>
  <nd ref="447039360"/>
  <tag k="highway" v="footway"/>
 </way>
</osm>

results in

./osm2xmap -i zoo.osm -s ISSOM_5000.omap 
Using files:
    * input OSM file       - zoo.osm
    * output XMAP file     - ./out.xmap
    * symbol set XMAP file - ISSOM_5000.omap
    * rules file           - ./rules.xml
Segmentation fault (core dumped)

Given that letters like żółćęśąźńŻÓŁĆĘŚĄŹŃ are appearing typically only in tag name that is not rendered in orienteering maps potential band-aid is to process input file and remove UTF-8 letters (obviously, proper solution would allow processing data also with letters beyond ASCII).

Note that such letters may also appear in user field.

include usage instructions

Some are visible after running the compiled program but even then what is "symbol set XMAP file" and how one may get it is unclear...

WIN32: Map rotated, grivatation not set?

I just tried to create a map of Charles Sturt University campus in Bathurst, NSW, Australia (T: -33.4255, B: -33.4357, L: 149.5545, R: 149.5686) and the map came out approx 120 degrees rotated. The calculated grivatation was 4 lines long. Looking at the code it looks like grivatation is never set / initialized.

Running 2.0 windows release on a 32 bit windows machine.

I tried this on a 64bit windows machine and it worked OK.

mention troubled cooperation with libroxml

I am not sure is it something fixable or just something that should be mentioned in installation instructions, but at this moment after successful installation of libroxml:

sudo make install
[ 22%] Built target roxml-dynamic
[ 45%] Built target roxml-static
[ 47%] Built target roxml-tool
[ 70%] Built target roxml_test
[ 72%] Built target roxml.mem
[ 75%] Built target roxml.perf
[ 91%] Built target roxml_test_tiny
[ 95%] Built target roxml.tiny.unitC
[100%] Built target roxml.unitC
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/libroxml.so.2
-- Up-to-date: /usr/local/lib/libroxml.so.2.3.0
-- Up-to-date: /usr/local/lib/libroxml.so
-- Up-to-date: /usr/local/lib/libroxml.a
-- Up-to-date: /usr/local/bin/roxml
-- Up-to-date: /usr/local/include/roxml.h

and compilation

make
Compiled coordsTransform.cpp successfully!
Compiled main.cpp successfully!
Compiled osm.cpp successfully!
Compiled rules.cpp successfully!
Compiled timer.cpp successfully!
Compiled xmap.cpp successfully!
Compiled xml.cpp successfully!
Linking complete!

it is not working:

./bin/osm2xmap: error while loading shared libraries: libroxml.so.2.3.0: cannot open shared object file: No such file or directory

Apparently libroxml and this program have cooperation problems.

Un Ubuntu 14.10 libroxml install itself in places not detected by this program. Copying compiled libroxml to /usr/lib allowed to pass cannot open shared object file error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.