Multi-Point Proximity Encoding For Vector-Mode Geospatial Machine Learning
John Collins · 2025
Read Multi-Point Proximity Encoding For Vector-Mode Geospatial Machine Learning by John Collins (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-05016.txt.
Introduction
John Collins presents a way to feed map shapes into machine learning in a 2025 paper. Map data come as points, lines, and polygons, and learning models need numbers instead. His method, called MultiPoint Proximity encoding, measures scaled distances from a shape to fixed reference points in a region.
Those distances form a fingerprint that captures the shape's size, place, and form. The code stays smooth when a shape shifts slightly, and it can tell shapes apart by their geometry. It also captures how pairs of shapes relate in space with high precision. Tests show it beats a rival encoding, opening map features to standard learning tools.
Catalog record
| CREATOR | John Collins |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 38 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2506-05016
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Multi-Point Proximity Encoding For Vector-Mode Geospatial Machine Learning John Collins Abstract . Vector-mode geospatial data – points, lines, and polygons – must be encoded into an appropriate form in order to be used with traditional machine learning and artificial intelligence models. Encoding methods attempt to represent a given shape as a vector that captures its essential geometric properties. This paper presents an encoding method based on scaled distances from a shape to a set of reference points within a region of interest. The method – Multi-Point Proximity (MPP) encoding – can be applied to any type of shape, enabling the parameterization of machine learning models with encoded representations of vector-mode geospatial features. We show that MPP encoding possesses the desirable properties of shape-centricity and continuity, can be used to differentiate spatial objects based on their geometric features, and can capture pairwise spatial relationships with high precision. In all cases, MPP encoding is shown to perform better than an alternative method based on rasterization. 1. Introduction The distinction between vector-mode and raser-mode approaches to spatial analysis has existed since the dawn of Geographical Information Systems (GIS). In raster mode, data are represented as values on a regular grid. The grid itself is referenced to a coordinate system, and the spatial properties of each data element is implied by its position in the grid. Vector-mode approaches instead represent geospatial features as discrete points, lines, and polygons, with data values taking the form of attributes assigned to such objects. Both modes are widely used, and have unique strengths and limitations. Any image from a satellite or airborne sensor is naturally represented as a raster, for example. Discrete entities such as road segments, building footprints, and administrative boundaries are most typically defined as vector-mode data. In recent years there has been great interest in applying the methods of Machine Learning (ML) and Artificial Intelligence (AI) to geospatial problems. Within this area, there is a heavy emphasis on what are essentially raster-mode methods. This is hardly surprising, since so many advances in ML have been in the area of image processing – including image classification ( Krizhevsky et al. 2017 ) and object detection ( Redmon et al. 2016 ) . Such methods find natural application in the processing of remotely sensed data, for example in classifying land cover types ( Gavade and Gavade 2025 ) ( Ma et al. 2017 ) , characterizing zones of growth and development ( Mushore et al. 2017 ) , and distinguishing features in the landscape ( Kotaridis and Lazaridou 2021 ) ( Zhang et al. 2023 ) . There is great potential for applying ML and AI approaches to vector-mode geospatial analysis problems. But such methods contend with the fact that most traditional machine learning algorithms – classifiers, regressors, neural networks and so on – are not designed to ingest vector data in the formats in which they are commonly represented. The most common class of vector data representations are those derived from the Open Geospatial Consortium’s (OGC) Simple Feature Architecture ( Open Geospatial Consortium 2011b ) . This specification is embodied by a number of specific formats, including Well-Known Text (WKT) ( Open Geospatial Consortium 2011a ) , GeoJSON ( Butler et al. 2016 ) , and others. Under these formats, LineString and Polygon objects are represented as arbitrary-length lists of coordinate pairs defining linear paths and polygon boundaries repectively. Their irregular format makes them difficult to use in ML models, which typically require inputs to be consistently sized vectors. To address this difficulty, the field of Spatial Representation Learning (SRL) has gained prominence in recent years ( Mai et al. 2024 ) ( Woźniak and Szymański 2021 ) . The goal of SRL is to represent geospatial objects as vectors that capture their spatial properties, which can then be used in further ML/AI processing. The topic is recognized as a critical component enabling further evolution of geospatial AI ( Mai et al. 2025 ) . While a number of solutions have been proposed, many have been developed for specific types of geometries – for example methods to endode only points or only polygons. This specificity partly hinders the application of SRL developments to general geospatial analysis problems, to the extent that ( Mai et al. 2025 ) specifically highlights the need for "a unified representation learning model that can seamlessly handle different spatial data formats". This paper proposes a method that partially address this need for general-purpose encoding of geometric objects. A straightforward adaptation of an existing point encoding approach ( Yin et al. 2019 ) , allows its application to shapes of any type. Specifically using an approach that we call Multi-Point Proximity (MPP) encoding, one can represent any shape based on its distance to a number of reference points within a region of interest. Re-scaling these distances and arranging them as a vector yields a convenient ML-compatible representation. Furthermore we present a framework for assessing the degree to which any such encoding captures measurable properties of the encoded shape. The framework consists of training models to estimate measurable geospatial properties directly form encoded representations. Performance of such models is a proxy for the degree to which the encodings capture the properties. Using this framework, we demonstrate that MPP encoding performs better than an a specific alternative based on rasterization. The remainder of this paper is organized as follows. Section 2 discusses the general background and recent developments in SRL, and outlines some of the key differences among SRL methods and applications. Sections 2.1 and 2.2 respectively present MPP encoding and an alternative baseline approach based on Discrete Indicator Vectors (DIV). Section 2.3 illustrates how general-purpose encoding methods support differentiation of spatial features based on their geometric properties. Section 3 shows how MPP and DIV perform relative to various criteria for encodings, and shows the degree to which they capture properties of individual shapes as well as pairwise relationships between geospatial features. We conclude by discussing possible applications and directions for further work. 2. Encodings and Embeddings According to the OGC model, a spatial feature \mathbf{f} consists of a geometry \mathbf{g} and a set of attribute values \mathbf{v} . \mathbf{f}=(\mathbf{g},\mathbf{v}) The geometry \mathbf{g} consists of the feature’s representation as a Point, LineString, Polygon, or some collection thereof. The attributes \mathbf{v} consist of any qualitative or quantitative properties of the feature. Vector-mode spatial representations are not directly ML-compatible, and require geometric encoding in order to be used in SRL. (1) \mathbf{g}^{*}=\mathrm{ENC}^{\mathbf{g}}(\mathbf{g}) where \mathrm{ENC}^{\mathbf{g}} is a function that maps a geometry into a d_{g} -dimensional space in such a way as to capture its geometric properties. The analogous operation of attribute encoding (2) \mathbf{v}^{*}=\mathrm{ENC}^{\mathbf{v}}(\mathbf{v}) creates vector representations of any attribute that is not naturally a numerical quantity. Both geometric and attribute encoding are most often algorithmic processes; they are effected via a well defined processing sequence or closed-form transformations. Examples include "rasterization" of vector-mode geometries, and one-hot encoding for categorical attributes. The central problem of SRL is to find an embedding \mathbf{m} for either a feature \mathbf{f} or a set of N features \{\mathbf{f}_{i};i\in 1..N\} . (3) \mathbf{m}=\mathrm{EMB}(\{(\mathbf{g}_{i}^{*},\mathbf{v}_{i}^{*}):i\in 1..N\}), That is, \mathrm{EMB} maps encoded geometries and attributes into a space of dimension d_{m} to enable further ML