GithubHelp home page GithubHelp logo

Comments (8)

nnhubbard avatar nnhubbard commented on May 26, 2024

Thanks for finding the issue!

from libosmscout.

Framstag avatar Framstag commented on May 26, 2024

Hi Karry, can you name the concrete OSM object that caused the problem? I haven't done the import yet myself but would propose that the imports checks for such cases and just drops (with an error log) the corresponding object. The assert should only make sure that things are still cleanly detected and handled if the importer fails to detect the problem,

Note that I recently added a limit for merged ways since drawing contour labels for too long ways created performance issues during rendering.

from libosmscout.

Karry avatar Karry commented on May 26, 2024

Problematic is relation that defines UK coastline (outer ring): www.openstreetmap.org/relation/6038068 (one way in this relation: www.openstreetmap.org/way/415818132)

I know that long ways (contour lines) are performance problem. This is the reason why I am using -maxwaynodes 256 for Srtm2Osm tool. State or island borders is another example... As I understand correctly, outer rings have to be written as one way now. Right? Question is if ignoring such objects is good idea :-) I would like to see some nice hack for such huge areas...

from libosmscout.

Karry avatar Karry commented on May 26, 2024

What about usage of some special index for really huge areas, similar to water.idx?

from libosmscout.

Framstag avatar Framstag commented on May 26, 2024

Yes, a variant of the algorithm implemented for the water.idx could (and in my opinion should be used) for all "big" areas based on long, long ways, especially as part of big, big relations. Examples are:

  • Boundaries
  • Coastlines (done by water index), defining ground and sea areas
  • post number regions

The water index covers the whole import region and devides it in cells without content (they could still have different types like land, see, unknown) and cells that contains lines. Cells with line sonly contain that part of the line that is contained by the cell up to its line borders.

The index is generated for multiple levels up to a certain resolution.

Since the index is not cheap the lines should cover the whole region. And the actual geographic coordinates of the lines will be lost (it is just enough resolution for correct drawing).

from libosmscout.

Framstag avatar Framstag commented on May 26, 2024

In now pushed code to the github repository that defines a MAX_NODES constant for FileWriter. Way merging, area mergin and relation composition check now against this constant and skip processing. For the wales import two relations were now skipped.

from libosmscout.

Framstag avatar Framstag commented on May 26, 2024

Note also, that coastlines are already evaluated in the water index. Individual coastlines are stored separately and the water index builds the full coastline in memory, thus not having above problem. So dropping relations defining coastlines and island is OK. However there are other relation where it is not.

from libosmscout.

nnhubbard avatar nnhubbard commented on May 26, 2024

I read somewhere that in a recent version you updated the database. With this fix and the current version, will my imports not be readable/useable with this new libosmscout update?

from libosmscout.

Related Issues (20)

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.