This presentation provides an introduction to the basics of managing mobility data. It covers fundamental concepts and ideas related to data processing, and aims to provide the audience with a better understanding of how to manage mobility data more effectively. The content of the presentation is based on practical examples and real-world scenarios.
6. Coordinates (Lat-Lon)
LATITUDE
Latitude represents the distance from the designated point to the equator, expressed in degrees, minutes, and seconds to the north or south. All points located at the same latitude form a parallel.
Its values range between 0° and 90° (north latitude) and between 0° and -90° (south latitude).
LONGITUDE
Longitude expresses the angular distance between a given point on the Earth's surface and the base meridian, which is currently the Greenwich meridian in England.
Its values range between 0° and 180° (east longitude) and between 0° and -180° (west longitude).
Lat Lon
@abxda
7. Let's switch to a
projection in meters
instead.
@abxda
What's going on?
The calculatorwas in radians
8. EPSG:6372 https://epsg.io/6372
Reprojecting latitude and longitude to the EPSG:6372 projection is important to ensure accuracy and consistency
of geographic analysisand datavisualizationin the context of Mexico
@abxda
12. Assign nearest block
(cvegeo)
select shapes.*,
CVEGEO,
ST_Centroid(voronoi.geometry) as centroide_mza,
ST_Distance(ST_Centroid(voronoi.geometry),
ST_Point(x_itrf, y_itrf)) as distancia_centroide_mza
from shapes,voronoi
where ST_Within( ST_Point(x_itrf, y_itrf) , voronoi.geometry)
CVEGEO:0901500011106014
centroide_mza
@abxda
13. Assign nearest block
(cvegeo)
CVEGEO:0901500011106014
centroide_mza
@abxda
To reconstructthe CVEGEO field, which isa unique identifierused byINEGI to representa specific
urban block in Mexico, itispossible to join the geographicdata with the statisticaldata using a
concatenation ofthe ENTIDAD (2) + MUN (3) + LOC(4) + AGEB (4) + MZA (3) fields. Thismethod
generatesa 16-digitcode thatidentifiesa specificgeographiclocation in Mexico.The firsttwo digits
(ENTIDAD) representthe state code, the nextthree digits(MUN) representthe municipalitycode, the
following four digits(LOC) representthe localitycode, the nextfour digits(AGEB) representthe AGEB
(BasicGeostatisticalArea) code, and the finalthree digits(MZA) representthe MZA(Manzana) code,
which correspondsto a specificurban block.By concatenating these fields, itispossible to generate
the unique CVEGEOcode thatrepresentsa specific urban block in Mexico.
15. Time Management
• A timestamp is a way of representing the date and time when an event occurred.
It is a standardizedmethod of expressing the date and time of an event in
seconds, milliseconds, microseconds, or nanoseconds, measured from a reference
date such as January 1, 1970, known as the 'Unix epoch'. The elapsed time since
the Unix epoch is commonly used in operating systems and databases.
@abxda