Re: A functioning Public Transport plugin

2020-11-21 Thread Jo
If the PT_Assistant routing_helper has to help you 'reassemble' the ways on
a turn-by-turn basis, it is indeed relatively slow. If however there are
already other routes that contain the way you start from and the way after
the gap, then it will propose this whole sequence of ways that's present in
that other route relation and that makes it very fast for fixing route
relations.

I realise that the other thing I'm working on, the splitting in subroute
relations is rather revolutionary and atm it's experimental at best. I
thought you had mentioned something similar on another mailing list. Anyway
coding it is harder than I expected, but the real difficulty will be in
doing a proposal and getting it accepted by the community. It's definitely
not the way we map bus routes at present.

I do think  it would be an advantage to fix 1 subroute relation when it
breaks and have all the superroutes it's a member of being fixed at once,
but working with all those lego-blocks of sub route relations might prove
to be more complex. Anyway, it's a way for me to get into learning Java,
doing actual programming, and it's also something I have been thinking
about since I started mapping public transport in my own region.

The reason why adding stops along an itinerary wasn't a priority up till
now is that I have first added all the stops with their identifiers (over a
course of about 2, 3 years). After that I had access to data of the Belgian
operators and I could auto-generate route relations that contained the
stops in the correct order. So adding the ways was the more time consuming
part there (and adding the stops and moving them to their actual
locations). Also adding stops alongside the itineraries is the one thing
the old public transport plugin was useful for.

Now, the next thing I should do is create something that allows me to do
'integration' based on GTFS (or DB dumps), to see if all the lines are
still represented by route_master relations and all the itineraries are
still represented by route relations. (By comparing the stop sequences in
the operators' data and OSM). I'm doing that with Python and Pandas, but it
still needs more work.

Jo

On Sat, Nov 21, 2020 at 8:54 PM  wrote:

> > We are also working on a renderer that gives something like a metro map
> diagram
>
> OMG yes. I was looking for something like this. Problem is what you showed
> doesn't show numbers nor overlay the routes over a roadmap, but it is good
> start. I wanted to create a map like this?
>
>
> https://www.ipswichbuses.co.uk/wp-content/uploads/Ipswich_Buses_Network_Map_WEB.pdf
>
> (Just search "Ipswich Buses Map" if this link stops working)
>
> The problem with this map is that it only shows buses from the "Ipswich
> Buses" company, however there are multiple companies operating buses in
> Ipswich.
>
> > With the latest version of the plugin it will ask you whether you want
> to remove oneway roads and split roundabout ways from the route relation.
> If there are forward_stop/ backward_stop or _platform in the route relation
> (as there were in Talinn where I was testing this) then it will also keep
> all the forward or all the backward versions in each variant and rename the
> roles.
>
> Is this taking about the JAR file you sent me or the latest release?
>
> > If you choose to sort the stops in the route relation on a route
> relation that doesn't have the public_transport:version = 2 tag, it will
> propose to duplicate the relation and create a route_master. Unfortunately
> with the released version, it causes an exception / error while trying to
> determine whether there is right or left hand traffic.
>
> > You are right, we should add functionality to stop all the stops that
> are either on the left, or on the right where the itinerary passes. We're
> working on that too.
>
> Personally, my suggestion is that you should focus on improving "adding
> stop" facilities. Ways can be added manually pretty quickly. For example, I
> added Bus 70 last week with the jar you sent me last week. The duplicate
> route thing doesn't work, I don't think. I'm pretty sure it just removed
> oneway ways? However, this isn't of much use because if the outbound route
> takes a different direction to the inbound route, then not all of the ways
> of this different direction is oneway. You then have to find and remove
> these remaining ways.
>
> It is simply much, much quicker to just re-add all the ways in order
> manually. For example, for bus route 70 (a rural route), it took 5 minutes,
> even though this route is 35km long. Adding shorter urban routes should be
> even easier. Adding ways is really quick: if it were down to that, I could
> simply create both inbound and outbound relations in just 10 minutes. The
> advantage with PT assistant is that 

Re: A functioning Public Transport plugin

2020-11-14 Thread Jo
Hi,

I'm not sure why you think PT_Assistant is simply a validator. It has many
features to help you create bus routes and recently I added some features
to help with conversion from PTv1 to PTv2. Those are not in the released
version yet though, because I'm also adding some other features
(experimental). For the past few years I mentored students to develop the
plugin. This meant it only got developed 3 months per year though. So
recently I started learning Java and  now I'm doing some development on it
myself. Something I wanted to figure out for a long time, is whether it
would make sense to have the itineraries as superroute relations that
contain route relations for the 'bundles'. Work in progress...

Would you have time for a Google Hangout this weekend? I would like to
demonstrate how converting route relations to PTv2 works.

Jo (Polyglot)



On Fri, Nov 13, 2020 at 10:10 PM ipswichmapper--- via josm-dev <
josm-dev@openstreetmap.org> wrote:

> Sorry, I meant to say "what inherant flaws does PTV2 have".
> --
>  Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
>  https://tutanota.com
>
>
> 13 Nov 2020, 21:04 by josm-dev@openstreetmap.org:
>
> > Great! This should hopefully simplify the improvement of this addon.
> >
> > 1. What inherant flaws did the sudtem have?
> > 2. How easy is it to determine if a way is "forward" or "backward"
> automatically?
> >
> > Also, it seems that the relation editor can sort ways, so a rewrite of
> this addon can remove this feature.
> > --
> >
> >
> >
> > 13 Nov 2020, 20:53 by roland.olbri...@gmx.de:
> >
> >> Hi all,
> >>
> >> thank you for the feedback.
> >>
> >>> Furthermore, this plugin is closed-source (as far as I know), so it
> cannot be "fixed".
> >>>
> >>
> >> The plugin is open source, see
> >>
> https://github.com/openstreetmap/josm-plugins/tree/master/public_transport
> >>
> >> The problem is that maintaining the plugin is a lot of work. I abandoned
> >> the development long ago because public transport v2 would have meant
> >> too much work, because the scheme has inherent flaws. Any such flaw does
> >> fall on the developer multiple times, for implementation, for developing
> >> test cases for all the undefined corner cases, for a UI that explains
> >> what the software actually does.
> >>
> >> By contrast, updating to a single different set of tags for stop poles
> >> is not a substantial problem.
> >>
> >>> This would mean you could immediately add all the stops in the click
> of a button, and sort broken relations in a click of a button.
> >>>
> >>
> >> Since writing this plugin, the relation editor has superseded most of
> >> the way sorting features. Thus, it no longer makes sense to duplicate
> >> the sorting capabilities in a distinct plugin.
> >>
> >> I would nowadays add buttons to the relation editor rather than a
> >> separate relation editor.
> >>
> >> There is also an unfinished routing algorithm in the plugin. I never had
> >> found a reasonable UI to exhibit that to the end user.
> >>
> >> Best regards,
> >>
> >> Roland
> >>
>


extra button with 4 states in the Tags button panel

2020-07-14 Thread Jo
Hi,

I would like to add an extra button under the 3 buttons +,
Zoekresultaten
Webresultate <https://www.compart.com/en/unicode/U+1F5D1>
+++
 This button would have 4 states.
- Invisible or absent if it's not a public transport route relation
- Red rounded square if it's a PT route relation with no
public_transport:version set
- Yellow rounded square with 1 inside it
- Gray rounded square with 2 inside it.

Is it possible to change the svg, of a button like that? And can a plugin
add a button to that panel?

Of course, once the button is present, I also want it to do something. I'm
working on that. But now it's in a long sequence of actions that happen
when the mapper tries to sort the stops in a route relation, that is not pt
v2.

Another button on my wishlist is one that would flip from/to and changes
the name tag accordingly.

Jo
Zoekresultaten


Re: convert a set of ways to a GPX layer

2020-07-13 Thread Jo
There is also this:

https://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/actions/relation/ExportRelationToGpxAction.java

But I don't know how to use it.

Jo

On Mon, Jul 13, 2020 at 8:51 PM Jo  wrote:

> public static void removeOnewayAndSplitRoundaboutWays(final Relation r) {
> if (isPTRoute(r)) {
> GpxData gpxOfItinerary = new GpxData();
> for (RelationMember nestedRelationMember : r.getMembers()) {
> if (nestedRelationMember.getType().equals(OsmPrimitiveType.WAY)) {
> GpxTrack gpxTrack = new GpxTrack();
> if (nestedRelationMember.getWay().hasTag("oneway", "yes") ||
> (nestedRelationMember.getWay().hasTag("junction", 
> "roundabout") &&
> !nestedRelationMember.getWay().isClosed()
> )
> )
> {
> r.removeMembersFor(nestedRelationMember.getWay());
> }
> }
> }
> GpxLayer gpx = new GpxLayer(gpxOfItinerary, "GPX of itinerary");
>
> So this is how far I got. I didn't try to run it, but I think the last
> line will create my GPX layer.
>
>  So now I need to figure out how to convert OSM ways to GPX tracks
>
> Jo
>


Re: convert a set of ways to a GPX layer

2020-07-13 Thread Jo
public static void removeOnewayAndSplitRoundaboutWays(final Relation r) {
if (isPTRoute(r)) {
GpxData gpxOfItinerary = new GpxData();
for (RelationMember nestedRelationMember : r.getMembers()) {
if (nestedRelationMember.getType().equals(OsmPrimitiveType.WAY)) {
GpxTrack gpxTrack = new GpxTrack();
if (nestedRelationMember.getWay().hasTag("oneway", "yes") ||
(nestedRelationMember.getWay().hasTag("junction",
"roundabout") &&
!nestedRelationMember.getWay().isClosed()
)
)
{
r.removeMembersFor(nestedRelationMember.getWay());
}
}
}
GpxLayer gpx = new GpxLayer(gpxOfItinerary, "GPX of itinerary");

So this is how far I got. I didn't try to run it, but I think the last line
will create my GPX layer.

 So now I need to figure out how to convert OSM ways to GPX tracks

Jo


Re: convert a set of ways to a GPX layer

2020-07-13 Thread Jo
Thanks Russell,

But I'm trying to do it in Java. So I think I should figure out how to
create a new GPX layer and then create GPX segment objects on it for each
way in the route relation, that have the same geometry.

Jo

On Mon, Jul 13, 2020 at 2:44 PM Russell Nelson  wrote:

> On 7/12/20 10:27 PM, Jo wrote:
> > Is there a method I can call with an array / list of ways that can create
> > such a GPX layer?
> Sure. Just copy, create a new layer, paste, then on the layer menu,
> convert the layer to a GPX.
>
>


convert a set of ways to a GPX layer

2020-07-12 Thread Jo
When I'm converting route relations to v2, I started to remove all the
oneway streets from the route relations. This works well, as the routing
helper in PT_Assistant lets me reconstruct the itineraries quite easily.

For some routes however removing all the oneway streets, loses information
needed to reconstruct the routes, so now I was thinking to help the mapper
by creating a temporary layer with a GPX track in containing all the ways
that were in the route relation.

Is there a method I can call with an array / list of ways that can create
such a GPX layer?

Polyglot


Re: [OSM-dev] Mentors in GSoC

2020-01-22 Thread Jo
Hi,

You should get in touch with the developer of Merkaartor directly. Only
they would be capable of mentoring you. Having said that, there is not much
development on Merkaartor and the userbase is very small.

If you know Java, it may make more sense to also make a proposal for JOSM.
Josm.openstreetmap.de

It has more developers, which is a plus and it is actively developed and
used. Still only a handful of developers though, so even there it may be
difficult to find a mentor for you.

If you are interested in this, look at the bug tracker and try to fix some
bugs.

Polyglot



On Wed, Jan 22, 2020, 17:18 Vaibhav Bisht 
wrote:

> Hello, osm dev community
>   This is Vaibhav, recently I Posted a mail in the mailing list of osm
> https://lists.openstreetmap.org/pipermail/dev/2020-January/030864.html
> in which regard you replied that I need to ask the project dev to be my
> mentor. Sir, I wanted to know that since right now I am a beginner will it
> be fine to ask directly to the dev of osm/merkaartor to be my mentor, or
> are there any specific mentors from osm for GSoC to whom I should resolve
> my query.
> Sir, I would definitely like to know your suggestions in this regard.
> Apologies for any misunderstanding.
> Yours sincerely
> Vaibhav
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Real time in public transport

2019-11-13 Thread Jo
I was considering to use the 'url' tag for a link to the real-time passing
times of our stops in Flanders, Belgium:

https://www.delijn.be/nl/haltes/halte/303058

or http:/mijnlijn.be/303058, which expands to the above url.

the stop's id number is already contained in ref:De_Lijn for all these
stops, I might drop the ref:De_Lijn tag if/when I do that.

Polyglot

On Wed, Nov 13, 2019 at 5:16 PM Andy Townsend  wrote:

> On 13/11/2019 12:24, A A wrote:
>
> What do you think about the possibility of adding a url to the
> "departures_board" or "passenger_information_display" tag to be able to
> report arrival times in real time at a train / subway / bus station?
>
> I think it can be very useful information. If it is added in a simple way
> through a tag, it could be easily implemented by mapping and navigation
> software and used for navigation in public transport or simply for querying
> the waiting time at a specific public transport station.
>
> Is there perhaps some website with that information (an actual departure
> board, not a vague "link to timetables")?  If so, wouldn't the "website"
> tag work for that, like at https://www.openstreetmap.org/node/2083241360 ?
>
> Incidentally, there's a whole mailing list designed for "how to tag X"
> questions over at https://lists.openstreetmap.org/listinfo/tagging .
> It's probably a better fit for what you're taking about than here, which is
> more to do with software development and tile hosting stuff.
>
> Best Regards,
>
> Andy
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


method that returns left or right hand traffic for a given location

2019-08-22 Thread Jo
Hi,

In PT_Assistant we want to be able to tell mappers some stops are on the
wrong side of the highway. This depends on driving direction, obviously.

Is there a method in core that can be used to query this information?

Polyglot


Re: [OSM-dev] public transport stop_area relations: have you implemented for routing or another purpose?

2019-08-01 Thread Jo
First off, I'm not mapping stop_area relations very often, only in case of
ambiguity. A stop near to a side street, but the bus passes on the main
street, or in bus stations where everything is very near to the other
objects.

JOSM's PT_Assistant plugin uses them to figure out which stop_position +
way adjacent to a highway=bus_stop node, if they are available. Usually
it's possible to determine it geographically. It also only works if the
stop_area relation contains pairs of stop_position / bus_stop nodes. If
someone simply throws all stop_position nodes, bus_stop nodes and platform
ways into them for stops on both sides of a street, or all stops in a bus
station, they are useless for that purpose.

Since, at that level, I'm using them to pair stop objects, I also have a
hierarchy of stop_area relations in some places. (bus stations adjacent to
railway or metro stations). At some point I was using stop_area_group for
that, but JOSM doesn't recognise that.

I don't know of any external app that uses them.

Polyglot

On Thu, Aug 1, 2019 at 9:13 AM Joseph Eisenberg 
wrote:

> I'm trying to find out if the type=public_transport +
> public_transport=stop_area relation or *=stop_area_group relation is
> used by any developer or database user.
>
> These relations are supposed to group together features like all the
> platforms in a bus station or train station. However, it seems like
> these relations may not be necessary or useful for routing
> applications.
>
> Has anyone looked into them or know of any current use cases?
>
> Joseph
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: "JOSM and Java" on German forum

2019-05-05 Thread Jo
Hi Vincent,

Thanks for that very succinct description of what is going on!

Polyglot

On Sun, May 5, 2019 at 10:40 PM Vincent Privat 
wrote:

> Hello,
> Today's weeklyOSM speaks about this German thread:
> https://forum.openstreetmap.org/viewtopic.php?id=65470
>
> I read a lot of incorrect statements there so I twitted some detailed
> explanations here:
> https://twitter.com/josmeditor/status/1125135390426505218
>
> Can someone speaking German share the link there? Find below the copy/paste
> of my tweets:
>
> 
> Many incorrect statements about the new @Java license from @Oracle on the
> German @openstreetmap forum (
> https://forum.openstreetmap.org/viewtopic.php?id=65470) mentioned in
> @weeklyOSM. Let's see in detail what all is this about. #Thread
> #openstreetmap #java ⬇️
> First of all, a little bit of history/terminology. Java was created in 1995
> by Sun. We call "Java" both the programming language and the platform that
> runs JOSM (JRE = Java Runtime Environment). Several platforms, from
> multiple vendors, exist.
> The JDK (Java Development Kit) contains the JRE but also developer tools
> (mainly, the java compiler). In 2006, around the release of Java 6, Sun
> announced its intention to open-source Java in a new project: @OpenJDK.
> OpenJDK is badly named, like OpenStreetMap. We don't only map streets...
> Well OpenJDK project does not only concern the JDK but the whole Java
> platform (language, spec, tools, APIs, etc.). @speakjava explains it nicely
> at https://www.azul.com/how-do-we-define-java/
> Sun open sourced many things from Java into the OpenJDK project, but not
> all things. In particular, Windows/Mac installers and deployment
> technologies like #WebStart were not open sourced (we don't know why).
> It means OpenJDK is only a "source code" project. Building it is very
> complex, and nobody took the pain to distribute free binaries for Windows &
> Mac. Only @RedHat did it for Linux in the IcedTea project. If you have 100%
> free Java on Linux, it's thank to them.
> In 2009 Oracle bought Sun. They didn't change things radically until
> recently. So even today most of Windows and Mac users are still using
> proprietary JRE binaries from Oracle, that are built upon open source
> project OpenJDK.
> Oracle made a very good job in releasing Java 8 in 2014, then Java 9 in
> 2017. We even collaborated with them in mutual good faith. Then, all hell
> broke loose.
> They changed the Java release cycle to to a fixed 6 months schedule (2
> versions per year). We are now at Java 12 (which is by the way the most
> unimpressive version of Java: nothing new in it).
> They changed the licence of the Oracle JDK: basically if you are an
> enterprise and want to use Oracle binaries, you have to pay.
> They introduced the notion of Long Term Support versions (LTS). Java 8 is
> an LTS, Java 11 too. For more details about "release train" and licencing,
> see the excellent blog post by @hendrikEbbers:
> https://dev.karakun.com/java/2018/06/25/java-releases.html
> And concerning the Java 8 binaries that almost everyone uses on Windows and
> Mac, they changed the licence to a free "for personal desktop use, through
> at least the end of 2020":
> https://www.java.com/en/download/faq/distribution.xml
> These changes came from nowhere and the Java community was not prepared for
> it. So it required some time until we can get to a free replacement to the
> Oracle binaries on Windows and Mac, and that's why we didn't advise anyone
> to switch to something else yet.
> But we're almost there thanks to @adoptopenjdk! This community-based
> project offers free downloads of OpenJDK on all platforms!
> https://adoptopenjdk.net/releases.html
> We're just waiting for the availability of a few enhancements of the
> AdoptOpenJDK installer before advising everyone to switch.
> 1) The inclusion of JavaFX (another technology abandoned by Oracle and now
> maintained by @GluonHQ), which is used by JOSM to play MP3 files, and by
> some plugins like Microsoft StreetSide:
> https://github.com/AdoptOpenJDK/openjdk-build/issues/577
> 2) The inclusion of IcedTea-Web (the free implementation of Java #WebStart
> which has also been abandoned by Oracle):
> https://github.com/AdoptOpenJDK/openjdk-build/issues/898 We can thank
> @RedHat (again) for this project, plus also @karakun and @adoptopenjdk for
> their work
> 3) An auto-update feature to make sure everyone can automatically get
> security updates:
> https://github.com/AdoptOpenJDK/openjdk-installer/issues/4
> Once all these issues are resolved (hopefully long before end of 2020)
> we'll ask everyone to switch to AdoptOpenJDK. Until now, even if we despise
> Oracle for all of this, we still advise to keep the current Oracle JRE, at
> least for the automatic security updates.
> This is also why we still target Java 8 as a minimum. Once everyone is able
> to run JOSM using AdopOpenJDK binaries, we'll likely switch to Java 11!
> Which is by the way now maintained by @RedHat and 

Re: [OSM-dev] Just Joined List

2019-04-16 Thread Jo
This definitely is something you should  NOT do on the main API. That API
is for people editing and improving the map, not for using the data.

Download an extract for your region and set up a server with it. Then
figure out how to go about finding the nearest way to your GPS position
(most likely using PostGIS).

Polyglot



On Tue, Apr 16, 2019 at 3:09 PM TrackingCentral 
wrote:

> Hi
>
> I am wanting to be able to return the current road my passing a http
> request to the api endpoint passing the co ordinates of the users location
> with each request.
>
> Just wondering if this function already exist and it is a matter of
> sending the http request to the api each time ???
>
> Basically I have gps tracking devices that send location data to my server
> every 3 second and want the road speed of their location determined by the
> api and returned each time I send the http request to the api endpoint.
>
> Can you also advise the variable name that is returned that will hold the
> road speed.
>
> Claude Raiola
>
> TrackingCentral Pty Ltd
> 61-414 228 948
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM->PostGIS Python tool?

2018-12-21 Thread Jo
Hi Spencer,

I'm using Overpy to fetch data using Overpass API, then process it, then
send it to JOSM using its remote control feature:

https://github.com/osmbe/public_transport.git
https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py
https://github.com/osmbe/public_transport/blob/master/scripts/Agency.py

You can experiment with it in this Notebook:

https://colab.research.google.com/drive/14ggsAKrs9gs03AVSNIGlWsLWJEq7EAaF#scrollTo=4GOsvegsGPxM


Maybe it helps. In a previous iteration all this did involve loading the
data into a PostGIS database:

https://github.com/PolyglotOpenstreetmap/OSM_PublicTransportRoutes

Polyglot

On Fri, Dec 21, 2018 at 2:16 PM Spencer Gardner 
wrote:

> I'm researching options for a Python-based tool that uses OSM data. From
> what I can gather there's no native Python library for OSM imports to a
> PostGIS database. (Yes, imposm is developed in Python but there's no
> documentation I can find on how to use it as a Python library--it appears
> to be intended as a command line tool). This seems odd to me since there's
> such a large community of OSM users. I feel like I'm missing something. Are
> there other viable Python libraries I'm not aware of? (Viable = large-ish
> user base and history of bugfixing.) Is there documentation for using
> imposm within Python that I've overlooked?
>
> Bonus points for:
> - Windows compatibility
> - No external (i.e. non-Python) libraries needed
>
> Thanks for any help!
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: Server upgrade maintenance

2018-10-30 Thread Jo
Good luck!

Op di 30 okt. 2018 om 16:40 schreef Vincent Privat <
vinc...@josm.openstreetmap.de>:

> Hello,
> We'll begin the maintenance in ~20 minutes, at 17:00.
> Cheers,
> Vincent
>
> Le sam. 27 oct. 2018 à 16:57, Vincent Privat <
> vinc...@josm.openstreetmap.de>
> a écrit :
>
> > Hi,
> >
> > As discussed in #16231 [1], we will soon upgrade our server to Ubuntu
> > 18.04 LTS.
> >
> > The planned upgrade is currently scheduled to 30th October 2018 in the
> > evening, date being subject to change.
> >
> > Website and all JOSM services will be unavailable during the upgrade.
> >
> > Cheers,
> > Vincent
> >
> > [1] https://josm.openstreetmap.de/ticket/16231
> >
>


Re: JOSM developers meetup at Karlsruhe?

2018-10-18 Thread Jo
Standards, some people can't seem to get enough of them :-)

Polyglot

Op do 18 okt. 2018 om 21:16 schreef Dirk Stöcker :

> On Mon, 15 Oct 2018, Vincent Privat wrote:
>
> >> After 1 day INTERGEO on Wednesday and at least 1 day RTCM standards
> >> committee meeting on Thursday the chances are pretty low that I'll visit
> >> another conference voluntarily soon. :-)
> >
> > It's not really a conference, it's more likely coding, talking and
> drinking
> > beers :) And it's not often I come to Germany ;)
>
> Now it is 1 day fair and 2 days standards committee and I feel like
> afterwards I need a months holidays :-)
>
> My advice to everybody: If you get asked to participate in
> standardization, RUN, as fast as possible. Don't look back!
>
> I wish you all fun at the meeting.
>
> Ciao
> --
> http://www.dstoecker.eu/ (PGP key available)
>
>


