From jkennedyie at gmail.com Fri Oct 4 18:02:55 2019 From: jkennedyie at gmail.com (John Kennedy) Date: Fri, 4 Oct 2019 19:02:55 +0100 Subject: FYI new plugin RelationDissolve In-Reply-To: References: Message-ID: Greetings. FYI I have written a small plugin to help dissolve relations. More info below. If you think it is appropriate functionality to integrate into core let me know if you want me to give it a shot. Keep up the great work, - John Main intent is to make it much easier to create boundaries that are derived from existing smaller boundaries in OSM. Documentation here: https://wiki.openstreetmap.org/wiki/JOSM/Plugins/RelationDissolve. I tried writing for simplicity of integration and maintenance rather than performance, as per your dev guide. Key logic is only ~4 lines in: https://github.com/jkennedyie/relationdissolve/blob/master/src/org/openstreetmap/josm/plugins/relationdissolve/actions/RelationDissolveAction.java From jiri.hubacek at gmail.com Wed Oct 16 22:18:15 2019 From: jiri.hubacek at gmail.com (Jiri Vlasak) Date: Thu, 17 Oct 2019 00:18:15 +0200 Subject: Getting tiles for plugin usage Message-ID: <20191016221815.GA25972@gmail.com> Dear JOSM devs, there was Missing Maps hackathon this weekend in Pilsen, Czech Republic. One of the tasks we were working on was click building feature [1] -- building plot based on mouse click to the middle of the building. I am interested in getting background imagery in effective way. Currently, the following steps are used: 1. Mouse listener knows the coordinates. 2. Coordinates are recomputed to TileXY. 3. New tiles around the mouse click are created in array (9 of them). 4. Based on Tile URL, Images are downloaded and used for algorithm. I feel like downloading Tiles multiple times is not effective. Also, I think that we found a bug in Tile.getUrl() -- for Esri imagery, it returns: https://{switch:services,server}.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}/17/79468/63554.png Instead of proper URL. And I have the same issues with Maxar. [1]: https://gitlab.com/qeef/mapathoner/commits/feature/click-building Thanks, jiri From openstreetmap at dstoecker.de Sun Oct 20 10:54:40 2019 From: openstreetmap at dstoecker.de (=?ISO-8859-15?Q?Dirk_St=F6cker?=) Date: Sun, 20 Oct 2019 12:54:40 +0200 (CEST) Subject: Getting tiles for plugin usage In-Reply-To: <20191016221815.GA25972@gmail.com> References: <20191016221815.GA25972@gmail.com> Message-ID: On Thu, 17 Oct 2019, Jiri Vlasak wrote: > there was Missing Maps hackathon this weekend in Pilsen, Czech Republic. One of > the tasks we were working on was click building feature [1] -- building plot > based on mouse click to the middle of the building. > > I am interested in getting background imagery in effective way. Currently, the > following steps are used: > 1. Mouse listener knows the coordinates. > 2. Coordinates are recomputed to TileXY. > 3. New tiles around the mouse click are created in array (9 of them). > 4. Based on Tile URL, Images are downloaded and used for algorithm. > > I feel like downloading Tiles multiple times is not effective. I'd recommend the meachnism already included in JOSM, e.g. the Tile loader classes which also do caching. > Also, I think that we found a bug in Tile.getUrl() -- for Esri imagery, it > returns: > > https://{switch:services,server}.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}/17/79468/63554.png > > Instead of proper URL. And I have the same issues with Maxar. Seems you use a templated tile url in a non-templated environment: See here for a description of the templated format: https://josm.openstreetmap.de/wiki/Maps#TileMapServicesTMS Ciao -- http://www.dstoecker.eu/ (PGP key available)