GeoNB Map Services
Most of the data hosted by GeoNB is available as a map service. When data is available as a map service it can be accessed over the Internet when the data is required. It is not necessary to download a copy of the data to make use of it. GeoNB utilizes ESRI ArcGIS Server and makes data available as ArcGIS Server map services. GeoNB uses dynamic map services and tile cached map services. A current list of GeoNB map services can be browsed in the GeoNB REST services directory. Here is a guide on using the REST services directory.Lidar Data
Map client software
The GeoNB map services can be used by several ESRI map clients. Using these map clients it is possible to connect directly to the GeoNB Servers to view and query the GeoNB maps:- ArcMap and ArcCatalog
- ArcGIS Explorer Desktop (free)
- ArcGIS Explorer Online (free - requires Microsoft Silverlight)
- ArcGIS Online (free)
- ArcGIS for AutoCAD (free plugin for AutoCAD software)
- ArcGIS for Smartphones and Tablets
Software Development
ESRI provides several web APIs (application programming interfaces), ADFs (application developer frameworks), and SDKs (software development kits) for ArcGIS Server. The web APIs and ADFs can be used to incorporate GeoNB map services and GIS functionality into your own website or web application:The following SDKs can be used to develop mobile applications for smartphones and tablets:
Code Galleries
ESRI maintains code galleries where users can freely copy or contribute code samples:GeoNB Coordinate Transformation Service
The GeoNB Coordinate Transformation Service (CTS) is a REST web service for the transformation of coordinates in New Brunswick. The GeoNB CTS can be accessed in two ways:- It can be accessed with a web browser through a web based user interface. There is a downloadable user guide in PDF format for the GeoNB CTS web based user interface.
- It can be accessed programmatically through a REST API. The REST API uses the “project” operation of ArcGIS Server's geometry service. Read below for more details on the REST API.
GeoNB CTS REST API
The REST API is accessed through a HTTP GET request. The input coordinates are formatted as a JSON string in the URL. The transformation parameters are defined by several variables included in the URL. Results from the geometry service are returned as a JSON string.
Example
An example request to convert from:
- ATS 1977, geographic coordinates: 45.00000 deg, -66.00000 deg, to
NAD 1983 (CSRS), NB Stereographic Double:
https://geonb.snb.ca/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&outSR=2953&inSR=4122&geometries={"geometryType":"esriGeometryPoint","geometries":[{"spatialReference":{"wkid":4122},"x":-66,"y":45}]}&transformation=1841&transformForward=true
An example JSON string response:
{"geometries":[{"x":2539429.3161128568,"y":7333411.5780794201}]}
The parameters for the “project” operation as seen in the URL above are as follows:
- outSR=2953 - The well-known id (EPSG code) of the output spatial reference, required.
- inSR=4122 – The well-known id (EPSG code) of the input spatial reference, required.
- geometries={"geometryType":"esriGeometryPoint","geometries":[{"spatialReference":{"wkid":4122},"x":-66,"y":45}]} – The input coordinates formatted as a JSON string, required.
- transformation=1841 – The well-known id (EPSG code) of the datum transformation, optional.
- transformForward=true – Direction of the datum transformation, optional.
The complete API reference for the “project” operation of the geometry service can be found here - https://geonb.snb.ca/arcgis/sdk/rest/index.html#//02ss0000001p000000
The following coordinate systems (datum and map projection) are supported by the GeoNB CTS:
WKID (EPSG code) | Datum | Map Projection |
5588 | NAD 1927 | New Brunswick Stereographic Double |
26719 | NAD 1927 | UTM Zone 19T |
26720 | NAD 1927 | UTM Zone 20T |
4267 | NAD 1927 | Geographic (latitude and longitude) |
2200 | ATS 1977 | New Brunswick Stereographic Double |
2219 | ATS 1977 | UTM Zone 19T |
2220 | ATS 1977 | UTM Zone 20T |
4122 | ATS 1977 | Geographic (latitude and longitude) |
2953 | NAD 1983 (CSRS) | New Brunswick Stereographic Double |
2960 | NAD 1983 (CSRS) | UTM Zone 19T |
2961 | NAD 1983 (CSRS) | UTM Zone 20T |
4617 | NAD 1983 (CSRS) | Geographic (latitude and longitude) |
The following datum transformations are supported by the GeoNB CTS:
WKID (EPSG code) | Datum | Method |
1841 | ATS 1977 < > NAD 1983 (CSRS) | NTv2 |
6209 | NAD 1927 < > NAD 1983 (CSRS) | NTv2 |
OGC Services
The Open Geospatial Consortium (or OGC) is an international voluntary consensus standards organization, established in 1994. In the OGC, more than 400 commercial, governmental, nonprofit and research organizations worldwide collaborate in a consensus process encouraging development and implementation of open standards for geospatial content and services, GIS data processing and data sharing. GeoNB does not currently offer OGC services, however, some GeoNB map services may be available as an OGC WMS (web map service) in the future.Flash Player