D 2019-04-24T12:25:05.936 L PROJ.6 P 461b173ec3618eb5c46e3dee9e7309c162233b88 U sandro W 27506 back
SRID | CRS Name | proj-string |
---|---|---|
3003 | Monte Mario / Italy zone 1 | +proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=1500000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs |
4326 | WGS 84 | +proj=longlat +datum=WGS84 +no_defs |
32632 | WGS 84 / UTM zone 32N | +proj=utm +zone=32 +datum=WGS84 +units=m +no_defs |
SRID | 3003 | 4326 | 32632 |
---|---|---|---|
CRS Name | Monte Mario / Italy zone 1 | WGS 84 | WGS 84 / UTM zone 32N |
ISO-2018 WKT | ELLIPSOID["International 1924",6378388,297, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]]], CONVERSION["Italy zone 1", METHOD["Transverse Mercator", ID["EPSG",9807]], PARAMETER["Latitude of natural origin",0, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8801]], PARAMETER["Longitude of natural origin",9, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8802]], PARAMETER["Scale factor at natural origin",0.9996, SCALEUNIT["unity",1], ID["EPSG",8805]], PARAMETER["False easting",1500000, LENGTHUNIT["metre",1], ID["EPSG",8806]], PARAMETER["False northing",0, LENGTHUNIT["metre",1], ID["EPSG",8807]]], CS[Cartesian,2], AXIS["easting (X)",east, ORDER[1], LENGTHUNIT["metre",1]], AXIS["northing (Y)",north, ORDER[2], LENGTHUNIT["metre",1]], AREA["Italy - west of 12°E"], BBOX[36.53,5.94,47.04,12], ID["EPSG",3003]] |
Important notice: there are several dialects in the WKT notation describing CRSes. All them share the same core and mainly differ in few minor details. PROJ.6 can understand the following dialects:
|
In order to learn more about the many interesting cool new features supported by PROJ.6 please consult the original documentation |
---|
SQL Function | Extended signature | Behavior under PROJ.6 | ||
---|---|---|---|---|
ST_Transform() |
ST_Transform ( geom Geometry , newSrid Integer , area Geometry ) : Geometry ST_Transform ( geom Geometry , newSrid Integer , area Geometry , method Text ) : Geometry ST_Transform ( geom Geometry , newSrid Integer , area Geometry , method Text , proj_string Text ) : Geometry |
| ||
InitSpatialMetaData() InitSpatialMetaDataFull() InsertEpsgSRID() | unchanged |
All these SQL Functions doesn't change their signatures, but behave in a significantly different way when PROJ.6 support is available.
|
SQL Function | Supported arguments | Description |
---|---|---|
HasProj6( void ) : Boolean | None | Will return 1 (TRUE) if the library has been built on PROJ.6 (or any later version), otherwise 0 (FALSE). |
PROJ_GetLastErrorMsg( void ) : String | None | Will return the most recent error message returned by PROJ (if any). NULL will be returned if there is no curently pending PROJ error. |
PROJ_GetDatabasePath( void : String) | None | Will return the currently set pathname leading to the private PROJ's SQLite database. NULL will be returned if there is no private PROJ's SQLite database currently connected. |
PROJ_SetDatabasePath ( new_path String ) : String |
|
Will change the currently set pathname leading to the private PROJ's SQLite database. NULL will be returned if the passed path is invalid, otherwise the path of the currently set private PROJ's SQLite database will be returned. |
PROJ_AsWKT ( auth_name String , auth_srid Integer ) : String PROJ_AsWKT ( auth_name String , auth_srid Integer , wkt_style String ) : String PROJ_AsWKT ( auth_name String , auth_srid Integer , wkt_style String , indented Boolean ) : String PROJ_AsWKT ( auth_name String , auth_srid Integer , wkt_style String , indented Boolean , indentation Integer ) : String |
|
Will return the WKT expression corresponding to a given CRS; the definitions will be taken directly from the private PROJ's own database. NULL will be returned on failure or on invalid arguments. |
PROJ_GuessSridFromWKT ( wkt_expr String ) : Integer |
|
Will possibly return the SRID value corresponding to a given WKT expression defining a CRS. -1 will be returned if no CRS supported by PROJ.6 matches the WKT expression. NULL will be returned on invalid argument. |
PROJ_GuessSridFromSHP ( filename String ) : Integer |
|
Will possibly return the SRID value corresponding to the CRS defined by the .PRJ member of the Shapefile. -1 will be returned if no CRS supported by PROJ.6 matches PRJ member of the Shapefile. NULL will be returned on invalid argument. Please note well: this SQL function opend the door to many potential security issues, and thus is always disabled by default. Explicitly setting the environment variable SPATIALITE_SECURITY=relaxed is absolutely required in order to enable this function. |
Note: all the above SQL Functions will be available only when Spatialite-5.0.0 has been built against PROJ.6 (or any subsequent version). If SpatiaLite-5.0.0 has been built instead against any previosus version (as e.g. PROJ.4) any attempt to call one of these SQL Functions will simply return a no such function SQL error. |
Important notice for Windows users |
---|
PROJ.6 critically depends on its own private SQLite database (proj.db) containing all relevant definitions about Ellipsoids, Prime Meridians, CRSes, Transformations and alike. If PROJ.6 is unable to correctly establish a connection to this database it will be severely limited and will not be able to correctly behave as expected.
This isn't usually a big issue on Linux and Unix-like platforms, where a rational and very clear filesystem layout exists. On these operating systems the package manager (or make install) will automatically take care to install proj.db on the most appropriate directory (usually as /usr/share/proj/proj.db or as /usr/local/share/proj/proj.db) and that's all. Things are unhappily a little bit more difficults on Windows platforms. The user itself is responsible for properly installing proj.db So it becomes critical understanding the basic rules adopted by libspatialite in order to properly locate proj.db on Windows. |
Where proj.db is expected to be found on Windows |
An useful diagnostic check
|
Using the environment variable SPATIALITE_PROJ_DB_PATH |
---|
If the environment variable SPATIALITE_PROJ_DB_PATH is set, then libspatialite will simply attempt to connect the database pointed by this variable. Such a capability is supported not only on Windows but also on Linux (and on any other platform). Linux example:
Windows example:
|