Re: Align nodes

2018-10-08 Thread Jo
I think it does look nice on the map if features are nicely aligned (If
that corresponds to the reality, ofc).

What I would do, is draw a helper line between those 2 nodes, then maybe
parallel ways

Or start drawing a rectangle with the buildings-tools plugin.
Then split that and remove the unneeded parts. This gives you a line
parallel to those 2 nodes with perfectly aligned nodes.

(Hopefully I didn't misunderstand the intent)

Polyglot

Op ma 8 okt. 2018 om 10:17 schreef Martin Koppenhoefer <
dieterdre...@gmail.com>:

>
>
> sent from a phone
>
> > On 7. Oct 2018, at 16:32, OSMDoudou <
> 19b350d2-b1b3-4edb-ad96-288ea1238...@gmx.com> wrote:
> >
> > But it doesn't work with selecting two nodes of a closed way. You would
> need to first split the segment from the building, draw the barrier and
> close the building way again, which is far from straightforward.
>
>
> this would have been my suggestion as well: draw in snapping mode and then
> delete the helper geometry you only needed to add to make snapping work.
>
> In general there is no “perfection” of man made objects in the real world,
> walls don’t get built with subcentimeter precision, and we usually do not
> have better positional accuracy than a few meters in our mapping, so this
> is mostly an academic exercise anyway.
>
>
> Cheers, Martin
>


Re: Align nodes

2018-10-07 Thread Jo
if you use Shift-B you align the nodes + distribute them evenly.

if you use 'o', the nodes get distributed on a curve. (doesn't have to be a
full circle)

Did you try selecting just a subset of nodes, either by bounding box select
(s) or lasso select (ss) and then 'l'?

if you select 1 node, you can select 2 adjacent ones with 'e', after which
you can use 'l' or shift-B.
I think you need the utils-plugin2 for that to work, but that plugin has so
many other interesting tools that it's always useful to have it installed.

Polyglot

Op zo 7 okt. 2018 om 09:39 schreef OSMDoudou <
19b350d2-b1b3-4edb-ad96-288ea1238...@gmx.com>:

> Hello,
>
>
>
> Is there a way in JOSM to align nodes other than based on the two extreme
> points (the 'L' keyboard shortcut) ?
>
>
>
> For example, align based on the first two selected nodes and the rest of
> nodes get aligned on that ?
>
>
>
> This is particularly useful when you add nodes to already correctly aligned
> nodes.
>
>
>
> Thank you.
>
>


Re: [OSM-dev] question about add way to openstreetmap by GPX automatic

2018-09-14 Thread Jo
QGIS might have that kind of functionality, if not directly then possibily
by using plugins.

The advantage of adding the data to OSM is that you plant a seed and it's
very likely to grow, i.e. map data for your and those other cities actually
becomes available and will steadily be improved.

The disadvantage, of course is that it takes a fair bit of hard work and
precious time to get started.

Do you have coordinates for this city? If there happens to be imagery, it
may be possible to use the gpx files only as a complementary aid and then
you won't be needing all of them, just a subset.

Jo

Op vr 14 sep. 2018 om 17:36 schreef zhangy...@lewaimai.com <
zhangy...@lewaimai.com>:

> Thank you very much for the video!
>
> my app users are in a small city of china, the current data in OSM about
> the city is not enough, it is nearly no roads in the small city, many roads
> are missing,so I must add the missing roads to the map.
>
> what I need is to make the whole road network first, then I can calculate
> the bicycle distance between any two different points of the city for my
> app。If the road network is not correct, it is not possible to get the
> distance.
>
> Because all I need is to get the distance of any two different points of
> the city, so the additional information(street names, maxspeed
> information, POIs, addresses and so on.) is not necessary for me,even the
> current OSM data is not necessary for me.
>
> Is it possible that I can make my own map without the OSM data, I just
> begin from an empty map data,and I generate ways out of GPX files on my own
> server?
>
> Even that I still need to solve the three problems below:
>
>- GPX tracks will overlap with other GPX tracks. Is it possible to
>automatically detect whether there are two parallel ways or if this is just
>one single way?
>- GPX tracks will cross other GPX tracks. Is it possible to
>automatically detect whether there is a road junction or one of the ways is
>a bridge or a tunnel?
>- Is it  possible to automatically detect which OSM highway class
>(road, footway, cycleway, ...) my GPX track has?
>
>
> My app will server many small citys of china in the futuer, it is not
> possible to edit the map of each city manually,because I am not familiar
> with the citys too,and the GPX files are not made by me but my users,and
> the num of the fiels is too large, almost 100,000 every day。
>
> So I need a method to Make roads automatically,just use the GPX files,
> Thanks.
>
> --
> zhangy...@lewaimai.com
>
>
> *From:* Jo 
> *Date:* 2018-09-14 23:02
> *To:* Bryan Housel 
> *CC:* zhangyang ; OSM dev list
> 
> *Subject:* Re: [OSM-dev] question about add way to openstreetmap by GPX
> automatic
> I made a short screencast video on how we worked with GPX before we had
> good aerial imagery to work with:
>
> https://www.youtube.com/watch?v=tU9WJeYO77I
>
> Adding the ways would still be a manual process, but that's the best way
> to integrate it with the already existing data anyway. I'm also showing the
> ImproveWay functionality, which makes it actually quite enjoyable.
>
> Polyglot
>
> Op vr 14 sep. 2018 om 16:56 schreef Bryan Housel :
>
>> My approach would be to use:
>> - https://github.com/mapbox/togeojson - to batch convert all the gpx ->
>> geojson
>> then
>> - https://github.com/mapbox/tippecanoe - to merge them all into a vector
>> tileset.
>> then
>> - upload that to Mapbox for hosting so that people can trace from it in
>> the OSM editors.
>>
>> But this is just one approach and there might be other tools that do this.
>> (I work for Mapbox, so I’m mostly familiar with our tools)
>>
>> Thanks, Bryan
>>
>>
>>
>> On Sep 14, 2018, at 9:56 AM, zhangy...@lewaimai.com wrote:
>>
>> yes,I only need to use the tracks to add roads to OSM once for each road
>> at the first time,but the problem is that how can I know whick roads are
>> missing,especial even the same road can have different GPS points in
>> different gpx files.
>>
>> it is a small city for china, the current data in OSM about the city is
>> not enough, many roads are missing,so I need to use the 100,000 gpx files
>> to add the missing roads,so i can get the bicycle distance between
>> different points of the city.
>>
>> of course, they are many repeated roads in  the 100,000 gpx files, what
>> I need is the actual way info, how can I find them out?
>>
>> --
>> zhangy...@lewaimai.com
>>
>>
>> *From:* Simon Poole 
>> *Date:* 2018-09-14 21:15
>> *To:* dev 
>> *Subject:* 

Re: [OSM-dev] question about add way to openstreetmap by GPX automatic

2018-09-14 Thread Jo
I made a short screencast video on how we worked with GPX before we had
good aerial imagery to work with:

https://www.youtube.com/watch?v=tU9WJeYO77I

Adding the ways would still be a manual process, but that's the best way to
integrate it with the already existing data anyway. I'm also showing the
ImproveWay functionality, which makes it actually quite enjoyable.

Polyglot

Op vr 14 sep. 2018 om 16:56 schreef Bryan Housel :

> My approach would be to use:
> - https://github.com/mapbox/togeojson - to batch convert all the gpx ->
> geojson
> then
> - https://github.com/mapbox/tippecanoe - to merge them all into a vector
> tileset.
> then
> - upload that to Mapbox for hosting so that people can trace from it in
> the OSM editors.
>
> But this is just one approach and there might be other tools that do this.
> (I work for Mapbox, so I’m mostly familiar with our tools)
>
> Thanks, Bryan
>
>
>
> On Sep 14, 2018, at 9:56 AM, zhangy...@lewaimai.com wrote:
>
> yes,I only need to use the tracks to add roads to OSM once for each road
> at the first time,but the problem is that how can I know whick roads are
> missing,especial even the same road can have different GPS points in
> different gpx files.
>
> it is a small city for china, the current data in OSM about the city is
> not enough, many roads are missing,so I need to use the 100,000 gpx files
> to add the missing roads,so i can get the bicycle distance between
> different points of the city.
>
> of course, they are many repeated roads in  the 100,000 gpx files, what I
> need is the actual way info, how can I find them out?
>
> --
> zhangy...@lewaimai.com
>
>
> *From:* Simon Poole 
> *Date:* 2018-09-14 21:15
> *To:* dev 
> *Subject:* Re: [OSM-dev] question about add way to openstreetmap by GPX
> automatic
> You probably don't want to use the tracks directly to add roads to OSM
> (you would only want to do this once in any case). Definitely they could be
> useful for detecting which roads are missing, and, if the available aerial
> imagery  isn't good enough for actually adding any missing roads.
> Can you indicate where the city is?
> Simon
>
> Am 14.09.2018 um 14:33 schrieb zhangy...@lewaimai.com:
>
> my ios app has 10,000 users in one city, and they wii collect the
> trajectory in gpx format, i want to add way to  openstreetmap use their
> gpx trajectory.
>
> there will be almost 100,000 gpx files one day, so it is not possible to
> edit map manual by software such as JOSN.
>
> I want to know if I can product ways accord to the 100, gpx files
> automatic,I need a C++ library which can do this,can anyone help me please?
>
>
>
> --
> zhangy...@lewaimai.com
>
>
> ___
> dev mailing 
> listdev@openstreetmap.orghttps://lists.openstreetmap.org/listinfo/dev
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: JOSM developers meetup at Karlsruhe?

2018-09-03 Thread Jo
Hi Vincent,

Indeed, that's a great plan! I went to Karlsruhe last year, wasn't really
planning to go this year, but this changes things, so I'll try to attend
too!

Polyglot

Op di 4 sep. 2018 om 00:21 schreef Wiktor Niesiobedzki :

> Hi,
>
> Sounds like a great plan. I'd love to meet you. Count me in.
>
> Cheers,
>
> Wiktor
>
> 2018-09-03 23:31 GMT+02:00 Florian Schäfer :
>
> > Hi Vincent,
> > great idea, I think I'd most definitely stop by.
> > I'm not yet sure if I'll have the time to participate in hacking on that
> > weekend, but at least for a JOSM meetup I would join you in Karlsruhe.
> >
> > Cheers,
> > Flo(scher)
> >
> >
> > Am 03.09.2018 um 22:36 schrieb Vincent Privat:
> >
> >> Hello,
> >> I was thinking for quite some time about setting up a meeting between
> JOSM
> >> developers somewhere in Germany (for convenience).
> >> As Christine and Frederik are inviting OSM developers to Karlsruhe on
> >> October 20th-21st, I just registered myself!
> >> Would other team members be interested? I'd love to meet everyone in
> >> person!
> >> As for JOSM projects/activities for this hack week-end, there are plenty
> >> of
> >> them to work on, it will depend on who's there :)
> >> Cheers,
> >> Vincent
> >>
> >
> >
> >
>


Re: [OSM-dev] How to find the way with the most relation memberships

2018-08-27 Thread Jo
I found that quite intriguing... so I went to download. It turns out that
this way (with just a name tag, nothing else, located in a small town 18 km
south of Ankara) is member in 430 route relations that only have 2 members.
The total amount of ways in those 430 route relations combined is 3.

The way is a member of 439 route relations in total, 441 relations
including 1 street and a 'network'.

Something doesn't seem quite right.

Polyglot

Op ma 27 aug. 2018 om 12:36 schreef Frederik Ramm :

> Hi,
>
>
> On 27.08.2018 11:41, Simon Poole wrote:
> > Come on, you're  leaving us out on a limb. Now we want to know the world
> > leader in relation membership :-).
>
> https://www.openstreetmap.org/way/496296681
>
> Bye
> Frederik
>
> --
> Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: New version of JOSM noticably sluggisher and becoming unresponsive

2018-08-19 Thread Jo
LOL, Vincent, that's exactly the reason why I mentioned that I also notice
this issue. We're simply trying to figure out where it's coming from. So
indeed, the next step is checking whether disabling the plugin makes the
problem go away. At least then we know in which direction we need to search
for an actual solution.

Is there a way to 'audit' the part of the code that assigns the pink text
to each bus stop? The pink text is calculated based on all the route
relations the stop is member of. I don't know whether this calculation is
done over and over again, or cached somehow. Or whether it's even possible
to cache these results.

I'm going to ask Biswesh to make the displaying of those calculated
route_ref counterparts optional. Then we know that that's where it's coming
from and figure out whether it can be optimised.

Jo

Op zo 19 aug. 2018 om 14:57 schreef Vincent Privat :

> Please try first by disabling this plugin before blaming JOSM...
>
> Le dim. 19 août 2018 à 11:41, Maarten Deen  a écrit :
>
> > In this case I was also working with bus routes and the PT Assistant.
> >
> > Regards,
> > Maarten
> >
> > On 2018-08-19 11:35, Jo wrote:
> > > I'm also noticing that JOSM sometimes hangs. In my case it is then
> > > consuming >300% processing power. I often see it right after panning
> > > the map.
> > >
> > > I'm beta testing PT_Assistant and can't be sure whether that has
> > > something to do with it. It's drawing many labels for all the bus
> > > stops, which are calculated based on route membership. This worked
> > > well before, but then it was only shown for the stops of the active
> > > route relation.
> > >
> > > Polyglot
> > >
> > > Op zo 19 aug. 2018 om 11:01 schreef Maarten Deen :
> > >
> > >> I don't know if other people notice this too, but the new version of
> > >>
> > >> JOSM (14163) is noticably more shluggish than the previous version.
> > >> Moving nodes is not fluent but jerky. And after some time it just
> > >> stops
> > >> responding.
> > >> It starts with the same symptoms as I mentioned in bug 16403 [1] and
> > >>
> > >> then after a while it just stops working. It is just unresponsive
> > >> without taking processor power.
> > >>
> > >> Doing several restarts I notice different strange behaviours. I
> > >> thought
> > >> maybe it was related to having a large dataset open so now I have a
> > >> smaller one, but now I have the "Add value?" dialog open and I can't
> > >>
> > >> change anything there and the ok, cancel or help buttons are
> > >> unresponsive. And obviously I can't click on the main screen because
> > >> the
> > >> Add value? dialog is modal.
> > >> For some reason the JAVA debug screen is also unresponsive.
> > >>
> > >> I'm going back to an older version because this does not work at all
> > >> for
> > >> me.
> > >>
> > >> [1] <https://josm.openstreetmap.de/ticket/16403>
> > >>
> > >> Regards,
> > >> Maarten
> >
> >
>


Re: New version of JOSM noticably sluggisher and becoming unresponsive

2018-08-19 Thread Jo
I'm also noticing that JOSM sometimes hangs. In my case it is then
consuming >300% processing power. I often see it right after panning the
map.

I'm beta testing PT_Assistant and can't be sure whether that has something
to do with it. It's drawing many labels for all the bus stops, which are
calculated based on route membership. This worked well before, but then it
was only shown for the stops of the active route relation.

Polyglot

Op zo 19 aug. 2018 om 11:01 schreef Maarten Deen :

> I don't know if other people notice this too, but the new version of
> JOSM (14163) is noticably more shluggish than the previous version.
> Moving nodes is not fluent but jerky. And after some time it just stops
> responding.
> It starts with the same symptoms as I mentioned in bug 16403 [1] and
> then after a while it just stops working. It is just unresponsive
> without taking processor power.
>
> Doing several restarts I notice different strange behaviours. I thought
> maybe it was related to having a large dataset open so now I have a
> smaller one, but now I have the "Add value?" dialog open and I can't
> change anything there and the ok, cancel or help buttons are
> unresponsive. And obviously I can't click on the main screen because the
> Add value? dialog is modal.
> For some reason the JAVA debug screen is also unresponsive.
>
> I'm going back to an older version because this does not work at all for
> me.
>
> [1] 
>
> Regards,
> Maarten
>
>


Re: YourKit free license for JOSM core developers

2018-06-22 Thread Jo
Hi Vincent,

Do you think it makes sense Biswesh learns how this works?

Jo

Op vr 22 jun. 2018 om 19:46 schreef Vincent Privat :

> I only got answer from Dirk. Nobody else interested? Paul, Wiktor, Michael?
>
> 2018-06-18 21:00 GMT+02:00 Vincent Privat :
>
> > I guess we can chose our own text, that was only the marketing example
> > they gave me :)
> > For the page, any page is OK. If you look at the list of supported
> > projects:
> > https://www.yourkit.com/customers/
> >
> > The page linked there is not always the front page. For example ActiveMQ
> > has defined a "thanks" page:
> > http://activemq.apache.org/thanks.html
> >
> > 2018-06-18 19:37 GMT+02:00 Dirk Stöcker :
> >
> >> On Mon, 18 Jun 2018, Vincent Privat wrote:
> >>
> >> In return they require that we place a small free-form text
> >>> acknowledgment/testimonial at the project web site. The acknowledgment
> >>> should contain:
> >>>
> >>> 1) The YourKit logo and a text that JOSM uses YourKit profiler. The
> >>> following logo must be used:
> >>> https://www.yourkit.com/images/yklogo.png
> >>>
> >>> 2) Acknowledgment should contain a hyperlink reference to YourKit web
> >>> site.
> >>> For example:
> >>> "YourKit supports open source projects with its full-featured Java
> >>> Profiler.
> >>> YourKit, LLC is the creator of https://www.yourkit.com/
> >>> java/profiler/">YourKit Java Profiler, innovative and intelligent
> >>> tools
> >>> for profiling Java and .NET applications."
> >>>
> >>
> >> Can we choose that text? I'd prefer an honest text instead of Marketing
> >> BlaBla.
> >>
> >> Like
> >>
> >> JOSM core developers are uing the https://www.yourkit.com/
> >> java/profiler/">YourKit Java Profiler, as we found other tools
> >> lacking required functionality for profiling. YourKit supports open
> source
> >> projects by granting developers free licenses.
> >>
> >> @Dirk: no objection to add this to the JOSM website?
> >>>
> >>
> >> Would it be ok on one (or more) of the development related pages like
> >>
> >> https://josm.openstreetmap.de/wiki/DevelopersGuide
> >>
> >> That's one click away from the start page.
> >>
> >> Ciao
> >> --
> >> http://www.dstoecker.eu/ (PGP key available)
> >>
> >>
> >
>


Re: translating the strings of plugins

2018-05-09 Thread Jo
Oh, I think it would be nice to add PT_Assistant to Transifex. What would
be the procedure for that?

Jo

2018-05-09 14:37 GMT+02:00 Florian Schäfer <flor...@schaeferban.de>:

> Hi Polyglot,
>
> it's at https://translations.launchpad.net/josm/ .
> A few plugins are translated at https://www.transifex.com/
> josm/josm/content/ instead.
>
> Cheers,
> floscher
>
> Am Mittwoch, den 09.05.2018, 14:00 +0200 schrieb Jo:
> > Hi,
> >
> > Do we have a web interface where the strings of JOSM and its plugins can
> be
> > translated in a way that is accessible to the general public?
> >
> > I can't seem to find it.
> >
> > Polyglot
>


translating the strings of plugins

2018-05-09 Thread Jo
Hi,

Do we have a web interface where the strings of JOSM and its plugins can be
translated in a way that is accessible to the general public?

I can't seem to find it.

Polyglot


Re: JOSM enhancements vs. separate plugin

2018-05-09 Thread Jo
I guess it all depends on availability of time of the core team. What
surprises me is that plugins that everybody probably have installed like
buidings-tools and utilsplugin2 are not 'adopted' into core. That probably
tells you something about how likely it is that others would be.

Polyglot

2018-05-09 7:25 GMT+02:00 Jiri Hubacek :

> Dear JOSM devs,
>
> I would like to ask question about the JOSM enhancements. Where is the
> line between functionality acceptable upstream and the feature that
> should be in separate plugin?
>
> The concrete example - I wrote some script for automatic creation of
> residential area around the selected buildings. I rewrote it to Java to
> be able to push it upstream but it looked too specific to be included in
> "Tools" menu. So I created the plugin (mapathoner). Are there any
> guidelines for these decisions?
>
> Thanks,
> jiri
>
>


Re: The (dark) future of Java on desktop

2018-04-16 Thread Jo
Good news! Who needs Oracle anyway :-)

Polyglot

2018-04-16 20:36 GMT+02:00 Vincent Privat :

> Hello,
> I got in contact with Jiri Vanek. He might be our saviour.
> As some of you may know, he's the one behind IcedTea-Web (ITW: the free &
> open-source implementation of Java WebStart in the IcedTea project):
> https://icedtea.classpath.org/wiki/IcedTea-Web
>
> The project is still actively developed (the 1.8 version is in progress).
> http://icedtea.classpath.org/hg/icedtea-web/
>
> Last year, Jiri added support for Windows, which I validated with the
> RedHat build.
> Jiri's also part of the AdoptOpenJdk initiative which aimes to provide a
> build farm of OpenJDK with certified binaries on all platforms:
> https://adoptopenjdk.net/releases.html
>
> If I understood correctly, these builds are going to provide JavaFX and ITW
> once the version 1.8 is finished!
>
> So we have to test ITW on Windows and macOS to make sure it works with Java
> 10 and early builds of Java 11. Then we'll have to check if it still works
> once Oracle completely removes Java WebStart (I don't know the impacts it
> could have on ITW).
>
> I'm currently trying to build & test ITW on Windows.
>
> Cheers,
> Vincent
>
> 2018-04-11 20:41 GMT+02:00 Vincent Privat :
>
> > One month already and I still don't know what to do regarding WebStart.
> > I found out this: https://developers.redhat.com/
> products/openjdk/download/
> > Red Hat is providing an implementation of OpenJDK 8 on Windows
> containing:
> > - OpenJDK
> > - OpenJFX
> > - WebStart based on IcedTea-Web
> > - An auto-update feature (a small simple script registered to Windows
> Task
> > Scheduler)
> >
> > The good news:
> > - This is exactly what we would need for JDK 11.
> > - I tested it and it works perfectly. We have nothing to change in JOSM
> to
> > make it work with this runtime.
> >
> > The bad news:
> > - It is only available to Java developers. A (free) RedHat account is
> > required, and it is forbidden to redistribute it.
> > - there is a version of Java 9 but it does only contain OpenJDK (thus it
> > is useless)
> > - there is no macOS runtime
> >
> > Does someone on this list has a professionnal RedHat account, or know
> > someone there? I'd like to know if we can hope to see RedHat releasing
> > OpenJDK 11 it as a public runtime, free or charge and not requiring a
> user
> > account, which would contain the same components as their OpenJDK 8
> > version. This way we would only have to tell people to uninstall their
> > Oracle runtime and install the Red Hat runtime instead.
> >
> >
> > 2018-03-10 18:05 GMT+01:00 Vincent Privat :
> >
> >> If we were to abandon AWT/Swing, migrating to SWT might be another
> >> option. I don't think it would be easy, but at least it's actively
> >> maintained: https://www.openhub.net/p/swt/contributors/summary
> >>
> >> 2018-03-09 10:40 GMT+01:00 Dirk Stöcker :
> >>
> >>> On Thu, 8 Mar 2018, Richard wrote:
> >>>
> >>> On Thu, Mar 08, 2018 at 08:36:21AM +0100, Frederik Ramm wrote:
> 
>  You could sit down today and re-implement everything in, say, C++, and
> > it would be relatively straightforward, and while the result would
> not
> > share any of JOSM's codebase, it would still encapsulate all the
> > experience and brainpower that has flown into JOSM development over
> the
> > years.
> >
> 
>  true in principle but you would need a protable GUI that doesn't suck
> or
>  you end up programming for at least 3 platforms with 3 sets of bugs,
>  3 sets of dependencies etc.
> 
> >>>
> >>> Reimplementing an existing software like JOSM which has an estimated
> >>> cost of more than hundred development years (
> >>> https://www.openhub.net/p/josm) in another language in an non-profit
> OS
> >>> application is doomed to fail in my eyes. The motivation for a
> programmer
> >>> to take an existing software and reimplement everything again is low.
> For a
> >>> very long time you will not have something which is usable and
> inbetween
> >>> you have tasks to do, but no positive feedback. That may work when the
> >>> people are paid for it, but not when programmers need to be motivated.
> I'd
> >>> consider people beeing motived by such a task very strange. :-)
> >>>
> >>> Rather than that if JOSM really dies some of the better ideas of it
> will
> >>> be taken and implemented in existing or new software (which BTW is
> already
> >>> happening, e.g. osmosis taking the Validator MapCSS or many other
> things).
> >>>
> >>> If there is a way to automatically convert the code and start with a
> >>> working base, then the situation is different...
> >>>
> >>> But I also don't think this is necessary (ATM).
> >>>
> >>>
> >>> Ciao
> >>> --
> >>> http://www.dstoecker.eu/ (PGP key available)
> >>>
> >>>
> >>
> >
>


Re: [OSM-dev] ID presets problem

2018-02-25 Thread Jo
In Belgium and The Netherlands (and maybe in Germany too) there are
numbered node networks for horseback riding. I have no idea if they are
very popular. I don't have any near to where I can go do horseback riding.

Polyglot

2018-02-25 23:15 GMT+01:00 Bryan Housel :

> The taginfo service and the nominatim service still don't work. A mystery
> as
> the osm service works just fine. But I did not have a closer look yet. Does
> iD have some helpful means for debugging the services?
>
>
> I don’t have any helpful tips other than to just use the debugging
> features already built into your browser.  I mostly just use Chrome Dev
> tools to step through and debug the iD code.  (If you are more familiar
> with Firefox, Safari, Edge, their dev tools are fine too).
>
>
> It appears that iD is not capable at the moment of rendering route
> relations
> on the map with some highligting/casing/shadow etc. Is this correct?
> If so, is there already a ticket for such a rendering? It is a very useful
> feature of Potlatch2.
>
>
> There are some discussions on:
> https://github.com/openstreetmap/iD/issues/1575
> https://github.com/openstreetmap/iD/issues/659
>
> Somebody made:
> https://github.com/openstreetmap/iD/pull/3140
> which I probably would have just accepted if it didn’t conflict with the
> existing "selected" style.
> (whatever we do needs to look and feel different than how it looks when
> the user selects things)
>
>
> I also noted that the route relation presets seem to be rather generic. Is
> there something to know about there history/making?
>
>
> It’s pretty much driven by whatever people want to edit/show here, as long
> as we can make it easy for an untrained user to figure out.
>
>
> On the other hand, for route=horse there is a field for network_horse. I am
> very much into horseback riding and the use of OSM for it, but I have never
> heard of such a network definition for horse routes. The tag is mentioned
> in
> the Wiki but it appears to be a simple copy & paste from hiking routes.
>
> Is there some more information and a definition behind this preset?
>
>
> It was requested here:
> https://github.com/openstreetmap/iD/issues/3057
> The requesting user mentioned the `network` values and it seems fine. I
> don’t dig too much into requests like this - if it’s a reasonable request,
> we’d probably just add it.
>
>
> Thanks Bryan
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: Plugins: deprecated API to be removed

2017-12-02 Thread Jo
Hi Vincent,

Thank you for cleaning up the source code. Of course I run into a problem
when using the scripting plugin.

How can I get all the selected elements?

This is what worked untill a few days ago:

from org.openstreetmap.josm import Main

editLayer = Main.getLayerManager().getEditLayer()
if editLayer and editLayer.data:
selectedElements = editLayer.data.getSelected()

I tried a few incantations, but no luck.

Cheers,

Polyglot


2017-11-28 1:07 GMT+01:00 Vincent Privat :

> First batch of deprecated APIs removed:
> https://josm.openstreetmap.de/changeset/13173/josm
> Cheers,
> Vincent
>
> 2017-11-26 16:42 GMT+01:00 Vincent Privat :
>
> > Hello,
> > JOSM 13170 has been released. This is the last stable version before we
> > remove a lot of deprecated APIs.
> > Make sure your plugins compile without deprecation warning!
> > Vincent
> >
> > 2017-10-30 21:20 GMT+01:00 Vincent Privat :
> >
> >> Hi Holger,
> >> Sorry for not responding earlier, but I have already updated a lot of
> >> plugins, see https://github.com/openstreetmap/josm-plugins/
> commits/master
> >> Still some work to do (around 1100 deprecation warnings)
> >> Cheers,
> >> Vincent
> >>
> >> 2017-10-30 21:16 GMT+01:00 Holger Mappt :
> >>
> >>> On 2017-10-23 at 00:15 +0200 Paul Hartmann wrote:
> >>>
>  On 21.10.2017 17:49, Holger Mappt wrote:
> 
> > Is the sonar the right place to see what is deprecated, i.e. what
> > needs to be changed? [1]
> > [1] https://josm.openstreetmap.de/sonar/project/issues?id=josm-p
> > lugins=false=squid%3ACallToDeprecatedMethod
> >
> 
>  Possible, but the normal way would be to have the java compiler output
>  deprecation warnings (use compiler option -Xlint:deprecation for
> javac to
>  see details).
> 
> >>>
> >>> The trick is to call "ant clean" before "ant", otherwise the
> deprecation
> >>> messages are not shown. Option -Xlint:deprecation is on by default if
> >>> ../build-common.xml is imported from build.xml.
> >>>
> >>> Thanks,
> >>> Holger
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
>


Re: [OSM-dev] Overpass filter by area A or area B

2017-09-14 Thread Jo
You could also do this:

[maxsize:4];
(
way["wikidata"="Q212429"][admin_level=3];
way["wikidata"="Q212582"][admin_level=3];
)
._>;
out geom;

No need to store it in placeholders if you only want to join.

Jo

2017-09-14 9:21 GMT+02:00 François Lacombe <fl.infosrese...@gmail.com>:

> Hi Pierre,
>
> Thank you for your answer
> The point was to merge two area and select ways (or any object) inside the
> merged perimeter.
> That's why I awkwardly wrote the "way(area.area_1,area.area_2);" thing
>
> I took random wikidata ID for the example, and I will filter objects
> inside the area a lot more.
> Then the result won't exceed OAPI limits.
>
> If I can't merge areas to give only one filter at the end of the query,
> then I'd better do as many queries as areas
>
>
> All the best
>
> François
>
> 2017-09-14 0:55 GMT+02:00 Pierre Béland <pierz...@yahoo.fr>:
>
>> Bonjour François
>>
>> I revised your query as below, making the query in two steps and adding
>> maxsize parameter. Even then, I have problem since relation for France
>> metropolitaine requires a lot of memory. If we try to increase
>> significantly this value, the server rejects the query since it takes too
>> much resources.
>>
>> regard
>>
>> Pierre
>>
>> [maxsize:4];
>> area["wikidata"="Q212429"][admin_level=3]->.area_1;
>> way(area.area_1);
>> out geom;
>> area["wikidata"="Q212582"][admin_level=3]->.area_2;
>> way(area.area_2);
>> out geom;
>>
>> --
>> *De :* François Lacombe <fl.infosrese...@gmail.com>
>> *À :* dev@openstreetmap.org
>> *Envoyé le :* mercredi 13 Septembre 2017 17h49
>> *Objet :* [OSM-dev] Overpass filter by area A or area B
>>
>> Hi all,
>>
>> I wonder how to filter objects in several areas in Overpass API.
>>
>> I assume this query:
>> area["wikidata"="Q212429"][admin_level=3]->.area_1;
>> area["wikidata"="Q212582"][admin_level=3]->.area_2;
>>
>> way(area.area_1,area.area_2);
>> out geom;
>>
>> would give all ways contained in area_1 and area_2 as results.
>>
>> Is this possible ?
>>
>> All the best
>>
>> François
>> ___
>> dev mailing list
>> dev@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/dev
>>
>>
>>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: new high resolution imager for Ashgabat in Turkmenistan

2017-09-06 Thread Jo
I somehow managed to misspell Turkmenistan. I couldn't figure out how to
rename/move a wiki page on Trac, so I created a fresh one:

https://josm.openstreetmap.de/wiki/Maps/Turkmenistan

Now this one still needs to be removed:

https://josm.openstreetmap.de/wiki/Maps/Turkmeninstan

Sorry for the mess. I tried to add source information.

Jo

2017-09-06 22:18 GMT+02:00 Jo <winfi...@gmail.com>:

> Hi,
>
> I found out about it while proofreading WeeklyOSM.
>
> The original announcement is here: https://www.openstreetmap.org/
> user/apm-wa/diary/42195
>
> Jo
>
> 2017-09-06 22:11 GMT+02:00 simson.gert...@gmail.com <
> simson.gert...@gmail.com>:
>
>> Hello,
>> please provide a source that this background can be used for OSM by
>> adding the permission-ref property to the imagery entry. Thanks
>>
>> Klumbumbus
>>
>>
>>
>> Am 06.09.2017 um 16:36 schrieb Jo:
>>
>>> I wanted to add a new imagery source, but I might have broken something:
>>>
>>> https://josm.openstreetmap.de/wiki/Maps/Turkmeninstan
>>>
>>> When I update my imagery list in JOSM, it blanks.
>>>
>>> Polyglot
>>>
>>
>>
>>
>


Re: new high resolution imager for Ashgabat in Turkmenistan

2017-09-06 Thread Jo
Hi,

I found out about it while proofreading WeeklyOSM.

The original announcement is here:
https://www.openstreetmap.org/user/apm-wa/diary/42195

Jo

2017-09-06 22:11 GMT+02:00 simson.gert...@gmail.com <
simson.gert...@gmail.com>:

> Hello,
> please provide a source that this background can be used for OSM by adding
> the permission-ref property to the imagery entry. Thanks
>
> Klumbumbus
>
>
>
> Am 06.09.2017 um 16:36 schrieb Jo:
>
>> I wanted to add a new imagery source, but I might have broken something:
>>
>> https://josm.openstreetmap.de/wiki/Maps/Turkmeninstan
>>
>> When I update my imagery list in JOSM, it blanks.
>>
>> Polyglot
>>
>
>
>


