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]} "type":"Point","coordinates":[4.902132,52.378894]} {"type":"Point","coordinates":[139.691706,35.689487]} {"type":"Point","coordinates":[-0.127758,51.507351]} {"type":"Point","coordinates":[114.169364,22.319303]}
|
{"type":"MultiPoint","coordinates":[ [-73.986951,40.748817], [4.902132,52.378894], [139.691706,35.689487], [-0.127758,51.507351], [114.169364,22.319303] ]}
|
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]]}
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]]]}
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]]]]}