May 2017
Beginner to intermediate
328 pages
7h 17m
English
This is a very important function, since tabular data with coordinates stored in separate columns is quite abundant. Examples include geocoded address lists, survey results, and telemetry measurements. Such data can be converted to geometry using the ST_MakePoint function:
SELECT ST_MakePoint(391390,5817855);
Given two numbers, it creates a point geometry. To make it clear what the location really is, and make the created geometry suitable for spatial analysis, an SRID must be given. This can be accomplished using a ST_SetSRID function. So the complete example will be:
SELECT ST_SetSRID(ST_MakePoint(391390,5817855),32633);
The number 32633 is an SRID for UTM coordinates zone 33 north, and in this case, the coordinate pair ...
Read now
Unlock full access