The GIS Developer's Corner is intended to become a collaborative space where partners can leverage past investments that others have made in geomatics technology and intelligence rather than redevelop or build applications from scratch.
GeoNB Map ServicesMost 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.
Map client softwareThe 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 DevelopmentESRI 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:
- ArcGIS API for Flex
- ArcGIS API for Silverlight / ArcGIS API for WPF
- .NET Web Application Developer Framework
- Java Web Application Developer Framework
- ArcGIS Server REST API
Code GalleriesESRI maintains code galleries where users can freely copy or contribute code samples:
GeoNB Coordinate Transformation ServiceThe 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 interface.
GeoNB CTS REST interface
The REST Transformation Web Service (TransformWS) is accessed through a HTTP GET request. The TransformWS is a .NET service written in C#. Parameter values are extracted from the GET request parameters. The transformation is performed by ArcGIS Server through a SOAP request to the Geometry service. Results from the TransformWS are returned as an XML document.
An example HTTP request is as follows:
Resulting in the following returned XML:
<TransformResponse>The parameters for the TransformWS as seen in the URL above are as follows:
- inWKID=4122 – The well-known id (EPSG code) of the input coordinate system
- outWKID=2200 - The well-known id (EPSG code) of the output coordinate system
- coordinates=-66,45 – The comma separated list of coordinates to be transformed.
A WSDL 2.0 description of the service is located here: ./WebServices/TransformWS/TransformWS.wsdl
Or via the URL here: http://geonb.snb.ca/CTS/WebServices/TransformWS/TransformWS.wsdl
The following coordinate systems (datums and map projections) 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)|
OGC ServicesThe 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.