Get Parcel from address

86 views
Skip to first unread message

Matteo De Sabato

unread,
May 31, 2024, 10:57:55 AM5/31/24
to GeoAdminCh API
Hi everybody,
quick question. Is there any way to get all of the roofs data inside a parcel, by giving either the address or coords for an address that is inside that parcel? 

Thank you. 

Pascal Barth

unread,
Jun 12, 2024, 5:11:06 AM6/12/24
to geoadm...@googlegroups.com
Hi Matteo,

You might get the address's "extent" by running a text search on it (example using Bundesgasse 3 3011 Bern)
https://api3.geo.admin.ch/rest/services/ech/SearchServer?sr=2056&searchText=Bundesgasse%203%203011%20Bern&lang=en&type=locations

In this result you have to select the building that interests you, and run an identify with the layer for Solar energy potential (ch.bfe.solarenergie-eignung-daecher) on the building's extent (here I selected the first building, there's a BBOX stored in the geom_st_box2d property)

You aren't sure it belongs to the specific building you selected because the extent is based on a cardinal positioning (always placed with faces pointing to all cardinals) while you building might be rotated and have close neighbors. But for the time being I don't know a way to give this identify request a proper building ID to filter out neighbor, maybe someone else knows some trick in this regard.

Hope it helps, sorry for the response delay, we are quite busy and focused on delivering the new mapviewer currently...

Cheers,
Pascal


--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/bd3f846d-0c2d-4c68-a657-6ed9c32e6f55n%40googlegroups.com.

Matteo De Sabato

unread,
Jan 6, 2025, 9:52:05 AM1/6/25
to GeoAdminCh API
Don't worry Pascal.
Sorry for the late response. I managed to figure it out. 

Reply all
Reply to author
Forward
0 new messages