I am relatively new to Mapillary, I have access to the vector tiles in QGIS which responds with an ID, when checking this ‘ID’ against the pKey in the webpage, they are two different values.
are these two items related? I am ideally trying to get the point I can click on and then hyperlink to Mapillary for viewing.
According to Mapillaryimage_id property in the sequence layer refers to the first image of the sequence. sequence_id property in the image layer refers to id property of the sequence.
Hi Tao,
yes i can see that now, thanks. What I am trying to achieve is to use this information to open up the Mapillary website utilising some of this information, is there a way?
Going through the URL approach the pKey seems to be the only clear identifier for each image location.
@chrisbeddow that’s what i am not sure about.
my process is load the vector tiles through the standard coverage tile with my access token -
Coverage tiles - https://tiles.mapillary.com/maps/vtp/mly1_public/2/{z}/{x}/{y}
I then use the ‘Identify feature’ function in QGIS and click on the point, which is the data that is provided.
so I am not sure where the data is going wrong if it’s just reading in a vector tile?
Yeah I think the QGIS vector tile parser is reading it wrong or converting the value somehow, because it does not make sense for it to show a negative number which is shows in several fields. Are you familiar with Python? We can do a double check of the same tile and what it parses but I use it in some other functions and it succeeds (like Mapillary Python SDK: Hello from Mapillary Python SDK | Mapillary Python SDK)
It appears QGIS is doing something funny with the Vector Tiles.
JOSM has an implementation (which shares no code with any other implementation) to (a) decode PBF MVT files and (b) convert the MVT data into something that can be displayed in JOSM. It does not have the same problem as QGIS.
I’d say you open JOSM, open up the Mapillary Vector Tile layer (from the built-in JOSM layer list, not from the plugin), and, if you are in expert mode, there is a layer action to convert the vector data into an OSM data layer.
With that said, I believe the id that you have on the object after conversion is the id from the vector tile feature object, which is not the same as the id for the image. The vector tiles really should use the same value for the feature id as the tag id, when the id is numeric (^[0-9]+$). From the vector tile spec,
A feature MAY contain an id field. If a feature has an id field, the value of the id SHOULD be unique among the features of the parent layer.
The id field is distinct from the tags field (the identifier for the id field is 1, and is a uint64 type).