new high resolution imager for Ashgabat in Turkmenistan

2017-09-06 Thread Jo
I wanted to add a new imagery source, but I might have broken something:

https://josm.openstreetmap.de/wiki/Maps/Turkmeninstan

When I update my imagery list in JOSM, it blanks.

Polyglot


Re: [OSM-dev] stops sequence in routes relations

2017-07-20 Thread Jo
Hi Maarten,

It's a separate function under Tools.

Jo

2017-07-20 13:25 GMT+02:00 Maarten Deen <md...@xs4all.nl>:

> On 2017-07-20 09:13, Jo wrote:
>
>> Giacomo added functionality to PT_Assistant to sort the stops as they
>> appear along the ways of the route. For this to work, the ways
>> sequence needs to be correct and continuous.
>>
>
> I have pt_assistant 33442 and I do not see that behaviour. Stops get moved
> to the front of the relation but are not sorted in order. Also not on
> repeat sort tries.
>
> Maarten
>
> 2017-07-20 7:08 GMT+02:00 Maarten Deen <md...@xs4all.nl>:
>>
>> On 2017-07-19 23:03, Jo wrote:
>>>
>>> In v2 of the PT scheme they are indeed sorted in the order the
>>>> vehicle
>>>> passes them. They are also the first block in the route relation,
>>>>
>>>
>>> In JOSM at least you have to manually sort the stops in the correct
>>> order. JOSM will take care to order stop and platform roles in the
>>> right order (first stop then platform), but will not change the
>>> order of stop roles.
>>>
>>> Maarten
>>>
>>> followed by a sequence of ways in the order they are traveled.
>>>
>>> Polyglot
>>>
>>> 2017-07-19 21:53 GMT+02:00 Mohamed Abou-Hussein
>>> <abouhussein.moha...@gmail.com>:
>>>
>>> Are stops in relations that represent routes such as tram sorted
>>> out
>>> in the sequences it will be taken by the mean of transportation. For
>>> example, train, tram .. etc?
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> MOHAMED ABOUHUSSEINE-mail: abouhussein.moha...@gmail.com
>>> Phone: 0176-2130 4541
>>>
>>
>> ___
>> dev mailing list
>> dev@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/dev [1]
>>
>>
>>
>> Links:
>> --
>> [1] https://lists.openstreetmap.org/listinfo/dev
>>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] stops sequence in routes relations

2017-07-19 Thread Jo
In v2 of the PT scheme they are indeed sorted in the order the vehicle
passes them. They are also the first block in the route relation, followed
by a sequence of ways in the order they are traveled.

Polyglot

2017-07-19 21:53 GMT+02:00 Mohamed Abou-Hussein <
abouhussein.moha...@gmail.com>:

> Are stops in relations that represent routes such as tram sorted out in
> the sequences it will be taken by the mean of transportation. For example,
> train, tram .. etc?
>
> --
>
> Best Regards,
>
> *Mohamed AbouHussein*
> E-mail: abouhussein.moha...@gmail.com
> Phone: 0176-2130 4541
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Find nodes that belong to multiple ways, where those ways belong to route relations

2017-05-15 Thread Jo
Hi,

I came up with this:

inview (junction=roundabout  OR ways:2- child junction=roundabout )

It almost does what I need. I would like to find all the nodes that belong
to multiple ways, with the added condition that these ways are members in
route relations. Is that possible?

Polyglot


Google Summer of Code 2017 JOSM PT_Assistant plugin

2017-05-04 Thread Jo
Giacomo Servadei was accepted  for continuing development on the JOSM
PT_Assistant plugin. Darya Golovko started to work on this plugin last
year  and she succeeded in making the mapping and correcting of public
transport route relations a lot more convenient and efficient. She will be
co-mentoring the project this year. Michael Zangl will help by doing review
of the Java code, even though he is mentoring another JOSM related GSoC
project.

I'm not entirely sure if it's wise to cross post this message (so sorry if
it wasn't)

* To the JOSM-dev mailing list: please welcome Giacomo. He may have some
questions for you along the way. And maybe some of you want to help out by
looking at the code too.

* To the public_transport mailing list:

https://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2017/PT_Assistant_Plugin

The above is what I have in mind to work on this year. Maybe you see things
I missed, or you want to help with beta testing. Please let me know. If the
plugin has issues, don't hesitate to create tickets on JOSM's bug tracker (
http://josm.openstreetmap.de/newticket)

I'm prepared to do Hangout sessions to discuss mapping of public transport
in OpenStreetMap.

I also want to extend the scope of the plugin, so  it works for hiking and
cycling route relations. The semantics are a bit different than public
transport version 2 route relations, but a lot of what is in the plugin can
be reused for those itineraries.

Due to how GSoC works, it may take until the end of June before we start
seeing results. During the month of May we are mostly doing preparation
during the community bonding period.

The plugin is already available to work with in JOSM though. And it is
already very useful for detecting problems and fixing some of them. So
please try it and give us some feedback.

Polyglot


Re: [OSM-dev] Programatic reconstruction of postal code areas

2017-03-29 Thread Jo
The Netherlands are a very strange beast concerning postal codes... :-)
Definitely an example where such an approach wouldn't make sense. OTOH, you
have complete address data for every single building in The Netherlands, so
there is also no real need for it (anymore).

Polyglot

2017-03-29 11:07 GMT+02:00 Maarten Deen :

> On 2017-03-29 10:20, Tom Hughes wrote:
>
> Rather they are just defined by a list of addresses, being a set of
>> addresses that are a convenient group to deliver to.
>>
>> Now obviously you can draw any number of shapes around those addresses
>> but none of those shapes is in any way an official or definitive
>> boundary for the postal code.
>>
>
> True, and depending on the level of detail of the postal code this will be
> very artificial boundary in the Netherlands.
> The number part of a dutch postal code would in most cases result into a
> proper boundary, but if you go to the number+letter part, wou will include
> streets in the area that do not belong to that postal code, but will also
> not be in the shape of the proper postal code because there are no houses
> there. The street behind my house will be one such case.
>
> So, you will be able to find the proper postal code beloning to a house,
> but given a certain postal code, you could get directions to the wrong
> location.
>
> Regards,
> Maarten
>
>
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Programatic reconstruction of postal code areas

2017-03-29 Thread Jo
I'm in Belgium, so I'm mostly familiar with postal codes here. There are
some oddities, but mostly they are not too illogical and it is possible to
draw polygons around/in between them.
It seems Alex already did this exercise for Austria and Switzerland, so I
think it's possible there as well. He'll probably needs to talk to the
mailing lists for each country separately to figure out whether there is
willingness to define (initial versions of) these boundaries.

Polyglot

2017-03-29 10:46 GMT+02:00 Tom Hughes <t...@compton.nu>:

> On 29/03/17 09:41, Jo wrote:
>
> For postal_code boundaries, they will very often follow existing
>> boundaries, except where they don't... so I would say it is possible to
>> draw them by mostly following the existing admin_boundaries.
>>
>
> So now you appear to be talking about the UK which I do know about and
> which definitely doesn't have boundaries as such.
>
> Royal Mail as I understand it defines each post code by a list of
> addresses. They do also provide a centroid point derived from that list but
> I don't believe they provide any sort of boundary.
>
>
> Tom
>
> --
> Tom Hughes (t...@compton.nu)
> http://compton.nu/
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Programatic reconstruction of postal code areas

2017-03-29 Thread Jo
What I did, at some point when I was trying to figure out zones of bus
stops, was to create a MapCSS style which gave me different background
colours for each numbered zone. This helped me to visually find the
'outliers', based on the ones that I did already figured out the zone for.

For postal_code boundaries, they will very often follow existing
boundaries, except where they don't... so I would say it is possible to
draw them by mostly following the existing admin_boundaries. If we ever
want to draw parishes, we'll probably have to 'wing it' in a comparable
way. To me this feels like how we started drawing everything all the way
back when OpenStreetMap was a blank canvas. We start with something, if
it's wrong we correct it and slowly but surely we get to a point where we
have the best data. And possibly OSM becomes the only place where those
shapes can be found. It's unlikely they are exactly what the post offices
use, but it's even more unlikely that the post offices will ever share them
in a way we can use them. And if all the houses with that post code are
within them, they are 'good enough'.

Saying that you should contribute them to Nominatim might be 'the right
thing to do', but then we lose the possibility to improve them
incrementally, which is exactly what OpenStreetMap excels in.

Polyglot

2017-03-29 10:20 GMT+02:00 Tom Hughes :

> On 29/03/17 08:58, Frederik Ramm wrote:
>
> On 29.03.2017 09:10, Alex K wrote:
>>
>>>   * For one, this type of information is already part of
>>> OSM: http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dpostal_code
>>>
>>
>> Generally we don't like data that is impossible (or difficult e.g.
>> "knocking on doors") to verify on the ground, but we do make exceptions
>> for admin boundaries and, usually, postal code boundaries.
>>
>
> If the postal code boundary is a genuine thing that exists then sure.
>
> I don't know about the countries in question, but in the countries that I
> do know about there is no such thing as a postal code boundary because the
> authority that assigns postal codes doesn't do so using geographic areas
> like that, and doesn't special any specific boundary.
>
> Rather they are just defined by a list of addresses, being a set of
> addresses that are a convenient group to deliver to.
>
> Now obviously you can draw any number of shapes around those addresses but
> none of those shapes is in any way an official or definitive boundary for
> the postal code.
>
> Tom
>
> --
> Tom Hughes (t...@compton.nu)
> http://compton.nu/
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Routes/relations of trams

2017-03-27 Thread Jo
Hi Mohamed,

I'm curious about the reason to post this question in osm-dev. Are you
developing software related to these tram routes? In which region are you
working on those routes?

Last year I mentored a Google Summer of Code project which validates routes
that adhere to v2 of the Public Transport standard.

If you like I can give a demo during a hangout on how to use it. In fact
I'm having such a hangout with a student who applies for this year's
summber of code tonight at 20h30 CEST. You're welcome to join.

Polyglot



2017-03-28 2:50 GMT+02:00 Mohamed Abou-Hussein <
abouhussein.moha...@gmail.com>:

> I have a questions about the structure of the relations that represents
> tram/train .. etc routes I hope someone can clarify.
>
> Are the nodes, ways in sequence. I,e in sequence from start to end
> representing the direction? Another thing, I find that the stops are listed
> then followed by nodes and ways. The stops are listed in sequence as well
> as the nodes are?
>
> One final inquiry, If I want to get the exact nodes/ways between 2 tram
> stations, Is there a clear way how to do that since the stops and the
> nodes/ways representing the ways are each separated?
>
> --
>
> Best Regards,
>
> *Mohamed AbouHussein*
> E-mail: abouhussein.moha...@gmail.com
> Phone: 0176-2130 4541
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSOC 2017 libosmscout: Implementation of a OpenGL ES renderer

2017-03-13 Thread Jo
Students have until April 3rd to submit their proposals. Time to get to
work, but no need to hurry. It's better to make sure to get things right.
It's a good idea to let your potential mentor review the proposal before
submitting it.

Polyglot

2017-03-13 10:32 GMT+01:00 Tim Teulings :

> Hello Fanny,
>
> I am Fanny Monori, a Computer Engineering MS student from the University
>> of Debrecen, Hungary. I wish to participate in Google Summer of Code
>> this year, and I am interested in the "libosmscout: Implementation of a
>> OpenGL ES renderer" task, and I am looking for someone to help me
>> getting started with it.
>>
>
> I'm Tim Teulings, the main author (but in recent times not the only
> author) of libosmscout. I wrote the project idea and also likely would be
> your mentor (though the rest of the libomscout community will likely help,
> too).
>
> Hello and welcome to OpenStreetMap and libosmscout :-)
>
> I live in Dortmund, Germany so my time zone is CET / GMT +1. I normally
> will answer in the evening.
>
> I have a bachelor's degree in Computer Science, and during my studies I
>> became familiar with OpenStreetMap. As part of a course, students had to
>> work on projects that are using OpenStreetMap. I really liked working
>> with it, and I would love to contribute to it. I also studied computer
>> graphics, and because of that I have experience using OpenGL.
>> In your Google Summer of Code page you have mentioned that you might
>> require a small exercise or prototype. Do you have any qualification
>> task in mind regarding this project?
>>
>
> Some questions:
> * Libosmscout is written in C++. Are you familiar with C++?
> * One can develop for Libomscout under Linux, Windows, Mac. I suggest
> though to work under Linux, since this is the most convenient regarding
> building the software (and likely working with OpenGL). OK for you?
> * Is the task clear for you? Do you have any front up questions?
>
> I suggest the following next steps:
> * Subscribe to the mailing list of libosmscout (and write a small
> introduction mail to make sure people know who you are and thus give you as
> much help as you need):-)
> * Look at the documentation available and try to get the existing code
> running (that means, get it to build, import some OSM data export and get
> the OSMScout2 demo to show you the map).
> * Look at the rendering pipeline for one of the existing renderer (Qt,
> cairo, agg, the others are incomplete) (interaction with Database,
> MapService, StyleConfig and MapPainter base class). This should give you
> deeper inside how the existing code is doing the rendering and which
> functionality is already there (and which is not). There is some
> rudimentary OpenGL backend code. Just ignore that. It will not help you.
> Its bad code and bad design.
> * I assume that the OpenGL backend will be different in some aspects,
> because of the constraints and principles of OpenGL. So a likely next step
> would be to make a proposal how your code will look like structurally, how
> your rendering pipeline will work in principle ("describe the planed
> design"). How will you get the drawing primitives required working? How
> will you interact with the styling engine?
> * Part of the design will likely also be some discussions on the list
> regarding implementation alternatives. Make suggestions.
> * If time allows a very simple demo would be helpful to show your OpenGL
> capabilities, though we should already see some of it based on your design
> suggestions. I assume that getting "some" rendering to show is already a
> rather huge part of the implementation effort. So there will be no time for
> this befor the official proposal. Still, having something to show would be
> helpful.
> * Next step would be a concrete implementation plan and a more precise
> description of what must be implemented to succeed and which optional
> features can get implemented if time allows. Though a concrete plan can be
> mad later later than the 20.3. (see overall timeline below).
>
> You can find the libosmscout homepage at sourceforge:
> http://libosmscout.sourceforge.net/
>
> The documentation should already answer many questions.
>
> Note that the project also has a github page:
> https://github.com/Framstag/libosmscout
>
> We do use the sourceforge mailinglist but the github git repository is
> (much) more current than the sourceforge one. We also (mainly) use the
> github issue tracker.
>
> If you have any questions => ask on the libomscout mailing list. If you
> find bugs, make an issue :-)
>
> OSM GSoC 2017 page: https://wiki.openstreetmap.org
> /wiki/Google_Summer_of_Code/2017
>
> Overall time line (Google page): https://summerofcode.withgoogl
> e.com/how-it-works/#timeline
>
> If I understand correctly you have a round 1 week for official
> registration and submission so we - especially you! - have to hurry up.
>
> --
> Gruß...
>Tim
>
> ___
> dev 

Re: malenki is dead

2016-11-29 Thread Jo
We will all miss him. A mapping project to his tribute was set up on the
Spanish Tasking Manager: http://tareas.openstreetmap.es/project/38#

It's the region where the accident happened.

Polyglot

2016-11-29 9:44 GMT+01:00 Vincent Privat :

> Hi,
> I just learned this sad news: malenki died in a hiking accident in Spain:
> https://twitter.com/SK53onOSM/status/803229372949741569
>
> He was a long-time OSM contributor and helped the project in many ways:
> https://www.openstreetmap.org/user/malenki
>
> Especially with JOSM where he contributed to the German translation and
> submitted a lot of valuable patches and bug reports across the last eight
> years:
> https://www.openstreetmap.org/user/malenki/diary/39182
> https://josm.openstreetmap.de/query?reporter=~malenki=
> reporter=id=summary=type=status=
> priority=milestone=component=time=
> changetime=2=1=changetime
>
> He was a passionate man, I'll miss him :(
> ___
> josm-dev mailing list
> josm-dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


PublicTransportRouteTest.java

2016-05-19 Thread Jo
Hi Don,

I found the following code:
https://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/data/validation/tests/PublicTransportRouteTest.java

I'm using the result of it quite often lately, especially route contains gap

As you may know, I'll be mentoring Darya to create a new public transport
plugin. At the moment we're trying to figure out how to create the UI for
it. Extending the relation editor seems like a good idea.

The validator also seems like an entry point that makes a lot of sense. For
instance we could make the tests more elaborate:

- are buses going through streets against a oneway restriction (or a split
roundabout) or over highways that aren't suitable?
- are alle stops served?

in the case of gaps, there are some cases where  the fix button would be
able to remedy the problem automatically. Sometimes it's enough to resort
the ways. Sometimes it's enough to add one connecting way (possibly
splitting it on the connecting node). Sometimes it's enough to remove the
ways where the bus would go contraflow.
Sometimes it's necessary to split a way and remove the 'overshoot'.

It's hardly ever rocket science for routes that were OK at some point but
that got 'broken' due to users editing.

The inital idea was to create a new plugin, but integrating it like this
would mean that Darya starts working in core. I don' t know if that would
pose a problem.

Alternatively, clicking the fix button could invoke code in the plugin. But
1. I don't know if that is possible and 2. what happens in that case if the
plugin is not installed? Is it possilble to suggest to the user to install
it?

The main intention is, of course, to enable/empower the user to fix the
issues themselves before they upload.

Ideally in the most automated way feasible. But we'll need to ask for
confirmation. I was thinking to show the suggested fix in a separate layer.
Or possible there are more suggestions. Then we could colour code them and
assign letters to them to make confirmation easy.
There will be cases where a fix in 1 route will potentially be valid for
fixing several other route relations. I'd like to implement that as well.
Especially as we create a route relation per variation, this is a potential
enormous time saver.

Anyway, the idea is to make creating and maintaining public transport
routes as painless as possible, so that more people will start doing so.

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


Re: [josm-dev] JOSM credited in OpenJDK Quality Outreach report (March 2016)

2016-03-11 Thread Jo
Yay!

Polyglot

2016-03-11 21:21 GMT+01:00 Vincent Privat :

> See
>
> https://wiki.openjdk.java.net/display/quality/Quality+Outreach+Report+March+2016
>
> :)
> ___
> josm-dev mailing list
> josm-dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


Re: [OSM-dev] Regarding POI webapp | gsoc16

2016-03-01 Thread Jo
Hi Pinkesh,

Nobody is assigned to any tasks yet. You'll first have to write a proposal
and then the mentors will have a hard  choice to make. It's best to simply
ask your question. In this mailing list  is a good place to ask.

Polyglot

2016-03-01 15:34 GMT+01:00 Pinkesh Badjatiya :

> Hello,
>
> I am very much interested in working on developing the POI web app for
> OSM under gsoc2016. I had a few questions in mind. Should i ask them
> here? Is anyone else already assigned to this task?
>
> Guidance on how to proceed would be appreciated.
>
> --
> Pinkesh Badjatiya
> pinkeshbadjat...@gmail.com
> IIIT Hyderabad
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSOC: JOSM Plugin to assist with adding public transport routes

2016-02-15 Thread Jo
I proposed to create the plugin as a GSoC project and I think it remains
valid as a proposal. The code written for Poland and another
proof-of-concept written in Python can serve as an 'inspiration', but the
best way would be to start mostly with a clean slate.

