Support services

GeoNB utilizes ESRI ArcGIS Server and makes data available as ArcGIS Server map services and image services.

GeoNB map services

Most of the data hosted by GeoNB is available as a web service. When data is available as a web 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 and image services.  

Current list of GeoNB web services: 

Here is a guide on using the REST services directory.

Lidar data

GIS (Mapping) 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: 

Instructions for connecting to the GeoNB Servers:

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:

  1. 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.
  2. 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.
 
  • View the complete API reference for the “project” operation of the geometry service

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