Re: [josm-dev] How to ask for confirmation at layer deletion or exit?

2015-12-30 Thread Vincent Privat
isAbleToUploadToServer() and isAbleToSaveToFile() sound fine.

Concerning the "action" string I don't know: what would you propose as
action in your case?

2015-12-28 16:44 GMT+01:00 Holger Mappt :

> Hi,
>
> See https://josm.openstreetmap.de/ticket/12075.
> The idea is to ask for confirmation if a GeoImageLayer with modified image
> properties is deleted.  What is the best/right way to do that?
>
> The AbstractModifiableLayer seems to serve that purpose.  GeoImageLayer
> could extend AbstractModifiableLayer instead of Layer.  But there is not a
> single file associated with the layer but one file per modified image.
> There is not really a "recommended action" for the SaveLayersDialog. The
> AbstractModifiableLayer would need to be extended to have something like
> isAbleToUploadToServer() and isAbleToSaveToFile() to disable the according
> check-boxes of the SaveLayersDialog.  The logic in
> Main.saveUnsavedModifications() would need to be changed to consider the
> layer if neither requiresSaveToFile() nor requiresUploadToServer() returns
> true.  Would it make sense to add something like requiresSomeAction() to
> AbstractModifiableLayer and Main.saveUnsavedModifications()?  The "action"
> could be a string that is displayed in the SaveLayersDialog.
>
> Thanks,
> Holger
>
> ___
> 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] Christmas gifts and ideas

2015-12-30 Thread Vincent Privat
I love these two recent diary entries:

http://www.openstreetmap.org/user/baditaflorin/diary/37606

http://www.openstreetmap.org/user/pratikyadav/diary/37646

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


[josm-dev] IPv6 problems

2015-12-30 Thread Greg Troxel

I'm not sure if I should file a ticket, or report this here, so I'll
start here.

I have been running JOSM for a long time, on a Mac, currently at OSX
10.7.  I have functional IPv6, but my tunnel is from OCCAID, and
occasionally some places are unreachable - currently
api.openstreetmap.org is one of them.

josm starts up and proclaims:

  INFO: Detected useable IPv6 network, prefering IPv6 over IPv4.

which is fine, but then when downloading data (simple pushing of
download icon, letting area be, and then pushing the download button in
the popup) normally, I get an API error.  I can ping
api.openstreetmap.org on v4, but not v6, where I get a network
unreachable in New York.  If I had a 2-minute delay and then a download,
there would be a more subtle happy eyeballs issue, but I totally failed
to download data a few hours ago.

Just now, I was able to download data.

So it seems that there is some notion of only trying one address family,
vs. trying all addresses in all familes in some sort order, and only
failing if all fail.

OSX itself has some version of Happy Eyeballs which uses RTT on v4 and
v6 to the address (prefix?) to decide which to try first, I think via
sorting getaddrinfo results.  I am totally unclear on how this interacts
with Java.

This can likely be reproduced by configuring nonworking IPv6.

Greg (osm user gdt)


signature.asc
Description: PGP signature
___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev


Re: [OSM-dev] Which is best for this task, osmosis, osmconvert osmupdate or...

2015-12-30 Thread Frederik Ramm
Hi,

On 12/30/2015 01:02 AM, Dave F. wrote:
> A couple of problems with that, I'm afraid. Firstly they don't provide 
> my area & secondly I'm trying to avoid large downloads like the 670mb 
> England file & amendment files for data I'm never going to need. Is 
> there not a way to work just within a user specified polygon?

There's no service I know that would deliver updates for an user defined
area (only). It is however possible to apply updates for a larger area
to your extract if you cut away the extra stuff afterwards again, i.e.
the workflow being:

(once) download UK, or Europe, or world
(once) cut out your area of interest
(regularly) apply UK, or Europe, or world updates to your area of
interest yielding a file with your area of interest plus bits and bobs
around the world
(regularly) cut out your area of interest from the "area of interest
plus bits and bobs around the world" file

Of course if the area you are interested in is *so* small that even
downloading the too-large diffs each day will seem like a waste, then
I'd recommend to simply download the full area from Overpass regularly.

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