We need a proper plugin to assist us with creating PT routes, just in order
to be able to maintain the routes we have and to create new ones.

There are 2 problems with these routes:
- they are fragile, other editors don't always take them into consideration
when editing OSM data or understand them
- they are prone to change. Itineraries tend to change relatively often

There is another problem: there are an enormous lot of them and manually
changing them when changing the underlying road network changes is a lot of
work. Most contributors get discouraged by this, which is understandable.

So what do we need?
A tool to detect broken/interrupted route relations
A tool to mend existing relations. Sometimes they are broken because ways
are split and not all parts get (re)added. Sometimes they are
broken/interrupted because ways are recombined disregarding the relation,
so there is an 'overshoot'
A tool that can create (part of) a route between a series of stops.
Since I don't mind doing this once manually, my solution was as follows:
Try to find another relation with the same sequence of stops, that already
has an uninterrupted sequence of ways.
Figure out which of those ways lie between the first and last stop (for as
long a sequence as possible) and copy those ways over.

The result of that 'exercise' is a route relations that was usually still
interrupted. For those stretches, it may make sense to try and determine a
plausible path, propose to the user and add to the route relation when OK,
try to figure ou another path if not. At some point give up and let the
user do it him/herself. The user can also accept a solution and then mend
it to what the bus actually does.

If the user accepts a solution, apply it and do what is needed to the road
network (it's likely ways will have to be split).

I'm willing to demonstrate all this during a hangout. Since you are in
India, time zones work against us... our European evening is very late at
night for you. I can also create a screencast video.

Polyglot

2016-02-15 19:00 GMT+01:00 Daniel Koć :

> W dniu 15.02.2016 18:49, Vishal vijayvargiya napisał(a):
>
> post one on josm-dev mailing list. I hope project remains in
>> consideration and isn't closed, especially after discovery of existing
>> plugin for PT in polish cities :)
>>
>
> This plugin needs some love (at least making it more generic) and I'm not
> sure if this code is proper form - sometimes reimplementation is easier
> than just patching. Also I'm not sure if the main developer is still
> interested in this work.
>
> However the main idea (semi-automated routing through the known stops
> network) is a way to go - I don't remember now if it was me who have
> proposed this approach, but it's possible. =}
>
>
> --
> "Завтра, завтра всё кончится!" [Ф. Достоевский]
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSOC: JOSM Plugin to assist with adding public transport routes

2016-02-15 Thread Jo
Hi Daniel,

I don't see that plugin in the plugins list of JOSM. How does one use it
and more importantly, how does one learn about its existence? I would like
to test it, to see whether it already does most of what we need for PT in
Belgium.

Polyglot

2016-02-15 13:07 GMT+01:00 Daniel Koć :

> W dniu 14.02.2016 22:17, Vishal vijayvargiya napisał(a):
>
> I am a master's student in algorithm and complexity optimization group
>> at Simon Fraser University Canada. After going through OpenStreetMap
>> wiki and project pages of OpenStreetMap, I came across GSOC project of
>> "JOSM Plugin to assist with adding public transport routes".
>>
>
> You may be interested in such a plugin we use for updating public
> transport routes in some polish cities:
>
> https://github.com/mar5991/easy-routes
>
> --
> "Завтра, завтра всё кончится!" [Ф. Достоевский]
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [josm-dev] IO Exception - unable to upload data

2016-02-14 Thread Jo
Hi Bob,

When this happens, you can try the following:

Ctrl-f,
modified type:node

Then File/Upload selection

This can also help when there are conflicts.

Don't forget to upload the rest of the data.

Polyglot

2016-02-14 14:16 GMT+01:00 Bob Hawkins :

> I have received the following message twice recently when attempting to
> upload my edits:
> IO Exception
> Failure to upload data or to download data from ‘
> https://api.openstreetmap.org/api/0.6/’ due to a problem with
> transferring data.  Details (untranslated): Stream closed
> I saved my current data to a .osm file on the first occasion and was able
> to upload the edits later.  This has never happened to me before these two
> events and I am disturbed by the message’s appearance.  I have been working
> for a considerable time on this particular changeset – could that be a
> reason?
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> ___
> josm-dev mailing list
> josm-...@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-...@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] Change credentials from Python script in JOSM

2016-01-27 Thread Jo
Hi,

I'm creating a prototype in Python to add wikidata entries and tags during
an import of schools. To upload the school data, there is this silly rule
that this needs to be done using a separate import account. It doesn't
matter how I feel about this requirement, but my main problem with it, is
that I constantly forget to switch back and forth.

So, what I would like to do is create script that changes to the import
account and uploads the node with the imported data, then switch back to
the regular account and upload buildings, school perimeter and access roads.

As said, I would at the same time, create wikidata item to which I want to
add coordinates and add the node id url as a reference. By doing it right
at the time of the import, I hope to avoid occasional licensing issues.

It would be nice if this could become part of the importing workflow, while
still allowing to upload each item with the proper account.

An example wikidata entry:

https://www.wikidata.org/wiki/Q22309756

The node for the school gets this as:

wikidata=Q22309756

If you look at the wikidata entry, all the parameters are sourced as

reference URL: http://www.ubos.org

The coordinate location 
is sourced as https://www.openstreetmap.org/node/3966915559

Making it clear where the coordinates came from and easy to jump to it. The
coordinates are georeferenced on Bing though, at the time of upload, or
just before.

The reason why I want to make uploading part of my script, is that creating
the wikidata entries becomes a 2 step process. First use all the imported
data to create a wikidata item and have a Q-number. Assign this number to
the wikidata key. Then upload, so the node starts to exist on the
Openstreetmap side and it becomes possible to refer to it when adding the
coordinates to Wikidata.

I hope this makes sense somehow. Anyway, I got stuck on automating the
switching of the accounts.

I can bluntly do the following:
print Main.pref.put("osm-server.username", 'PolyglotImport')

And I see the change happening in preferences.xml

Unsurprisingly, it's not possible to upload anymore after doing this, until
I go into settings and set the osm server url back to its default setting.

Here is the prototype script I'm creating:
https://github.com/PolyglotOpenstreetmap/Python-scripts-to-automate-JOSM/blob/master/CreateQuickStatementsForWikidata.py

The coding style is not great at all and it would be better to use the
wikidata API directly instead of using this kludge via QuickStatements
through the browser. Hopefully somebody may become inspired into turning it
into a proper plugin or add the functionality to the Wikipedia plugin.

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


Re: [OSM-dev] Retrieving nodes with a "wikipedia=" OSM tag in a certain area via an OSM API?

2016-01-02 Thread Jo
Overpass API is your friend. you can discover how it works using Turbo
Overpass. This may also be of interest to you:

https://en.wikipedia.org/wiki/Module:OSM

Try it from one of these pages:

https://en.wikipedia.org/wiki/Special:WhatLinksHere/Module:OSM

And you can hit the ground running, as it creates working queries to
experiment with.

Polyglot

2016-01-02 10:03 GMT+01:00 Oleksiy Muzalyev :

> Hi,
>
> I wrote a web-application for planning Wikipedia photography expeditions:
> http://ausleuchtung.ch.local/geo_wiki/
>
> Click on the map and it shows all Wikipedia articles geo-locations in the
> radius of 10 km around the click. Wikipedia language is changed by
> replacing "en" for English on "fr" for French, "de" for German, etc.
> Web-application memorizes the map position, zoom level, and language of the
> last request.
>
> This web-application is based on Media Wiki API [1]. All the heavy lifting
> is done by the Media Wiki API, the web-application is just about 20 lines
> of code. But it works surprisingly robustly all over the world, for all
> Wikipedia languages.
>
> Now I want to find in a similar way the geo-locations of Wikipedia
> articles, however not via Wikipedia articles coordinates, but via the OSM
> nodes (or areas) which have "wikipeida=", "wikimedia_commons=", "wikidata="
> tag. Is there a way to do it via an OSM API? Without parsing big dump files?
>
> I repeat for clarity - I need to retrieve coordinates of nodes which have
> the OSM "wikipeida=", "wikimedia_commons=", "wikidata=" tag in the radius
> of 10 kilometres. I started to explore the Osmosis, the MapQuest Geocoding
> API, etc., but it seems to be an uncommon request. Is it possible at all?
>
> With best regards,
> Oleksiy
>
> [1] https://en.wikipedia.org/w/api.php
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Retrieving nodes with a "wikipedia=" OSM tag in a certain area via an OSM API?

2016-01-02 Thread Jo
You're welcome. Maybe it's a good idea to use a regular expression on

image=

tags that point to commons.

Jo

2016-01-03 1:29 GMT+01:00 Oleksiy Muzalyev <oleksiy.muzal...@bluewin.ch>:

> Hello Polyglot and mmd,
>
> Thank you for the information and for the sample query. Now it is possible
> to display geolocatios of Wikipedia articles either by coordinates in the
> articles themselves, or by OSM tags assigned to nodes (red circle marker
> for wikipeda tag, violet circle marker for wikimedia_commons tag):
> <http://ausleuchtung.ch/geo_wiki/>http://ausleuchtung.ch/geo_wiki/
>
> It is a bit more complicated to display a geolocation when the wikipedia
> tag is assigned to an area or a way. It will try to implement it later.
>
> <http://ausleuchtung.ch.local/geo_wiki/>Thank you again for pointing me
> in the right direction.
>
> With best regards,
> Oleksiy
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Upload streets into OSM

2015-11-13 Thread Jo
What problem exactly? Streets are addded all the time.
Jo
Op 13-nov.-2015 18:41 schreef "Gmail" <yve...@gmail.com>:

> This happens every seconds: editors post files to the API to add, delete
> or modify streets and more.
> http://wiki.openstreetmap.org/wiki/API_v0.6
> Yves
>
> Le 13 novembre 2015 16:54:10 UTC+01:00, Alexandros Tsakpinis <
> alexandros.tsakpi...@el2.de> a écrit :
>>
>> Dear Developers,
>>
>> we've got one question. Is it possible to upload a file into Open Street Map,
>> which creates a street in OSM? If this is not possible, how can we create
>> something like this? Or has anyone a tool for that problem??
>>
>> Best regards,
>> Alexandros Tsakpinis
>>
>> --
>>
>> dev mailing list
>> dev@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/dev
>>
>>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] New Map Style feedback

2015-11-02 Thread Jo
I find it strange to see many people arguing that there should be a

> similarity between street signs and the colour used on the map. Germany,
>> for example, uses blue motorway signs exclusively,
>>
>
> I'm not sure if I read this right, but the Netherlands, Belgium and France
> also use blue signs to indicate motorways.
>
> Belgium uses green signs for motorways. On maps I always saw orange/yellow
with two red bands. I guess I only look at Michelin's maps before...

 I had gotten used to the odd 'UK' colour scheme. I guess we'll get used to
this new colour scheme as well, eventually.

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


Re: [josm-dev] Opening the relation editor programmatically ?

2015-06-23 Thread Jo
Hi Matthieu,

I finally managed to figure it out:

import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor as
RelationEditor
RelationEditor.getEditor(mv.getEditLayer(), newRelation,
None).setVisible(True)

2015-04-30 12:44 GMT+02:00 Matthieu Gaillet mgwebm...@fastmail.fm:

 Hi,

 I’m using a small Python script (launched using the scripting plugin) to
 create a relation based on the currently selected ways. I’d like to open
 this newly created relation in the relation editor aftermath so that one
 can review the result, ensure continuity, and so on.

 How can I do that programmatically ?

 Thanks

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

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


Re: [josm-dev] Common presets for OSM editors?

2015-06-23 Thread Jo
Long time JOSM user here. While following this thread my idea would also
have been to write conversion scripts to get from one format to another,
and indeed coming up with a common denominator from which the different
formats can be distilled would seem like the next logical step in that
train of thought.

I do understand that it's not nice to expect translators to duplicate their
efforts. We're all volunteers and our time is priceless, just like the time
of the developers and the mappers.

We should be able to find a system that effectively reduces the effort to
create, maintain and translate presets for all the editors that are out
there.

This will also enhance consistency.

The same should be true for validator rules, when these other editors will
support them at some point.

Now I also understand Dirk's point of view. Why couldn't the developers of
iD have opted to use JOSM's format to begin with? Why did they choose to
reinvent the wheel? Was the format that bad/unsuitable when development on
iD started?

Polyglot

2015-06-23 9:03 GMT+02:00 Dirk Stöcker openstreet...@dstoecker.de:

 On Mon, 22 Jun 2015, Ian Dees wrote:

  I created a repo to keep track of this here:
 https://github.com/osmlab/editor-presets

 I understand Dirk and the JOSM team's position, so let's stop clogging up
 their inboxes and take further discussion to tickets on this repo?

 To get started, I like your suggestion, Daniel; let's start with the core,
 make it transformable to the existing editor preset styles, and then
 expand
 where needed. I'm indexing the existing formats here:
 https://github.com/osmlab/editor-presets/issues/1


 Which will actually lead to what? Another place where the information is
 duplicated. Seems you again ignore the dropping what we have in favor of
 something else is extremely unlikely. And now again you suggest exactly
 that again.

 Instead of any tries to improve situation or working together you come
 again with the suggestion to start something new from scratch and then
 later probably ask us to drop our solution. And you already know the answer
 from last time.

 And BTW with the MIT license you are now allowed to use any of the stuff
 JOSM already has, so you really need to start from scratch.

 Ciao
 --
 http://www.dstoecker.eu/ (PGP key available)

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

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


[josm-dev] unit testing and functional testing of plugins

2015-06-22 Thread Jo
Hi,

For some peace of mind and to avoid regression, while boldly adding
functionality, I'd like to encourage the student I'm mentoring to write
tests for the Mapillary plugin.

I found this folder, which contains tests:

https://josm.openstreetmap.de/browser/josm/trunk/test

Do tests which test a plugin go in a dedicated folder as part of the
plugin? I guess that would make most sense. Or is it possible to add a
condition which tests first for the availability of the plugin one wants to
test?

I tried to find this information here
https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins, but
TDD is not mentioned there at all.

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


Re: [josm-dev] unit testing and functional testing of plugins

2015-06-22 Thread Jo
I updated the wiki:

https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins

Merci!

Jo

2015-06-22 11:53 GMT+02:00 Vincent Privat vincent.pri...@gmail.com:

 Hi,
 Good initiative. Tests are always welcome.
 To add new unit tests, look at those existing plugins:
 - alignways
 - elevation
 - graphview
 - opendata
 - turnrestrictions
 - wikipedia

 and copy the same arborescence. Please take care of SVN properties
 (externals and ignore).

 Then add your plugin to the list of tests being run in the common build
 file:

 https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/build.xml#L223

 It will then be run in the Jenkins build, see:

 https://josm.openstreetmap.de/jenkins/job/JOSM-Plugins/lastCompletedBuild/testReport/

 Updating the wiki is also welcome :)


 2015-06-22 9:13 GMT+02:00 Jo winfi...@gmail.com:

 Hi,

 For some peace of mind and to avoid regression, while boldly adding
 functionality, I'd like to encourage the student I'm mentoring to write
 tests for the Mapillary plugin.

 I found this folder, which contains tests:

 https://josm.openstreetmap.de/browser/josm/trunk/test

 Do tests which test a plugin go in a dedicated folder as part of the
 plugin? I guess that would make most sense. Or is it possible to add a
 condition which tests first for the availability of the plugin one wants
 to
 test?

 I tried to find this information here
 https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins, but
 TDD is not mentioned there at all.

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



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


[josm-dev] debugging plugins

2015-06-22 Thread Jo
Hi,

When one develops a plugin for JOSM, the compiled jar file is used. That is
quite convenient, but it seems to make it impossible to run a debugger from
Eclipse on the code of the plugin. One can always print messages to the
console, but the ability to work with breakpoints and such is priceless.

Is there a possiblity to use a debugger on plugin code in another way, that
we simply didn't find on our own?

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


Re: [josm-dev] debugging plugins

2015-06-22 Thread Jo
That's great!

Many thanks,

Jo

2015-06-22 12:05 GMT+02:00 Malcolm Herring malcolm.herr...@btinternet.com:

 On 22/06/2015 10:54, Vincent Privat wrote:

 Yes it is possible. Simply add the Eclipse project of your plugin to the
 list of projects being used to search for sources in your debug
 configuration.


 Also, in Debug Configurations set Main class to JOSM



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

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


[josm-dev] validator rule for public_transport=platform

2015-05-07 Thread Jo
Hi,

I'm getting messages from the validator claiming public_transport=platform
can only be used on way or closed_way. This is not true. It can be used
perfectly well on nodes. In that case the node represents the position of
the pole. I just checked it on the wiki.

http://wiki.openstreetmap.org/wiki/Buses

All the poles of Belgian transport companies De Lijn, TEC and MIVB/STIB are
mapped on nodes. If there is a platform, it is mapped, but that doesn't
replace the pole, nor does it get added to the route relations. All the
extra details like name, ref, route_ref etc also remain on the node
representing the pole. The platform ways and the stop_positions are
optional. Nice to have, but not at all crucial. The NODES with

highway=bus_stop
public_transport=platform
bus=yes

railway=tram_stop
public_transport=platform
tram=yes

are what define the bus/tram stops over here and those get the details and
those get added to the route relations.

So please correct the validator rule.

Kind regards,

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


Re: [josm-dev] Registering a keyboard shortcut for a script ?

2015-04-26 Thread Jo
The script is written in Jython by means of the scripting plugin.

Jo

2015-04-26 14:30 GMT+02:00 Matthieu Gaillet mgwebm...@fastmail.fm:


 Hi,

 Simple question, but I’m afraid there will ne no easy answer : is there
 any way to register a keyboard shortcut for a user script ?

 Thanks,

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

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


Re: [josm-dev] JOSM Search question

2015-04-16 Thread Jo
child(2) or child(3) will find any object which has a parent (way or
relation) with 2 or 3 in its values.

That's not what Dirk was trying to search for.

Polyglot

2015-04-16 21:22 GMT+02:00 Nelson A. de Oliveira nao...@gmail.com:

 Why I can't find anything with child(any int number)?
 What am I missing?

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

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


Re: [OSM-dev] Summary of GSoC applications

2015-03-27 Thread Jo
Hi Peter,

Could you elaborate where we go from here. If I understood correctly, we
can enter into dialogue with the candidate students to discuss their
applications and have them further improve them.

By when should we assign scores to them? When does it make sense to start
scoring? Should all mentors and co-mentors and dementors assign scores to
all applications?

What to do with the applications which merely indicate the student's
willingness to participate in the GSoC, but who didn't actually select a
project they wanted to work on?

Good night,

Polyglot

2015-03-27 23:37 GMT+01:00 Peter Barth osm-p...@won2.de:

 Hi all,

 the deadline has passed and I'd like to notify you about the
 current status: We have the amazing number of 54 applications,
 made by 48 different students for more than 15 project ideas.

 I've had a look at some of them in more details and I have to
 tell you, that it'll be hard to choose which students we take as
 we have many great students and applications.

 Anyway, I think this will be a fun GSoC.

 Happy Hacking,
 Peda


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

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


[josm-dev] Fwd: [OSM-dev] Reminder: GSoC Application Deadline

2015-03-26 Thread Jo
-- Forwarded message --
From: Peter Barth osm-p...@won2.de
Date: 2015-03-26 22:32 GMT+01:00
Subject: [OSM-dev] Reminder: GSoC Application Deadline
To: d...@openstreetmap.org


