CI Cadastre Vertices
Overview
Use live portal data. Parcel status, geometry, and even existence can change, so do not treat previously observed permits as stable examples. Prefer the official Esri geometry exposed by the loaded Landfolio page; use visual reconstruction only when page-state geometry is unavailable.
Agent-Agnostic Workflow
Use whatever browser-control surface the current agent has: Playwright, Chrome DevTools, an in-app browser, OpenClaw-style browser control, Computer Use, or equivalent. The needed capabilities are: navigate, fill/search, wait for visible text, evaluate JavaScript in the page, and optionally inspect network requests.
- Open
https://portals.landfolio.com/CoteDIvoire/en/. - Dismiss the welcome panel if it appears.
- Fill the field labeled
Search: Licenses, Partieswith the parcel/license code and submit. - Wait until the result panel contains the exact code. Record visible metadata such as group, code, status, party, type, and area. If multiple partial matches appear, select the exact
attributes.Code. - Evaluate
window.Map.c_objCurrentSearchResultsin the page. Do not stringify whole Esri objects because they contain circular DOM/graphics references. Extract only:
Object.fromEntries(
Object.entries(window.Map.c_objCurrentSearchResults || {}).map(([group, items]) => [
group,
items.map((item) => ({
layerId: item.layerId,
mapServiceName: item.MapServiceName,
attributes: item.feature && item.feature.attributes,
geometryType: item.feature && item.feature.geometry && item.feature.geometry.type,
rings: item.feature && item.feature.geometry && item.feature.geometry.rings,
spatialReference: item.feature && item.feature.geometry && item.feature.geometry.spatialReference
}))
])
)
- Prefer an exact
attributes.Codematch. For active licences, the portal uses thePermis Dynamicservice, whose configured REST URL ishttps://mines.gouv.ci.cadastreminier.org/arcgis/rest/services/MapPortal/ActiveLicences/MapServer. Direct service calls may return499 Token Required; the browser path is reliable because the app uses its own proxy/token flow. - Geometry usually arrives as Web Mercator rings in
wkid: 102100/latestWkid: 3857. Drop the final duplicated closing point before reporting vertices. - Convert Web Mercator
(x, y)to WGS84:
const R = 6378137;
const lon = x / R * 180 / Math.PI;
const lat = (2 * Math.atan(Math.exp(y / R)) - Math.PI / 2) * 180 / Math.PI;
Cross-check in the page, when available:
esri.geometry.webMercatorToGeographic(
new esri.geometry.Point(x, y, Map.c_objMap.spatialReference)
)
- Convert decimal degrees to DMS if requested:
degrees + minutes / 60 + seconds / 3600; useNfor positive latitude,Sfor negative latitude,Efor positive longitude, andWfor negative longitude.
Visual Fallback
Use this only when the in-page result object or service geometry is unavailable.
- Zoom and pan until the parcel polygon is large enough to inspect. Use stable map controls such as
Zoom In, not fixed coordinates. - Open
Define Area of Interest; the coordinate entry panel appears asSaisir Coordonnees. - Keep
WGS 1984andDMS. - Use the live cursor coordinate readout only as a guide. Record saved coordinate rows from the panel as evidence.
- Enter each vertex row as latitude degrees, minutes, seconds,
N, longitude degrees, minutes, seconds,W. Use the plus-sign row for the next vertex. - Confirm the AOI overlays the parcel boundary and that the area is plausible.
Drift And Evidence
- Do not embed or rely on fixed permit examples as truth. Permits may be renewed, revoked, reshaped, archived, or removed.
- Treat any prior successful permit lookup as a smoke test only after re-querying the live portal in the current run.
- Keep output tied to current evidence: visible portal result details plus extracted geometry source.
- If the browser cannot evaluate page JavaScript, inspect network responses for ArcGIS
querycalls or fall back to visual reconstruction.
Output
Report the parcel code, portal result details, coordinate source, coordinate system, coordinate format, and vertices. Include both DMS and decimal degrees unless the user asks for only one format.
State whether the answer came from official in-page Esri geometry, direct service geometry, or visual reconstruction. Do not overstate visually reconstructed coordinates as surveyed boundary data.
微信扫一扫