Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST sevices crabpy #45

Closed
maarten-vermeyen opened this issue Feb 27, 2015 · 6 comments
Closed

REST sevices crabpy #45

maarten-vermeyen opened this issue Feb 27, 2015 · 6 comments
Assignees
Milestone

Comments

@maarten-vermeyen
Copy link
Contributor

@koenedaele

Apperenly there is a RESTful API for accessing the CAPAKEY data: http://geo.agiv.be/capakey/api/v0/Help

example: http://geo.agiv.be/capakey/api/v0/Municipality/44021?type=json

This might solve some performace issues and also returns the actual geometry. I'll try to find out whether this is stable.

@koenedaele
Copy link
Member

The API is fairly stable, but there's no guarantee they will keep on supporting it. The basic idea would be to implement a CapakeyRestGateway that has the same API as the CapakeyGateway, but doesn't use the SOAP service, but the REST services. I haven't studies the REST service in detail, so I'm not a 100% sure it can be done. But the difference should be minimal. Ideally, we would use the REST service and if they ever shut it down, we could fall back on the SOAP service.

@koenedaele
Copy link
Member

@BartSaelen Feel free to pass on to someone else if needed.

TalissaJoly pushed a commit that referenced this issue Apr 15, 2015
TalissaJoly pushed a commit that referenced this issue Apr 15, 2015
TalissaJoly pushed a commit that referenced this issue Apr 29, 2015
TalissaJoly pushed a commit that referenced this issue May 8, 2015
@koenedaele koenedaele modified the milestones: 0.7.0, 0.6.0 May 29, 2015
@koenedaele koenedaele modified the milestones: 0.8.0, 0.7.0 Jan 21, 2016
@BartSaelen BartSaelen removed their assignment Jul 7, 2016
koenedaele pushed a commit that referenced this issue Feb 14, 2017
koenedaele pushed a commit that referenced this issue Feb 15, 2017
@koenedaele koenedaele self-assigned this Mar 8, 2017
@cahytinne
Copy link
Contributor

Currently, using the CapakeyRestGateway (
instead of the SOAP CapakeyGateway) will result in a bit of loss of information in terms of parcels. A parcel will be missing two attributes: cashkey and capatype.

Description of two Cadmap attributes:

ATTRIBUUT 3 Sleutel planblad
veldnaam CASHKEY
definitie Tekst (12)
soort Beschrijvend, verplicht
omschrijving Sleutel van het planblad waartoe het Capa-exemplaar behoort.
Deze sleutel is genoteerd als vast formaat en is een concatenatie van het
afdelingsnummer, de sectiecode en de planbladcode.
De planbladsleutel is als volgt opgebouwd:
11111A223345
 11111 (5 posities): numerische code kadastrale afdeling (cijfers)
 A (1 positie): Kadastrale sectie (hoofdletter)
 22 (2 posities): identificatie van het planblad, bij enig planblad twee nullen (cijfers)
 33 (2 posities): deel van een planblad (cijfers)
 4 (1 positie): opsplitsing van een kadasterplan in deelblokken (cijfer)
 5 (1 positie): kwalificatie van het digitale plan (cijfer), er zijn 3 mogelijkheden:
o 0 = niet hermeten
o 1 = hermeten analoog
o 2 = hermeten digitaal
De planbladen met de hoogste nauwkeurigheid hebben achteraan de code “2”.
voorbeeld 38018A010001

ATTRIBUUT 5 Type perceel
veldnaam CAPATY
definitie Tekst (2)
soort Beschrijvend, verplicht
omschrijving Een perceel kan tot 1 van volgende types behoren:
 PR: Privatief perceel
 PP: Perceel openbaar domein of onbepaald domein (wordt opgenomen in entiteit
Caer)
 ER: Foutief perceel (zonder perceelsnummer) (perceel wordt opgenomen in entiteit
Caer)
 XX: Geen informatie (perceel wordt opgenomen in entiteit Caer)

@koenedaele
Copy link
Member

@cahytinne It looks like they're no longer providing that information, so nothing we can do about it. Don't think we ever used it anyway, so no big deal.

@cahytinne
Copy link
Contributor

@koenedaele
Copy link
Member

I think so. I believe they were going to go live at the beginning of april.

cahytinne added a commit that referenced this issue Mar 30, 2017
cahytinne added a commit that referenced this issue Apr 6, 2017
koenedaele pushed a commit that referenced this issue Apr 19, 2017
koenedaele pushed a commit that referenced this issue Apr 19, 2017
…d/crabpy into 45_capakey_rest_services

* '45_capakey_rest_services' of github.com:OnroerendErfgoed/crabpy:
  update requests==2.13.0 #45
  update CapakeyRestGateway url #45
  update CapakeyRestGateway + more tests #45
  add capakey rest gatewey cached tests #45
  test capakey_rest_gateway_request exceptions #45
koenedaele pushed a commit that referenced this issue Apr 19, 2017
* master:
  Update CHANGES
  Drop support for python 3.3, add for 3.6
  Update docs
  Correct default url instellen. Refs #45

Conflicts:
	CHANGES.rst
	docs/usage.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants