Code Monkey home page Code Monkey logo

osm4j-xml's Introduction

Repository moved

This content of this repository has been merged into topobyte/osm4j, a single repository for all osm4j modules.

About

This is the osm4j module for reading and writing OSM data in the XML format.

Have a look at the main osm4j repository or the project homepage for information about the library osm4j in general.

License

This library is released under the terms of the GNU Lesser General Public License.

See LGPL.md and GPL.md for details.

osm4j-xml's People

Contributors

sebkur avatar

Stargazers

Nikita Seleznev avatar Nick Hallahan avatar

Watchers

James Cloos avatar  avatar

osm4j-xml's Issues

Decimal format problem when saving OSM Bounds

XmlWriter class has a localization issue.
While decimal format used for writing coordinates is fixed and uses decimal point, the bounds object is written just using String.format with "%f" flag, without providing explicit locale (and thus using a system default one).

In Russian (and some others) locales by default a comma is used as decimal separator. So once I save an OSM file I can not read it anymore as it has inconsistent delimiters: all coordinates use point but bounds use comma.

Please specify Locale.US (or any other locale with decimal point) explicitly in XmlWriter.templateBounds field to force it use consistent delimiters everywhere in a generated file.

By the way, it will also be nice to make OsmOutputStream implement AutoClosable to be able to work with try-with-resource blocks.

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.