Re: [OSM-dev] editing OSM-files with Java

2016-06-07 Thread mmd
Am 07.06.2016 um 21:58 schrieb Simon Poole:
> There is a longish thread somewhere on the German forum on the topic (no
> idea if JAVA was involved) where somebody did exactly that (create and
> prune "virtual ways" over areas in a prototype implementation). it would
> be 1-2 years back so might need some hunting to find.
> 


See:

http://wiki.openstreetmap.org/wiki/User:Maxbe/Routen_%C3%BCber_Fl%C3%A4chen
http://forum.openstreetmap.org/viewtopic.php?id=23129





___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] editing OSM-files with Java

2016-06-07 Thread Simon Poole
There is a longish thread somewhere on the German forum on the topic (no
idea if JAVA was involved) where somebody did exactly that (create and
prune "virtual ways" over areas in a prototype implementation). it would
be 1-2 years back so might need some hunting to find.

Simon


Am 07.06.2016 um 15:29 schrieb Jakob Miksch:
> Dear list members,
>
> I want to edit OSM-files with Java.
>
> I would like to add virtual ways to highway areas in order to allow a
> routing engine to compute routes through such areas. Example:
> https://www.dropbox.com/s/ptt1db77wnxv5kr/example.png?dl=0
>
> So, basically many new nodes and ways will be added and the boundary
> of the area will receive more nodes.
>
> For input and output both the ".osm" and ".osm.pbf" format should be
> supported.
>
> Moreover the solution should also work for big datasets (country,
> continent or even planet).
> Since just a small share of all features (highway areas make up a
> share of ~1% of all highway features) would be changed, it would
> probably make sense just to edit the OSM-file. Writing the whole
> OSM-data to another file might take more time than necessary.
>
> I already found the "osm4j" library which sounds quite promising
> (http://www.topobyte.de/projects/osm4j/).
>
> Do you think this plan sounds feasible, do you have any suggestions
> for the implementation?
>
> Best wishes,
> Jakob
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev




signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[OSM-dev] editing OSM-files with Java

2016-06-07 Thread Jakob Miksch

Dear list members,

I want to edit OSM-files with Java.

I would like to add virtual ways to highway areas in order to allow a 
routing engine to compute routes through such areas. Example: 
https://www.dropbox.com/s/ptt1db77wnxv5kr/example.png?dl=0


So, basically many new nodes and ways will be added and the boundary of 
the area will receive more nodes.


For input and output both the ".osm" and ".osm.pbf" format should be 
supported.


Moreover the solution should also work for big datasets (country, 
continent or even planet).
Since just a small share of all features (highway areas make up a share 
of ~1% of all highway features) would be changed, it would probably make 
sense just to edit the OSM-file. Writing the whole OSM-data to another 
file might take more time than necessary.


I already found the "osm4j" library which sounds quite promising 
(http://www.topobyte.de/projects/osm4j/).


Do you think this plan sounds feasible, do you have any suggestions for 
the implementation?


Best wishes,
Jakob

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev