Create Coordinate Reference Systems
const crsToCreate = [{ srid: 456789, wkt: 'GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]', projString: '+proj=longlat +datum=WGS84 +no_defs \"\"' }]; const createdCRS = await client.geospatial.crs.create(crsToCreate);
Delete Coordinate Reference Systems
await client.geospatial.crs.delete([{ srid: 4326}]);
List Coordinate Reference Systems
const allCRS = await client.geospatial.crs.list({ filterOnlyCustom : true });
Get Coordinate Reference Systems
const retrievedCRS = await client.geospatial.crs.retrieve([{ srid: 4326 }]);
Create Coordinate Reference Systems
const crsToCreate = [{ srid: 456789, wkt: 'GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]', projString: '+proj=longlat +datum=WGS84 +no_defs \"\"' }]; const createdCRS = await client.geospatial.crs.create(crsToCreate);