Modify

Opened 6 years ago

Closed 6 years ago

#16800 closed task (fixed)

3 Virginia layers

Reported by: stoecker Owned by: team
Priority: normal Milestone:
Component: External imagery source Version:
Keywords: Cc: Klumbumbus

Description

The 3 Virginia layers use a tileify service instead of the direct WMS.

These should be changed to use WMS directly and add the TMS as mirror only (using https which is supported now).

Attachments (0)

Change History (15)

comment:1 by stoecker, 6 years ago

Cc: Klumbumbus added

Hmm, seems that is more complicated. Klumbumbus: Can you tell me what you know about this. Why can't we use the direct service?

comment:2 by Klumbumbus, 6 years ago

The direct wms was not working as the zoom parameter was strange. See https://github.com/osmlab/editor-layer-index/pull/540#issuecomment-415564776 and following comments. If you get the direct wms working we can use it and move the tilefy urls into mirrors.

comment:3 by stoecker, 6 years ago

JOSM has a somewhat more complex way for the zoom parameter than other software: You can add {zoom+12} or subtract {zoom-7} or even reverse {7-zoom} the value. But it still requires the the levels have same meaning, only with different numbering. If they aren't created by power of two starting with full world, then it wont work.

Last edited 6 years ago by stoecker (previous) (diff)

in reply to:  3 comment:4 by Klumbumbus, 6 years ago

Replying to stoecker:

You can add {zoom+12} or subtract {zoom-7} or even reverse {7-zoom} the value.

Yes, I tried 2 or 3 of such "advanced parameters" but the ones I tried didn't work so I gave up searching for the right one...

in reply to:  2 comment:5 by stoecker, 6 years ago

Replying to Klumbumbus:

The direct wms was not working as the zoom parameter was strange. See https://github.com/osmlab/editor-layer-index/pull/540#issuecomment-415564776 and following comments. If you get the direct wms working we can use it and move the tilefy urls into mirrors.

I did read that, but actually it did not help to reduce my confusion what exactly is correct and what this ArcGIS tileify does.

The code seems to request the images with EPSG:4326 coordinates and a &bbox= parameter: https://github.com/JasonSanford/tileify-ags/blob/master/index.js lines 45 and 46

That does not sound correct to me as well, as it ignores the 4326/3857 differences (like josm did in the past :-):

comment:9 by Don-vip, 6 years ago

What's the status of this ticket?

in reply to:  9 comment:10 by stoecker, 6 years ago

Replying to Don-vip:

What's the status of this ticket?

We could make direct URLs like https://gismaps.vita.virginia.gov/arcgis/rest/services/VA_Base_layers/VA_Building_Footprints/MapServer/tile/{zoom-7}/{y}/{x} and copy the other ones to mirror, but someone needs to verify that the images are really identical.

I found motorbiking and other tasks more interesting than JOSM lately due to the fine weather :-)

comment:11 by simon04, 6 years ago

Milestone: 18.10

comment:12 by stoecker, 6 years ago

Resolution: fixed
Status: newclosed

Fix in Maps/USA version 121. Tiles looked identical, Building borders looked a bit different (different style and caching involved?).

comment:13 by stoecker, 6 years ago

Hmm, Website preview wont work :-) Does anyone have an idea how "zoom-7" has to be done for OpenLayers?

comment:14 by stoecker, 6 years ago

Resolution: fixed
Status: closedreopened

Ah seems, there is a function for specific tile urls like that.

https://gis.stackexchange.com/questions/164162/openlayers-3-overlay-a-tms-layer-on-a-osm-layer

tileUrlFunction: function (coordinate) {

 if (coordinate === null) return undefined;

// TMS Style URL
 var z = coordinate[0];
 var x = coordinate[1];
 var y = coordinate[2];
 var url = 'https://quadridcmmaps.blob.core.windows.net/tynset/' + z + '/' + x + '/' + y + '.png';
 return url;
}

comment:15 by stoecker, 6 years ago

Resolution: fixed
Status: reopenedclosed

Fixed display of {zoom-.} in preview.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.