Hi all,

just a quick reminder: Tomorrow, 27.3. at 19:00 UTC is the
deadline for student applications. So if you want to apply for
GSoC and haven't done so yet, do it now ;)

I'd also like to ask all mentors and possible mentors and backup
mentors to sign in to melange now. I'll post a bit more details
soon about what you have to do regarding reviewing and ranking.

Thanks,
Peda


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


Re: [OSM-dev] GSOC - Improve GraphHopper Routeplanner on Android

2015-03-26 Thread Jo
There has been some interest, but I don't see any actual proposals for it
yet. If you want more details about a GraphHopper project, maybe it's best
to ask on this mailing list:

https://lists.openstreetmap.org/pipermail/graphhopper/2015-March/thread.html

I expect at least one proposal to appear for it by the time the deadline
passes in about 17 hours.

Jo

2015-03-27 0:09 GMT+01:00 Aleksander Ciepiela alekciepi...@gmail.com:

 Hello,

 I found this project for this year's Google Summer Of Code.
 I know that the application deadline is tomorrow, but this projects seems
 really nice to me. I like Android, Java and algorithms so it is like a
 perfect combination for me.

 Could you tell me whether someone else had already been interested in this
 project and are there any chances to get involved in this?

 Thanks in advance for any reply. Once again, I know it is late, but maybe
 not too late?

 Regards,
 Aleksander Ciepiela

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


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


Re: [OSM-dev] Request more information about GSoC the project: JOSM Plugin to work with Mapillary images

2015-03-24 Thread Jo
Hi Michelle,

JOSM is indeed an editor of Openstreetmap data written in JAVA.

Before Mapillary was around, it was already possible to work with pictures
in JOSM. These pictures were either geocoded already or one could use a GPX
track recorded during the survey, then combine the pictures based on their
time stamps.

This means a lot of the functionality we need is already available in JOSM.

Now that Mapillary created apps for all kinds of smartphones, things have
changed considerably. On the one hand it became easier to make the
pictures, on the other hand, they are already geocoded and if the
smartphone has a compass they also include in which direction they were
taken.

It also means that it became a lot easier to use pictures taken by other
people.

In iD this is already possible, but one has to figure out how to switch on
that layer. I don't think many people do figure out how to do it and
following a sequence is not very practical either. That's not relevant to
this proposal though...

Concerning the issue with thousands of pictures. A solution might be to
only download thumbnails to the cache when zoomed in far enough. Another
solution might be a dialog window asking whether the user is sure to want
that download in case there would be many pictures to download. This might
be tricky, as the download happens in a background thread. I'm not sure of
this and it will require some experimentation to figure out what works.

The visualisation is indeed icons on the map background indicating where
the pictures were taken.

Cheers,

Jo


2015-03-24 10:20 GMT+01:00 Michelle W.X.Yang wx.michelle.y...@gmail.com:

 Hey Jo,

 Thanks for your email.  Please see the inserted lines.


 On Mon, Mar 23, 2015 at 2:07 AM, Jo winfi...@gmail.com wrote:

 Hi Michelle,

 Sorry for the late response. I missed your message somehow.

 Did you already try to make some pictures and a GPX track, then use JOSM?
 Load the GPX track, click right mouse button, import pictures.

 Then click on one of those pictures. A new window will open, where one
 can browse from one picture to the next/previous.


 Yes, I have tried this. It's really interesting.  So may I understand that
 JOSM is a tool for editing the OpenStreetMap?  And we use the images
 downloaded from Mapillary as well as photos taken by users of JOSM
 (ourselves) to improve the OpenStreetMap (generate the street views), is
 that correct?   And the input of JOSM is GPX tracks, and once a GPX track
 is loaded, the Mapilary plugin (the output of our assignment) needs to
 download images from Mapillary.com for the area represented by the input
 GPX track, and store them in a cache. This function can be activated by
 pressing a button or automatically.


 This is more or less what the plugin should provide, but instead with
 pictures which come from Mapillary.com for the area in view (when zoomed in
 far enough).

 The other 'exercise' you could do is install the Mapillary app on a
 smartphone, create an account and go out to make some pictures. Upload them
 and go to view the area on Mapillary.com.


 Yes, I have tried this too. In my side, it seems that iD hasn't provided
 the 'Mapillary layer' yet, and I can't edit the uploaded pictures.



 Click one of the pictures, then the Information icon, then edit with iD.
 Now you get an editor in your browser. You have to manually switch on the
 'Mapillary layer'. (It would be nice if iD could do that for you, but alas).

 Once the layer is activated you can click on the pictures to view them.

 Unfortunately there is no way to follow a sequence with iD.

 The other disadvantage is that it's not easy to use custom aerial imagery
 and a lot of other handy tools we have in JOSM are missing as well.

 So enabling download of Mapillary pictures in the current viewport to a
 cache

 I got it. But there is a potential issue that if there are thousands of
 pictures related to the current viewport, maybe we should only choose part
 of them to visualize.


 Then visualizing them on the background, showing their 'orientation'

 May I understand the 'visualizing' as 1) displaying the trace when taking
 the sequence of photos downloaded from Mapillary, 2) displaying a thumbnail
 or a drop symbol of each photo downloaded from Mapillary; 3) by double
 clicking a thumbnail/drop symbol, a window will popup to display this photo
 with full resolution and user can edit it ?


 Then providing the possibility to look at them one picture at a time
 Then having some handy controls to get from one to the next


 Intuitively, We can provide arrows in the popup window mentioned above for
 users to navigate these downloaded photos.



 Is more or less the basis of the assignment.

 When these things have become possible, the next step may be the
 following:

 Allow the possibility to update the geolocation of the picture (GPS
 devices are not always very accurate).

 Allow the possibility to update the 'orientation' of the picture (the
 internal compass

Re: [OSM-dev] Request more information about GSoC the project: JOSM Plugin to work with Mapillary images

2015-03-22 Thread Jo
Hi Michelle,

Sorry for the late response. I missed your message somehow.

Did you already try to make some pictures and a GPX track, then use JOSM?
Load the GPX track, click right mouse button, import pictures.

Then click on one of those pictures. A new window will open, where one can
browse from one picture to the next/previous.

This is more or less what the plugin should provide, but instead with
pictures which come from Mapillary.com for the area in view (when zoomed in
far enough).

The other 'exercise' you could do is install the Mapillary app on a
smartphone, create an account and go out to make some pictures. Upload them
and go to view the area on Mapillary.com.

Click one of the pictures, then the Information icon, then edit with iD.
Now you get an editor in your browser. You have to manually switch on the
'Mapillary layer'. (It would be nice if iD could do that for you, but alas).

Once the layer is activated you can click on the pictures to view them.

Unfortunately there is no way to follow a sequence with iD.

The other disadvantage is that it's not easy to use custom aerial imagery
and a lot of other handy tools we have in JOSM are missing as well.

So enabling download of Mapillary pictures in the current viewport to a
cache
Then visualizing them on the background, showing their 'orientation'
Then providing the possibility to look at them one picture at a time
Then having some handy controls to get from one to the next

Is more or less the basis of the assignment.

When these things have become possible, the next step may be the following:

Allow the possibility to update the geolocation of the picture (GPS devices
are not always very accurate).
Allow the possibility to update the 'orientation' of the picture (the
internal compass in consumer phones is on the slow side)
Updating the orientation of the picture could be done with +/- or up/down
left/right arrows on the keyboard. Another possibility might be the use of
a draggable 'helper' node, then calculate the directionality.

Keep track of these changes in a sort of changeset and allow this
information to be fed back to Mapillary using their API. The team at
Mapillary is very approachable and they can be contacted in case of
problems. Authentication happens over oAuth.


The next step after that, may be to allow blurring/unblurring as well.

And if time allows, it may be possible to allow updating of recognised
traffic signs and possibly an interaction with the roadsigns plugin. But
that is low priority at best.

Please let us know if you have any other questions.

Jo


2015-03-19 13:04 GMT+01:00 Michelle W.X.Yang wx.michelle.y...@gmail.com:

 Hey,

 I'm a CS PhD student from the University of Hong Kong, and my research is
 related to information visualization. I'm quite interested in learning more
 information about the project: JOSM Plugin to work with Mapillary images.

 In my understanding, In this project, we need to develop a plugin for the
 OpenStreetMap which allows user to navigate as well as edit Mapillary
 images. In order to implement these functions, on the user interface of
 OSM, we need to develop a Mapillary layer and a Mapilary Window Pane, and
 we also need to develop some background components, e.g. cache. Even though
 I can get the main ideas of this project from the wiki page of Mapillary
 plugin for JSOM by referencing the website of Open Street Map and
 Mapillary,  some details of the requirements as well as  the scope of this
 project are needed to be clarified. I hope we can discuss about this
 project as soon as possible.

 I have 3+ years of hand-in java experience, and since my research is
 related to information visualization, I'm quite familiar with developing
 user interfaces,  image processing techniques and some graphics algorithms,
 I'm also very familiar with cache, e.g. LRU cache. Therefore, based on my
 background I believe I will be a good candidate for this project.

 Sincerely,
 Michelle.

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


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


Re: [josm-dev] List Admin Role

2015-02-24 Thread Jo
I am a regular on this list for a long time now, but I'm not a core
developer, couldn't even call myself a JOSM developer. All I develop are
some styles and presets.

Anyway, if nobody else signs up for the task, I can do it.


Jo

2015-02-24 19:43 GMT+01:00 Frederik Ramm frede...@remote.org:

 Hi,

I am currently the list admin for josm-dev. This means I can
 theoretically kick people out (which I'd never considered doing), and
 that I receive moderator requests when someone who is not registered
 tries to post (I ignore them and then they expire). I also have a couple
 of config options with mailman which I am not using.

 Since I'm not exactly a regular here, I was wondering if someone from
 the group of more active participants would like to have that role
 transferred to them?

 Bye
 Frederik

 --
 Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

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

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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-18 Thread Jo
I thought adding a layer and a z-level would help:

/* Now render the traffic sign */
node|z16-[!(prop(traffic_sign_svg)=)]::traffic_signs
{
z-index: 10;
icon-image: eval(concat(data:image/svg+xml,svg width='100px'
height=',prop(traffic_sign_top),',prop(traffic_sign_svg),/svg));
icon-width: eval(max(12,prop(pixel_per_metre)));
}

It looks really funny, as the set of signs scales and the default style
doesn't.

But unfortunately it's not different from not adding those directives.

Jo

2015-02-18 9:07 GMT+01:00 Martin Vonwald imagic@gmail.com:

 Hi!

 2015-02-17 20:58 GMT+01:00 Jo winfi...@gmail.com:

 It seems like I've started to do something which is impossible. Can't move
 the png icons giving them an offset


 There is a solution for this, but you probably don't want to know it:
 using JOSM and the style Lane and Road attributes open the area around
 http://www.openstreetmap.org/#map=17/47.94917/16.26273. (Note: a previous
 change in JOSMs standard style just broke the rendering, so its best to
 deactivate the standard to view it properly)
 You will find a node tagged with traffic_sign=maxspeed;overtaking and the
 appropriate rendering with two signposts on top of each other.

 This is done via embedded svg-images, which are created on-the-fly
 depending on the given tags. If you want to have a look at the specific
 code, search for node|z16-[traffic_sign]. The variable traffic_sign_svg
 contains the svg image and traffic_sign_top the top of the next
 to-be-added signpost (and after processing all tags it is equal to the
 height of the overall image).

 Best regards,
 Martin

 P.S: Anybody know how to disable the new default traffic sign rendering of
 JOSM from within a style?


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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-18 Thread Jo
Hallo Martin,

That is the solution. Wonderful how the signs even scale, as one would
expect with svg. It will take a good while before I'll have managed to come
up with such svg as text for all the signs.

I'm looking at the xml source code of some of those SVG's, but I can't even
find the word circle in there.

Thanks,

Jo

2015-02-18 9:07 GMT+01:00 Martin Vonwald imagic@gmail.com:

 Hi!

 2015-02-17 20:58 GMT+01:00 Jo winfi...@gmail.com:

 It seems like I've started to do something which is impossible. Can't move
 the png icons giving them an offset


 There is a solution for this, but you probably don't want to know it:
 using JOSM and the style Lane and Road attributes open the area around
 http://www.openstreetmap.org/#map=17/47.94917/16.26273. (Note: a previous
 change in JOSMs standard style just broke the rendering, so its best to
 deactivate the standard to view it properly)
 You will find a node tagged with traffic_sign=maxspeed;overtaking and the
 appropriate rendering with two signposts on top of each other.

 This is done via embedded svg-images, which are created on-the-fly
 depending on the given tags. If you want to have a look at the specific
 code, search for node|z16-[traffic_sign]. The variable traffic_sign_svg
 contains the svg image and traffic_sign_top the top of the next
 to-be-added signpost (and after processing all tags it is equal to the
 height of the overall image).

 Best regards,
 Martin

 P.S: Anybody know how to disable the new default traffic sign rendering of
 JOSM from within a style?


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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-18 Thread Jo
They cheated! lol.

It occurred to me yesterday, one could create icons for the subsigns with
the displacement/offset included, if MapCSS doesn't support it. That's
exactly what they did. Now we're tallking about 15MB instead of 1.5MB... In
my case it would probably blow up the size to 5MB.

The other change they made, is to do away with the , and ; notation and
have 1 tag per sign/panel

traffic_sign
traffic_sign:2
traffic_sign:3
traffic_sign:4

That's not how the RoadSigns plugin spucks them out and it explains why
there is no Finnish dataset for the RoadSigns plugin. Instead they created
a preset. I guess they added buttons on the toolbar for the ones they use
really often. But that RoadSigns plugin is really handy to add the signs.



Jo

