What is a multipoint, multiline or multipolygon geometry?
In the Spotzi Geomarketing Platform, we offer various geometries, including points, lines, and polygons. However, there is also a way to combine multiple points, lines, or polygons into a single record. Depending on the geometry type you want to combine, we refer to this as multipoint, multiline, or multipolygon.
How can we observe this difference in the data?
Let's take a look at how we can see this in the data. On the left side, we have 5 points, with each row representing a point. On the right side, we see the same points grouped into a MultiPoint geometry.
| Point | MultiPoint |
{"type":"Point","coordinates":[-73.986951,40.748817]}<br> <br>"type":"Point","coordinates":[4.902132,52.378894]}<br> <br>{"type":"Point","coordinates":[139.691706,35.689487]}<br> <br>{"type":"Point","coordinates":[-0.127758,51.507351]}<br> <br>{"type":"Point","coordinates":[114.169364,22.319303]} | {"type":"MultiPoint","coordinates":[<br>[-73.986951,40.748817],<br>[4.902132,52.378894],<br>[139.691706,35.689487],<br>[-0.127758,51.507351],<br>[114.169364,22.319303]<br>]} |
Which multi geometries are available?
Multipoint Geometry
A multipoint is a collection of individual points or coordinates on a map. It groups multiple geographic locations together in a single entry. Each point within the multipoint represents a specific location, such as store branches or landmarks. Set Up: To set up a multipoint, you provide a list of latitude and longitude coordinates for each location. These coordinates are grouped together to form a single multipoint entry.
Example of a MultiPoint feature
{"type":"MultiPoint","coordinates":[[-73.986951,40.748817],[4.902132,52.378894],[139.691706,35.689487],[-0.127758,51.507351],[114.169364,22.319303]]}
Multiline Geometry
A multiline is used to represent connected line segments on a map. It's ideal for displaying routes, roads, or pathways that consist of multiple segments or lines. Set Up: To create a multiline, you define the starting and ending points of each line segment and connect them to form a continuous path. This set of connected line segments makes up the multiline.
Example of a MultiLine feature
{"type":"MultiLineString","coordinates":[[[6.01021764,52.33408035],[6.01021764,52.33408035],[6.02532384,52.35924793],[6.01502416,52.38607756],[6.01433752,52.41247206],[6.02189062,52.43843219],[6.03562353,52.45600939]]]}
Multipolygon Geometry
A multipolygon represents multiple enclosed geographic areas or regions. It's commonly used to show territories, boundaries, or regions that consist of multiple shapes. Set Up: To set up a multipolygon, you define the individual polygons that make up a larger area. Each polygon has a set of coordinates that outline its shape. The multipolygon groups these polygons together to represent a more complex geographic area.
Example of a MultiPolygon feature
{"type":"MultiPolygon","coordinates":[[[[19.82502937,40.68735504],[19.82194328,40.68235779],[19.8148365,40.67967224],[19.81023788,40.67752838],[19.80553818,40.6753273],[19.80166626,40.67650986],[19.80024719,40.67720413]],[[19.7924099,40.72048187],[19.79672241,40.71750641],[19.80062675,40.71349716],[19.80431366,40.70675659],[19.80429459,40.70547867],[19.81305313,40.70576859],[19.82108688,40.70426941],[19.82258034,40.69897842],[19.82014465,40.69248962],[19.82502937,40.68735504]]]]}
Benefits of using MultiPoint, MultiLine or MultiPolygon features
- Efficient Representation: Multipoints allow for the efficient representation of multiple individual locations in a single entry.
- Clear Visualization: Multipoints provide a clear way to show clustered points of interest on a map, such as store locations.
- Effective Route Display: Multilines are suitable for displaying complex routes, such as road networks or pathways with multiple segments.
- Detailed Information: Multilines offer a way to represent detailed information about connections and directions.
- Accurate Boundaries: Multipolygons are ideal for accurately representing complex geographic areas with multiple enclosed shapes.
- Detailed Mapping: Multipolygons allow for detailed mapping of regions with distinct boundaries or territories.
Shortcomings of using MultiPoint, MultiLine or MultiPolygon features
- Limited Context: Multipoints may not provide context or information about the connections between locations.
- Visual Clutter: Multipoints can lead to visual clutter when dealing with a large number of points, making maps harder to interpret.
- Complex Data Entry: Setting up multilines with numerous line segments can be time-consuming and complex.
- Visual Complexity: Extremely detailed multiline data can result in visually complex maps that are challenging to read.
- Data Complexity: Representing multipolygons with multiple shapes can be data-intensive and require careful management.
- Potentially Overlapping Shapes: When using multipolygons, it's essential to handle overlapping shapes accurately to avoid mapping issues.
