Comments (8)
Thanks for finding the issue!
from libosmscout.
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.
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.
What about usage of some special index for really huge areas, similar to water.idx?
from libosmscout.
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.
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.
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.
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)
- Why so many build techs? HOT 2
- BoundingBox of imported database too big HOT 6
- What about make Qt 6 the default in CMakelists.txt? HOT 6
- Importing data into an existing database / merging databases HOT 8
- Bounding box and Speed HOT 2
- PlaneMapRenderer redraws map only on center change, not on zoom change HOT 1
- Rendering Maldives lags libosmscout and gives a lot font errors HOT 8
- Rendering way of type "_route" is masked by bridges HOT 6
- Implementing a tile server via libosmcout HOT 7
- Layer rendering issues with tile rendering HOT 1
- Lots of "Warning: Unknown type" HOT 18
- Question regarding RoutingDatabase::GetRouteNodes() HOT 2
- Way missing in MapService query HOT 4
- `MapService::LoadMissingTileData()` produces more data than expected HOT 7
- Missing forest near Swedish national park Muddus HOT 1
- Compilation issues for iOS and XCode 15 HOT 5
- Add libosmscout to Taginfo Projects HOT 2
- Searching for "Zbraslavice 255" in Czechia give no results, but "Zbraslavice Zbraslavice 255" yes
- Compilation error for libosmscout-client on MacOS HOT 3
- Build fails because Config.h isn't installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libosmscout.