2015-02-17 23:26 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.02.2015 17:20, Jo wrote:

 All png files together are 500k. Is it not a problem to include them
 twice?
 This is only for 1 country, what if the datasets become complete for
 several hundred countries?


 In my opinion it is better to have it foolproof. 500kB it not too much and
 I would worry about the hundreds of countries when we get there.

 The RoadSigns plugin grows at a rate of about one new country preset per
 year. I have the feeling that the global bandwidth increases faster. :)

  At Mapillary, they are developing a font which allows to assemble road
 signs. https://github.com/mapillary/traffico/blob/master/fontcustom.yml

 They call it a webfont, maybe it can't be used on the desktop?


 I don't think you can use this as is. It seems to be a collection of svg
 icons that can be stacked with HTML and CSS.

 The Finnish community has managed what you are trying to do [1]. Their
 style is probably partially generated by a script. If you end up with some
 code, please create a project as part of the JOSM organization on github (
 https://github.com/josm).

 [1] http://wiki.openstreetmap.org/wiki/Finland:Traffic_signs


 Paul

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

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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-18 Thread Jo
Hi,

Martin put me on the right track, but somehow I can't get it to work. This
is what I have already:



meta {
author: Polyglot;
description: Display all the road signs you put the info in OSM.
Starting for Belgium traffic signs, but it should be easy to extend it to
other country's signs;
version: 1.01_2015-02-14;
}

/* meta[lang=nl]
{
nl.shortdescription: Belgische verkeersborden;
nl.description: Geeft alle verkeersborden weer op basis van hun
Belgische code. Als het eenmaal op punt staat, zou het eenvoudig moeten
zijn om het uit te breiden naar de codes die in andere landen worden
gebruikt voor de borden die overenstemmen;
}
meta[lang=fr]
{
nl.shortdescription: Panneaux belges;
nl.description: Visualise tous les panneaux routiers en à base de leur
code belge. Une fois achevé, il devrait être simple d'ajouter les codes
nationaux d'autres pays.;
 }

The basics of how this works was lent from the lane_and_road_attributes
style*/

/* Disable rendering of maxspeed from default style */
node[prop(maxspeedclass, default)]::core_maxnodebg {
symbol-shape: none;
}
node[prop(maxspeedclass, default)]::core_maxnodefg {
text: none;
symbol-shape: none;
}

/* Disable rendering of traffic signs on low zoom levels */
node|z-15[traffic_sign]
{   icon-image: prop(unset_property);   }

node[traffic_sign]
{
  traffic_sign_top: 0;
  /* Define some basic shapes */
  traffic_sign_svg: defscircle id='prohibited' cx='50' r='45'
fill='white' stroke='red' stroke-width='10'//defs;
}

node|z3-[traffic_sign =~ /BE:C3/]
{
traffic_sign_svg: eval(concat(prop(traffic_sign_svg),use
xlink:href='#prohibited' y=',(prop(traffic_sign_top)+50),'/));
traffic_sign_top: eval(prop(traffic_sign_top)+100);
text: prop(traffic_sign_svg);
font-size: 14;
}

node|z16-[traffic_sign =~ /BE:C43/]
{
maxspd: get(regexp_match(.*BE:C43\\[(.*)\\].*, tag(traffic_sign)),1);
t:
eval((prop(maxspd)10)?1.0:((prop(maxspd)100)?0.8:((prop(maxspd)1000)?0.6:0.4)));
t_x:
eval((prop(maxspd)10)?45:((prop(maxspd)100)?60:((prop(maxspd)1000)?80:120)));
traffic_sign_svg: eval(concat(prop(traffic_sign_svg),circle cx='50'
cy=',(prop(traffic_sign_top)+50),' r='45' stroke='red' stroke-width='10'
fill='white' /text style='font-size:60px; font-weight:bold;'
x=',prop(t_x),' y=',(prop(traffic_sign_top)+70),' text-anchor='middle'
transform='scale(,prop(t), 1.0)',prop(maxspd),/text));
traffic_sign_top: eval(prop(traffic_sign_top)+100);
}

node|z16-[traffic_sign ^= BE:F4a]
{
maxspd: get(regexp_match(.*BE:F4a\\[(.*)\\].*, tag(traffic_sign)),1);
t:
eval((prop(maxspd)10)?1.0:((prop(maxspd)100)?0.8:((prop(maxspd)1000)?0.6:0.4)));
t_x:
eval((prop(maxspd)10)?45:((prop(maxspd)100)?60:((prop(maxspd)1000)?80:120)));
t_z: concat(rect x='0' y=',(prop(traffic_sign_top)+0),' width='100'
height='140' fill='white' /text style='font-size:40px; font-weight:bold;'
x='60' y=',(prop(traffic_sign_top)+135),' text-anchor='middle'
transform='scale(0.8 1.0)'ZONE/text);
traffic_sign_svg: eval(concat(prop(traffic_sign_svg),prop(t_z),circle
cx='50' cy=',(prop(traffic_sign_top)+50),' r='45' stroke='red'
stroke-width='10' fill='white' /text style='font-size:60px;
font-weight:bold;' x=',prop(t_x),' y=',(prop(traffic_sign_top)+70),'
text-anchor='middle' transform='scale(,prop(t),
1.0)',prop(maxspd),/text));
}

/* Now render the traffic sign */
node|z16-[!(prop(traffic_sign_svg)=)]::traffic_signs
{
icon-image: eval(concat(data:image/svg+xml,svg width='100px'
height=',prop(traffic_sign_top),',prop(traffic_sign_svg),/svg));
icon-width: eval(max(12,prop(pixel_per_metre)));
}


The

text: prop(traffic_sign_svg);

under the C3 entry is for testing purposes.

When I put:

defscircle id='prohibited' cx='50' r='45' fill='white' stroke='red'
stroke-width='10'//defsuse xlink:href='#prohibited' y='50.0' /

in here:

http://scriptdraw.com/

It renders the way it should for

traffic_sign=BE:C3

I'm obviously missing something, but I can't figure out what it is.

Jo



2015-02-18 9:07 GMT+01:00 Martin Vonwald imagic@gmail.com:

 Hi!

 2015-02-17 20:58 GMT+01:00 Jo winfi...@gmail.com:

 It seems like I've started to do something which is impossible. Can't move
 the png icons giving them an offset


 There is a solution for this, but you probably don't want to know it:
 using JOSM and the style Lane and Road attributes open the area around
 http://www.openstreetmap.org/#map=17/47.94917/16.26273. (Note: a previous
 change in JOSMs standard style just broke the rendering, so its best to
 deactivate the standard to view it properly)
 You will find a node tagged with traffic_sign=maxspeed;overtaking and the
 appropriate rendering with two signposts on top of each other.

 This is done via embedded svg-images, which are created on-the-fly
 depending on the given tags. If you want to have a look at the specific
 code, search for node|z16-[traffic_sign]. The variable traffic_sign_svg
 contains the svg image

Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-17 Thread Jo
Hi Paul,

Thank you, that worked! I don't think enabling the style makes a lot of
sense if one doesn't install the plugin. Most people don't know those
codes. They're specific to a small country and there are 180 of them.

All png files together are 500k. Is it not a problem to include them twice?
This is only for 1 country, what if the datasets become complete for
several hundred countries?

Is there a way in MapCSS to rotate the icon depending on
http://wiki.openstreetmap.org/wiki/Key:direction?

Jo

2015-02-17 11:42 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.02.2015 05:11, Jo wrote:

 Hi,

 I'm trying to create a style to visualize road signs.

 All the icons are already in the roadsigns plugin. Is there a way to
 access
 them? I've been trying all kinds of variations, but all I'm getting is a
 white square.

 node|z15-[traffic_sign=BE:B1]
 {
  icon-image: /josm/plugins/roadsigns.jar/images/BE/BE_B1.png;
 }


 This would be simply

   icon-image: BE/BE_B1.png;

 But if you plan to distribute the style, I would recommend to include the
 images anyway. This way the style works regardless of the installed plugins.

 Paul

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

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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-17 Thread Jo
I can't seem to find how to displace those icons. There is often more than
1 sign on a pole and there are panels to specify exceptions or for which
traffic the sign applies. I can put them in different layers. Maybe I have
to look for a solution using text.

Jo

2015-02-17 17:20 GMT+01:00 Jo winfi...@gmail.com:

 Hi Paul,

 Thank you, that worked! I don't think enabling the style makes a lot of
 sense if one doesn't install the plugin. Most people don't know those
 codes. They're specific to a small country and there are 180 of them.

 All png files together are 500k. Is it not a problem to include them
 twice? This is only for 1 country, what if the datasets become complete for
 several hundred countries?

 Is there a way in MapCSS to rotate the icon depending on
 http://wiki.openstreetmap.org/wiki/Key:direction?

 Jo

 2015-02-17 11:42 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.02.2015 05:11, Jo wrote:

 Hi,

 I'm trying to create a style to visualize road signs.

 All the icons are already in the roadsigns plugin. Is there a way to
 access
 them? I've been trying all kinds of variations, but all I'm getting is a
 white square.

 node|z15-[traffic_sign=BE:B1]
 {
  icon-image: /josm/plugins/roadsigns.jar/images/BE/BE_B1.png;
 }


 This would be simply

   icon-image: BE/BE_B1.png;

 But if you plan to distribute the style, I would recommend to include the
 images anyway. This way the style works regardless of the installed plugins.

 Paul

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



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


Re: [josm-dev] icons for MapCSS for RoadSigns

2015-02-17 Thread Jo
It seems like I've started to do something which is impossible. Can't move
the png icons giving them an offset and while adding an up arrow (as a
unicode char) next to the sign seems to work, adding a bicycle (as unicode
character) doesn't. Probably because the font I'm using doesn't have that
code point.
Annoyingly, it's unlikely Unicode has characters for some of the icons
which appear on those sub panels. A plug + cable going around a car, for
example.

At Mapillary, they are developing a font which allows to assemble road
signs. https://github.com/mapillary/traffico/blob/master/fontcustom.yml

They call it a webfont, maybe it can't be used on the desktop?

Jo

2015-02-17 17:49 GMT+01:00 Jo winfi...@gmail.com:

 I can't seem to find how to displace those icons. There is often more than
 1 sign on a pole and there are panels to specify exceptions or for which
 traffic the sign applies. I can put them in different layers. Maybe I have
 to look for a solution using text.

 Jo

 2015-02-17 17:20 GMT+01:00 Jo winfi...@gmail.com:

 Hi Paul,

 Thank you, that worked! I don't think enabling the style makes a lot of
 sense if one doesn't install the plugin. Most people don't know those
 codes. They're specific to a small country and there are 180 of them.

 All png files together are 500k. Is it not a problem to include them
 twice? This is only for 1 country, what if the datasets become complete for
 several hundred countries?

 Is there a way in MapCSS to rotate the icon depending on
 http://wiki.openstreetmap.org/wiki/Key:direction?

 Jo

 2015-02-17 11:42 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.02.2015 05:11, Jo wrote:

 Hi,

 I'm trying to create a style to visualize road signs.

 All the icons are already in the roadsigns plugin. Is there a way to
 access
 them? I've been trying all kinds of variations, but all I'm getting is a
 white square.

 node|z15-[traffic_sign=BE:B1]
 {
  icon-image: /josm/plugins/roadsigns.jar/images/BE/BE_B1.png;
 }


 This would be simply

   icon-image: BE/BE_B1.png;

 But if you plan to distribute the style, I would recommend to include
 the images anyway. This way the style works regardless of the installed
 plugins.

 Paul

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




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


[josm-dev] icons for MapCSS for RoadSigns

2015-02-16 Thread Jo
Hi,

I'm trying to create a style to visualize road signs.

All the icons are already in the roadsigns plugin. Is there a way to access
them? I've been trying all kinds of variations, but all I'm getting is a
white square.

node|z15-[traffic_sign=BE:B1]
{
icon-image: /josm/plugins/roadsigns.jar/images/BE/BE_B1.png;
}

Thanks,

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


Re: [OSM-dev] Application for Google Summer of Code 2015

2015-02-15 Thread Jo
2012: I remember the improvements to Vespucci were a huge step forward for
its usability


I fleshed out the description for the Mapillary plugin:
http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2015/Mapillary_plugin_for_JOSM

I can mentor it, but it would be more like following up on it, giving some
guidance, testing. For questions about coding and coding style of JOSM the
student would have to rely on the JOSM-DEV mailing list.

Polyglot

2015-02-15 22:34 GMT+01:00 Peter Barth osm-p...@won2.de:

 Hi Serge,
 hi all,

 for this year there's a new question to be answered for the application.

 please summarize your involvement and the successes and challenges
 of
 your participation. Please also list your pass/fail rate for each
 year.

 I can't answer that and don't find specifics, except most of the
 accepted projects. So could you please help?

 Serge Wroclawski schrieb:
  I was the mentor for our project last year.

 I know of the successful project you mentored as I'm using and seeing it
 regularily on the main page :)

 Could you (@all) please help me with the other projects? Here's a list
 of past years.

 2008: 2 projects (
 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2008)
 2009: 6 projects (
 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2009)
 2010: 6 projects (
 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2010/AcceptedProjects
 )
 2011: 3 projects (
 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2011/AcceptedProjects
 )
 2012: 6 projects (
 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2012/AcceptedProjects
 )
 2013: didn't participate
 2014: ? projects (?)

 Thanks,
 Peda


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

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


[josm-dev] Mapillary plugin for JOSM

2015-02-15 Thread Jo
Hi,

I'm proposing the development of a Mapillary plugin as a GSoC project.

http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2015/Mapillary_plugin_for_JOSM

The question I get now from Ian Dees, is whether there is somebody from the
JOSM developer team who'd be able to co-mentor. Or replace me as mentor. I
might not be the most suited person for the job. I have a pretty clear idea
of where I'd like it to go, but it has become apparent I'm not capable of
actually coding it. I'm getting stuck over and over again. Even creating
the initial environment on svn proved to be a challenge... It's there now,
but when I try to add some code, I'm getting 30+ errors and warnings I
can't solve.

Cheers,

Jo (Polyglot)
___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Mapillary plugin for JOSM

2015-02-15 Thread Jo
Hi Paul,

HolgerMappt and me had been preparing that on a Titanpad, I only had to
take out all the references to the new Mapillary API. I'll add you as a
co-mentor. I could use a mentor myself, but I think it will be a lot better
to have an actual Java developer to do the coding.

Cheers,

Jo

2015-02-16 1:24 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 16.02.2015 00:17, Jo wrote:

 Hi,

 I'm proposing the development of a Mapillary plugin as a GSoC project.

 http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/
 2015/Mapillary_plugin_for_JOSM

 The question I get now from Ian Dees, is whether there is somebody from
 the
 JOSM developer team who'd be able to co-mentor. Or replace me as mentor. I
 might not be the most suited person for the job. I have a pretty clear
 idea
 of where I'd like it to go, but it has become apparent I'm not capable of
 actually coding it. I'm getting stuck over and over again. Even creating
 the initial environment on svn proved to be a challenge... It's there now,
 but when I try to add some code, I'm getting 30+ errors and warnings I
 can't solve.


 Do you need a mentor? :)
 No, seriously, this is really a great idea for a GSoC project and I would
 be available as a co-mentor. The project description is nice, great work!

 What I would suggest is to make the first paragraph less technical and
 start with the features that are expected and what the workflow could be
 from the user perspective. Also we should mention the existing Mapillary
 integration in iD.

 Paul

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

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


Re: [OSM-dev] Is there or should there be an OSM approved work exchange forum? (Jo Walsh)

2015-02-13 Thread Jo Walsh

 Please also make (and enforce) a decision about whether, and in what
 form, OSM professional services firms are allowed to participate.
 ... 
 Of course such a list could not be approved in any way like the
 subject line suggests, because who would be approving?

The community of people for whose benefit decisions are enforced?


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


Re: [OSM-dev] Application for Google Summer of Code 2015

2015-02-13 Thread Jo
I certainly don't object to you doing all the grunt work :-) I have a
concrete project, that would be really cool if we'd be able to get it
started as a GSoC project: a plugin for JOSM to enable working with
Mapillary pictures.

I said I'd like to attempt it (that even made it to WeeklyOSM...), but I'm
not able to pull it off. Not being a Java developer and such proves to be
more of a handicap, than I had hoped.

Me and Holger did outline what we'd like to see implemented in the plugin
and we're trying to get started on it, but I'm lacking the ability and he's
lacking the time.

Still I think a student who does know his way around Java, Eclipse and SVN
wouldn't have much trouble doing it and he will certainly be supported by
the other developers of JOSM when he asks questions on the mailing list.

Do you think such a project makes a good chance to be chosen as a GSoC
project? And are we likely to find a student interested in it? (I can look
for a student in the university of my home town, and I'm sure I'll meet
people who'd be able to do the same in The Netherlands where I'm going to
the Missing Maps hackathon tomorrow).

Of course, we can look in many universities around the world. I can
communicate in English, Spanish, French and even though I cannot really
help the student out with development questions, I can do some follow up of
the project).

I'd also be interested to develop the plugin further and maintain it after
the GSoC ends.

Polyglot

2015-02-13 20:43 GMT+01:00 Peter Barth osm-p...@won2.de:

 Hi,

 there seems nobody eager to apply to GSoC this year. However, I
 believe that GSoC is a great experience for students, draws
 attention to OSM and gets some coding done, so we should
 participate (as we have for many years now).

 Tordanik and I are willing to step forward and do the
 administrative tasks, including applying OpenStreetMap to
 GSoC. As time rushes, we will wait for this weekend for any
 objections. We also hope to get access to the (admin) documents
 of last year's application.

 Please comment, object or step forward to do it yourself.

 Thanks,
 Peda


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

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


[OSM-dev] Is there or should there be an OSM approved work exchange forum?

