Geometry feature id consistency problem

29 views
Skip to first unread message

Radu Balta

unread,
Apr 17, 2025, 9:28:21 AMApr 17
to GeoAdminCh API
Hello!

I've noticed something wierd about the MapServer/identify from https://api3.geo.admin.ch/ API.

While retrieving the geometries for specific egrids, i've realized that the feature id is different every day.

First example request 16-apr-2025:
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[.....]]},"properties":{"ak":"VD","number":"3766","identnd":"VD0001000000","egris_egrid":"CH669983452102","realestate_type":null,"geoportal_url":"https:\/\/www.geo.vd.ch\/?&mapresources=GEOVD_MENSURATION","label":"VD","featureId":980629}}

Second example request 17-apr-2025:
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[......]},"properties":{"ak":"VD","number":"3766","identnd":"VD0001000000","egris_egrid":"CH669983452102","realestate_type":null,"geoportal_url":"https:\/\/www.geo.vd.ch\/?&mapresources=GEOVD_MENSURATION","label":"VD","featureId":977585}}

These examples have the structure which we use, `featureId` is in the properties key. The original response for the second request is: 

{"type":"Feature","featureId":977585,"bbox":[2562858,1129698,2562948.7,1129813.2],"layerBodId":"ch.kantone.cadastralwebmap-farbe","layerName":"CadastralWebMap","id":977585,"geometry":{"type":"Polygon","coordinates":[....]},"properties":{"ak":"VD","number":"3766","identnd":"VD0001000000","egris_egrid":"CH669983452102","realestate_type":null,"geoportal_url":"https:\/\/www.geo.vd.ch\/?&mapresources=GEOVD_MENSURATION","label":"VD"}}

My question is:  why the featureId is changing every day? Shouldn't it be the same?


Reply all
Reply to author
Forward
0 new messages