2015-02-12 Thread Jo Walsh
Do OSM freelance developers typically hang out in one place, or is there
a jobs list or similar? (I recall the London perl community getting
tired of recruiter posts and starting a reasonably successful jobs list;
OSGeo still has a directory of community approved suppliers of
consultants list on its web pages which has the arguable benefit of not
being publically editable. http://www.osgeo.org/search_profile )

I ask right now because someone has just popped up on irc with a
reasonably handsome sounding offer of freelance work on an OSM based
project. Other people seem to occasionally pop up to socialise their
work projects and requests on irc. It could be good to have somewhere
more public and constructive than irc to redirect such folks towards.
This list is clearly not it, but seemed the best place to catch the most
interested parties. 

I see from a forum post that there's a kind of company directory on the
wiki, but it looks a bit indiscriminate, doesn't differentiate between
OSM service providers and OSM consultants in a way that's helpful for
people offering short contracts with potentially FOSS outcomes:
https://help.openstreetmap.org/questions/28660/looking-for-freelance-nominatim-expert
http://wiki.openstreetmap.org/wiki/Commercial_OSM_Software_and_Services

http://wiki.openstreetmap.org/wiki/User:!i!/What_a_company_should_never_do
- this is very entertaining and funny, but it's worth having a more
serious view of the flipside, How to engage your business with OSM in
constructive ways.

FWIW here is the spiel from the irc channel, basically we need to zoom
into GPS location, allow a user to click on a data collection point
(water sediment for eg) and then overlay a simple animation using image
sequences over a specific area of the visible map... Im very pro OSS.
why hire a someone to build a new product when you can pay someone to do
what they love and improve an existing product... I won't re-post their
contact email here, but would pass it along to others.

What's my personal interest here? Right now i'm just over-using OSM as a
displacement activity while on a short sabbatical from my civil service
day job, but eventually I may find the confidence to step off the 9-5
machine again, and I sympathise with the views of the hirer in the irc
discussion. I'd love to see the broad ecology developing in ways which i
could one day be a part of while retaining autonomy. Okay, enough
early-morning rambling on this topic... 


zx


-- 
  Jo Walsh
  metaz...@fastmail.net

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


Re: [josm-dev] Mapillary

2015-01-27 Thread Jo
I think I'd like to attempt it. The first question that comes to mind is:
build further on the photo mapping plug in or fork it?

Jo
On Jan 26, 2015 11:36 PM, Jo winfi...@gmail.com wrote:

 Hi,

 Is somebody already working on a Mapillary plugin for JOSM?

 Polyglot

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


[josm-dev] Mapillary

2015-01-26 Thread Jo
Hi,

Is somebody already working on a Mapillary plugin for JOSM?

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


Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-18 Thread Jo
Hi Paul,

Many thanks for your help. Unfortunately I gave up on trying to get it to
work. So I rewrote the script in such a way that the user can decide to
download data and if they do, then the script will terminate and they'll
have to run it once again, so it can perform the rest of the work.
(Comparing bus stops in route relations; some being template routes from an
external source, the others from the existing data. Then presenting them,
so they can be matched and handed to another script, which updates the
existing route based on the template).

I can see that the download is occurring and even completes, and I can even
manage to get several pieces of code run concurrently (which may come in
handy some day, learned a new trick there), but the freshly downloaded data
only gets merged into the layer after the script terminates.

Cheers,

Jo

2015-01-18 2:06 GMT+01:00 Jo winfi...@gmail.com:

 Oh, I've been debugging for the past hour and preparing the message which
 crossed yours. In the mean time I had come to the conclusion it'd be best
 to include the bounds in the Overpass, but I hadn't gotten around to it yet.

 I'm going to look into running it with another background thread.

 Thanks!

 Jo

 2015-01-18 1:58 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.01.2015 00:27, Jo wrote:

 Hi Paul,

 Many thanks for your help. f.get() makes the script hang forever.


 Maybe the script and the download are run by the same Executor
 (Main.worker). Then this would block. You can try to run your entire script
 in a new background thread. (Code example: http://stackoverflow.com/a/
 12551542)

  The other problem is that I don't see how to restrict it to the bbox I
 zoomed in upon. So the script downloads all the routes with that same ref
 all over the region, for the operator in question.


 This shouldn't be too hard, call Main.map.mapView.getRealBounds() to get
 the current bbox and integrate these parameters into the overpass query.


 Paul

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



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


Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-17 Thread Jo
Oh, I've been debugging for the past hour and preparing the message which
crossed yours. In the mean time I had come to the conclusion it'd be best
to include the bounds in the Overpass, but I hadn't gotten around to it yet.

I'm going to look into running it with another background thread.

Thanks!

Jo

2015-01-18 1:58 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 17.01.2015 00:27, Jo wrote:

 Hi Paul,

 Many thanks for your help. f.get() makes the script hang forever.


 Maybe the script and the download are run by the same Executor
 (Main.worker). Then this would block. You can try to run your entire script
 in a new background thread. (Code example: http://stackoverflow.com/a/
 12551542)

  The other problem is that I don't see how to restrict it to the bbox I
 zoomed in upon. So the script downloads all the routes with that same ref
 all over the region, for the operator in question.


 This shouldn't be too hard, call Main.map.mapView.getRealBounds() to get
 the current bbox and integrate these parameters into the overpass query.


 Paul

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

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


Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-17 Thread Jo
f.get() doesn't do the trick. As long as my Python code is running in the
scripting plugin, the download occurs correctly but the downloaded data is
not arriving somehow. Or some thread is not released. I'm not sure. I
created some loops and I see the data coming in, but the loop never
terminates.

As soon as I dare to use f.get() the script simply hangs. nothing gets
executed after that. All output to my terminal window stalls.

overpassQuery = '''(rel
[type=route]
[route~bus|tram]
[ref=''' + ref + ''']
[operator=''' + operator + ''']
  -.routes;
 .routes  -.route_masters;
 way(r.routes);
 node(w);
 node(around:30.0);
 way(bn);
 node(w);
 );
 out meta;'''
dt = DownloadOsmTask()
print dir(dt)
f = dt.loadUrl(False, 'http://overpass-api.de/api/interpreter?data='
+ overpassQuery.replace('   ', ' ').replace('  ', ' ').replace('  ', '
').replace('  ', ' ').replace('  ', ' ').replace('\r', '').replace('\n',
''), None)

print dir(f)

t = 8
while t:
print t, f
time.sleep(1)
t -= 1

print f
while f and not(f.isDone() or f.isCancelled()): # or f.get()):
print  'waiting for download to complete'
time.sleep(1)

ew__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__',
'__u
nicode__', 'acceptsDocumentationSummary', 'acceptsUrl', 'cancel',
'canceled', 'c
lass', 'download', 'downloadedData', 'equals', 'errorObjects', 'failed',
'getCla
ss', 'getConfirmationMessage', 'getDownloadedData', 'getErrorObjects',
'getPatte
rns', 'getTitle', 'hashCode', 'isCanceled', 'isFailed',
'isSafeForRemotecontrolR
equests', 'loadUrl', 'notify', 'notifyAll', 'patterns',
'safeForRemotecontrolReq
uests', 'setCanceled', 'setFailed', 'title', 'toString', 'wait']
INFO: GET http://overpass-api.de/api/interpreter?data=(rel%20[
type=route]%20
[route~bus|tram]%20[ref=H9]%20[operator=De%20Lijn]%20-.routes;%20.r
outes%20%20-.route_masters;%20way(r.routes);%20node(w);%20node(around:30.0);%
20way(bn);%20node(w);%20);%20out%20meta;
['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__',
'__eq__', '_
_getattribute__', '__hash__', '__init__', '__ne__', '__new__',
'__reduce__', '__
reduce_ex__', '__repr__', '__setattr__', '__str__', '__unicode__',
'cancel', 'ca
ncelled', 'class', 'done', 'equals', 'get', 'getClass', 'hashCode',
'isCancelled
', 'isDone', 'notify', 'notifyAll', 'run', 'toString', 'wait']
8 java.util.concurrent.FutureTask@505819ca
7 java.util.concurrent.FutureTask@505819ca
6 java.util.concurrent.FutureTask@505819ca
INFO: Undefined element 'note' found in input stream. Skipping.
INFO: Undefined element 'meta' found in input stream. Skipping.
5 java.util.concurrent.FutureTask@505819ca
4 java.util.concurrent.FutureTask@505819ca
3 java.util.concurrent.FutureTask@505819ca
2 java.util.concurrent.FutureTask@505819ca
1 java.util.concurrent.FutureTask@505819ca
java.util.concurrent.FutureTask@505819ca
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
waiting for download to complete
... ad eternum

I'll resort to messaging the user that the script performed a download, and
that they'll have to run it again so the rest of the script can do its
thing.

Thanks,

Jo

2015-01-17 0:27 GMT+01:00 Jo winfi...@gmail.com:

 Hi Paul,

 Many thanks for your help. f.get() makes the script hang forever. When I
 don't add it the download works correctly. At least, once I cleaned up the
 Overpass Query.

 This is where I am now (# means comment and shows all the other stuff I
 tried).

 At the moment the query runs and the download is performed, but I'll have
 to abort the script there, (and have the user restart it), as I can't find
 a way to make it wait for the download to complete.

 The other problem is that I don't see how to restrict it to the bbox I
 zoomed in upon. So the script downloads all the routes with that same ref
 all over the region, for the operator in question.

 for relation in selectedRelations:
 for member in relation.getMembers():
 if member.isNode():
 n = member.getNode()
 haltNodes.append(n)

 overpassQuery = '''(rel
 [type=route

Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-16 Thread Jo
Hi Paul,

Many thanks for your help. f.get() makes the script hang forever. When I
don't add it the download works correctly. At least, once I cleaned up the
Overpass Query.

This is where I am now (# means comment and shows all the other stuff I
tried).

At the moment the query runs and the download is performed, but I'll have
to abort the script there, (and have the user restart it), as I can't find
a way to make it wait for the download to complete.

The other problem is that I don't see how to restrict it to the bbox I
zoomed in upon. So the script downloads all the routes with that same ref
all over the region, for the operator in question.

for relation in selectedRelations:
for member in relation.getMembers():
if member.isNode():
n = member.getNode()
haltNodes.append(n)

overpassQuery = '''(rel
[type=route]
[route~bus|tram]
[ref=''' + ref + ''']
[operator=''' + operator + ''']
  -.routes;
 .routes  -.route_masters;
 way(r.routes);
 node(w);
 node(around:30.0);
 way(bn);
 node(w);

);

out meta;'''
dt = DownloadOsmTask()
print dir(dt)
f = dt.loadUrl(False, 'http://overpass-api.de/api/interpreter?data='
+ overpassQuery.replace('   ', ' ').replace('  ', ' ').replace('  ', '
').replace('  ', ' ').replace('\r', '').replace('\n', ''), None)
# mv.getVisibleRect().getBounds(),
# print dir(dt)
# print dir(relation)
# bboxCalculator = BoundingXYVisitor()
# bboxCalculator.computeBoundingBox(haltNodes)
# print dir(bboxCalculator)
# print bboxCalculator
# print dir(mv)
# print dir(mv.getVisibleRect().getBounds())
# print dir(mv.getVisibleRect().getMinX())
# print dir(mv.getVisibleRect().getMinY())
# print dir(mv.getVisibleRect().getMaxX())
# print dir(mv.getVisibleRect().getMaxY())

# dt.download(False,
Bounds(mv.getVisibleRect().getMinX(),mv.getVisibleRect().getMinY(),mv.getVisibleRect().getMaxX(),mv.getVisibleRect().getMaxY(),),
None)
# print dt.isFailed()
# dt.getDownloadedData()
print dir(f)
# time.sleep(20)


2015-01-16 15:00 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 On 16.01.2015 14:23, Jo wrote:

 Hi guys,

 Unfortunately I'm not smart enough to code in Java, so I use Python in the
 scripting plugin, which gets me quite far, but now I'm stuck:

 [...]

  dt = DownloadOsmTask()
  dt.loadUrl(False, 'http://overpass-api.de/api/interpreter?data='
 +
 overpassQuery, None)
  dt.realRun()


 loadUrl returns a Future object. You can call the get() method on that
 object, to wait for the download to finish (it is done in a background
 thread):

   f = dt.loadUrl(...)
   f.get()

 Also you don't call dt.realRun() directly, the method loadUrl should
 already do this.

 Paul


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

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


Re: [josm-dev] Similarly named ways

2015-01-05 Thread Jo
Lease don't get me wrong. The validator allowed me to fix an actual problem
in the data. Once it's solved though it would be nice to have a way to
indicate it's reporting a false positive. This would only be needed on
nodes which connect 2 similarly named ways. There aren't 1000s of those. So
it's hardly polluting the data, but it would save human editors time. And
that is more important ultimately, than a few bytes of data to help QC.

Jo
On Jan 6, 2015 7:33 AM, Nelson A. de Oliveira nao...@gmail.com wrote:

 And what about having a new (or even more) category (disabled by
 default) in JOSM, with tests that could potentially give false
 positive warnings?

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

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


Re: [josm-dev] Similarly named ways

2015-01-04 Thread Jo
In an attempt to think this through a bit more, I realise that adding
knowledge about similar names for which it's correct that those streets
connect, would suppress some true positives (before they are fixed).

An extra tag on the connecting node seems like the best possible solution.
Maybe I should propose it on the tagging mailing list anyway. But my
experience is that it's better to simply document it on the wiki and start
using it. It's mostly harmless anyway.

My other problem is with noname=yes. Some streets and especially junctions
really don't have a name, but the validator doesn't heed noname=yes and
keeps complaining about it.

I think the validator is a good tool to improve the data, but it should be
possible to totally clear that list and not having to look at the same
messages over and over again. I'm working on public transport routes in a
complete (small) country. I can't remember which ones I already resolved,
but I'd prefer not to waste time over and over again on the ones I did
already work on.

Polyglot

2015-01-04 3:21 GMT+01:00 Jo winfi...@gmail.com:

 In that case, can you point me to a place where I can add:

 Wortegem.* - Waregem.*
 Oost.* - West.*
 Brugse.* - Brugge.*

 etc.

 It would be simpler to change the data and it's already done with noexit
 and public_transport:version. For my own scripts I added
 expected_rcn_route_relations and expected_rwn_route_relations, in case the
 number of route relations connecting at a numbered node is inferior to 3.

 Constantly being distracted by false positives is annoying and it only
 causes people to stop looking at the validator's messages.

 Polyglot

 2015-01-03 21:17 GMT+01:00 Paul Hartmann phaau...@gmail.com:

 Improvement of the validator code is welcome, but I think we should just
 ignore the remaining false positives and don't add any validator-related
 tags to the OSM data.

 Paul

 2015-01-03 18:55 GMT+01:00 Jo winfi...@gmail.com:

  Hi,
 
  Maybe this is wishful thinking, but I'd like to eliminate as many false
  positives in the validator as possible.
 
  On the one hand I'd like to ask where it is developed. I may be able to
  lend a hand with the coding. There are some issues with bicycle and
  hiking/foot route relations, where until now I just shrugged and glossed
  over them, but it's better to fix it, as I'm noticing other contributors
  also stumble across them.
  I know a lot about how these route relations are used in The
 Netherlands,
  Belgium and parts of Germany (numbered node networks).
 
  On the other hand I'd like to propose a tag for nodes which are between
  streets like (real examples):
 
  Bruggesteenweg/Brugsesteenweg
  Ooststraat/Weststraat
 
  I don't think it makes sense to go through all the motions of proposing
 it
  on tagging, but I'll document it on the wiki if you consider using it in
  the validator.
 
  It might be more convenient to tag it on both adjacent ways, but then it
  would multiply when those ways are split.
 
  So adding it on the connecting node seems cleaner.
 
  It could be
 
  note=similarly_named_ways_boundary
 
  or
 
  similarly_named_ways_boundary=yes
 
  or
 
  something else altogether, as long as the validator can recognise and
 use
  it.
 
  Cheers,
 
  Polyglot
  ___
  josm-dev mailing list
  josm-dev@openstreetmap.org
  https://lists.openstreetmap.org/listinfo/josm-dev
 
 ___
 josm-dev mailing list
 josm-dev@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/josm-dev



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


[josm-dev] Similarly named ways

2015-01-03 Thread Jo
Hi,

Maybe this is wishful thinking, but I'd like to eliminate as many false
positives in the validator as possible.

On the one hand I'd like to ask where it is developed. I may be able to
lend a hand with the coding. There are some issues with bicycle and
hiking/foot route relations, where until now I just shrugged and glossed
over them, but it's better to fix it, as I'm noticing other contributors
also stumble across them.
I know a lot about how these route relations are used in The Netherlands,
Belgium and parts of Germany (numbered node networks).

On the other hand I'd like to propose a tag for nodes which are between
streets like (real examples):

Bruggesteenweg/Brugsesteenweg
Ooststraat/Weststraat

I don't think it makes sense to go through all the motions of proposing it
on tagging, but I'll document it on the wiki if you consider using it in
the validator.

It might be more convenient to tag it on both adjacent ways, but then it
would multiply when those ways are split.

So adding it on the connecting node seems cleaner.

It could be

note=similarly_named_ways_boundary

or

similarly_named_ways_boundary=yes

or

something else altogether, as long as the validator can recognise and use
it.

Cheers,

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


Re: [josm-dev] JOSM 7777 released, with the new logo + help needed for an OSM blog post

2014-12-10 Thread Jo
It's the only viable option if you want to seriously get some work done
efficiently...

2014-12-10 20:56 GMT+01:00 Vincent Privat vinc...@josm.openstreetmap.de:

 The November version is now available (a bit late!) as version , with
 our great new logo :)

 I won't repeat the changelog here, see the annoucement for details:
 https://www.openstreetmap.org/user/josmeditor/diary/28201

 Instead I'd like to ask if someone would help Harry Wood to write a small,
 non-technical, blog post about JOSM.

 If I quote him:

  It seems to me this is a good opportunity to have a blog post about JOSM
 on http://blog.openstreetmap.org

  Just a quick non-tech overview of what JOSM is. I guess any other
 interesting information in and around this logo design work. So I've
 started drafting something here:
 

 https://hackpad.com/A-new-logo-for-JOSM-the-Java-OpenStreetMap-Editor-m1pum0nqE4n
  (very simple and non-technical you see)

  I doesn't need to be a long blog post though, so too many editors might
 make it too long. I will have to chop bits out if that happens.

  My aim would be to post it ~next 48 hours.

 So if someone's available to help him quickly, go ahead! That's another way
 to help JOSM :)

 Cheers,
 Vincent
 ___
 josm-dev mailing list
 josm-dev@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/josm-dev

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


Re: [josm-dev] new confirmation dialog for presets

2014-09-14 Thread Jo
Hi Vincent,

Now I'm depressed.

My computer also overheats when using JOSM. Do you think you'll implement a
solution for that soon? :-)

I think it has something to do with a large shapefile I converted to GPX.
The whole system becomes sluggish after a while when I enable that.

Incidentally, pressing space bar mitigates the problem of the need to
confirm the presets dialog somewhat. (I was constantly going for the enter
key, but any key will do. I only realised that after reading that cartoon,
so thanks)

Now I'm going to read the rest of those cartoons. The bus stops will have
to wait...

Cheers,

Jo

2014-09-14 1:16 GMT+02:00 Vincent Privat vincent.pri...@gmail.com:


 2014-09-13 13:11 GMT+02:00 Jo winfi...@gmail.com:

 OK, sorry for the tone. Simply wanted to convey it was rather annoying and
 totally disrupted my workflow.


 Every change breaks someones workflow:
 http://xkcd.com/1172/


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


Re: [josm-dev] new confirmation dialog for presets

2014-09-13 Thread Jo
OK, sorry for the tone. Simply wanted to convey it was rather annoying and
totally disrupted my workflow.

I prepare data with tags that will be removed automatically upon upload,
created a MAPCSS style which makes them clearly visible and a preset to
take away those tags, as in a todo list. I'm adding thousands of bus stops,
but I want to vet each and every one of them to make sure they are in the
right place.

Thanks for all the good work on JOSM.

Jo

2014-09-13 11:57 GMT+02:00 Dirk Stöcker openstreet...@dstoecker.de:

 On Sat, 13 Sep 2014, Jo wrote:

  I created some presets and added toolbar buttons for them to smoothen my
 workflow. I downloaded the latest version of JOSM and now a confirmation
 dialog appears each and every time. This is extremely annoying. The
 buttons
 on my toolbar for those presets were really convenient, but pressing OK a
 hundreds of times a day is going to take away my willingness to keep
 contributing.


 You should consider revising the tone you use in writing your mails.


 Ciao
 --
 http://www.dstoecker.eu/ (PGP key available)

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

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


Re: [josm-dev] Custom K/V Tags in MAPCSS?

2014-07-17 Thread Jo
Hi Alex,

When I want to add information to an offline OSM file, which I don't want
to be uploaded, I use tags like odbl, created_by, etc. These tags get
stripped automatically from the objects before JOSM uploads them. You have
to set JOSM to expert mode to see them, though.

In your case it might be a problem that those tags are also stripped when
objects are merged.

I included a style which demonstrates this. When I set odbl=new on a bus
route for example, all the stops and the member ways are highlighted.

Hope this helps in some way. I don't think JOSM's mapcss implementation
cares about which tags you use. The source code is open though, so you can
check.

Jo


2014-07-17 3:07 GMT+02:00 Alex Rollin alex.rol...@gmail.com:

 Hi!

 Let me try again, I am sorry I am not giving the right information.

 We work with OSM!  You can check out our city on the map:

 http://www.openstreetmap.org/#map=13/-6.5988/106.7778

 We do a LOT of tracing and we also add a lot of POIs.  We have a very nice
 JOSM Style that works very well.

 However, we also use some local OSM files.  The example is JULY_SURVEY.osm
 (a local OSM file, saved on the desktop)

 In the survey file we put some points that have key=oursurvey
 value=information

 Our issue is that the MAPCSS in JOSM refuses to style this data.  We assume
 this is because it is a custom key.

 This is the style we are trying to use:

 node[oursurvey=information] {
 icon-image: icons/triangle.png;


 This common key DOES work :

 node[amenity=information] {
 icon-image: icons/triangle.png;

 This ACTUAL key also works:

 node[tourism=information] {
 icon-image: icons/triangle.png;

 But, why can't we use a custom tag?  If we use an OSM tag, there is a
 chance we will accidentally upload this data, which is just some
 housekeeping data, and not good data for the OSM database.

 This seems like a bug, that the MAPCSS engine in JOSM won't recognize a
 custom key.

 I highly recommend you try it for yourself!

 I just added a JOSM ticket because I must think after so much testing that
 this is not desired behavior. It seems the folks here think I have some
 kind of data or issue making a style.  No!  I have a VERY long MAPCSS file
 with lots of POI tags working very well, really!

 https://josm.openstreetmap.de/ticket/10271#ticket



 --
 Alex


 On Thu, Jul 17, 2014 at 7:42 AM, Tod Fitch t...@fitchdesign.com wrote:

 
  On Jul 16, 2014, at 5:11 PM, Alex Rollin wrote:
 
   I think this is a bug.  Maybe someone would like to check it for
  themselves.
  
   Basically, it seems to me that it is not possible to use a custom key
 to
   create a new style rule.
  
   These are MapCSS examples we have tried:
  
   We want to use a custom tag for our style, like this, but it does not
  work:
  
   node[oursurvey=information] {
  icon-image: icons/triangle.png;
  
  
   This common key DOES work :
  
   node[amenity=information] {
  icon-image: icons/triangle.png;
  
   This ACTUAL key also works:
  
   node[tourism=information] {
  icon-image: icons/triangle.png;
  
  
   Why doesn't our custom key work? Is there a list of pre-approved tags
  that
   are allowed?
  
   --
   Alex
 
  I haven't used the CartoCSS setup yet but I did a custom map using the
  older Mapnik XML styles and one thing that comes to light pretty quick it
  that you need two things for something to render: First it has to get
 into
  your local database, so you need to change osm2pgsql.style to tell
  osm2pgsql what tags and tag values you need. Second you need to describe
  how the tag/values should be rendered in Mapnik either through mapnik XML
  directly or via CartoCSS.
 
  Sounds like you have the second items covered but I don't recall you
  mentioning that you've addressed the first part about getting your custom
  tags into the PostgreSQL database.
 
  Tod
 ___
 josm-dev mailing list
 josm-dev@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/josm-dev



PT.mapcss
Description: Binary data
___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


Re: [OSM-dev] How to reference specific points of interests in OSM data

2014-03-22 Thread Jo
Use the Overpass API to accomplish what you want to do. It may help to add
as much of the relevant data as possible to OSM to make selection
afterwards easier/more specific.

With Overpass you can limit the search geographically and based on tags or
based on membership of relations.

Polyglot




2014-03-21 21:57 GMT+01:00 Sachin Dole sd...@genvega.com:

 Hello,

 I am fairly new to OSM and am figuring out how to use this in my
 application. I want to be able to add additional metadata to certain places
 such as hotels, airports, car rental agencies etc. I am planning to do this
 additional metadata in my own database. However, I read on this 
 pagehttp://wiki.openstreetmap.org/wiki/Overpass_API/Permanent_ID that
 the OSM ID is not a permanent id for a place in the map. That page
 recommends to search on tags and then if that search returns more than one
 item, then figure out which one is relevant. If I am doing this live in a
 web app, I wont be able to do this. So, the question is how do I make
 permanent links to OSM map places in my database so I can enrich the
 metadata for myself?

 You might ask if I can instead add the metadata directly to OSM - I could
 do that, but what if my metadata is not really relevant to the general
 community? I dont want to end up polluting OSM tags with something that
 wont make sense to the rest of the world.

 Thank you in advance!
 Sachin Dole

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


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


[josm-dev] source on changeset

2014-01-01 Thread Jo
Hi,

I'm running josm-latest. Lately it became more convenient to add sources to
changesets. With the very latest, it takes the names of the imagery layers,
instead of the one used the last time.

Maybe this makes sense the very first time JOSM is started, but having to
change it to what I want to put there on every upload gets a bit annoying.

I have several imagery layers, Bing of course, but for the region I map in
mostly we have better imagery available. We also have a WMS with
streetnames, city borders, which I simply called AGIV ALL, since I selected
most of its available layers. That wouldn't mean anything in the source
tag, though.

My imagery layers don't have suitable names anyway and the layer I'm using
as a source, is an .osm layer (one I created with a Python script). Is
there an xml tag one could use to indicate it is 'source' data?

I'm using:

?xml version='1.0' encoding='UTF-8'?
osm version=0.6 upload=no generator=Python script

Maybe source=Origin of data?

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


  1   2   >