npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@datafire/gov_bc_ca_geomark

v6.0.0

Published

DataFire integration for GeoMark Web Service REST API

Readme

@datafire/gov_bc_ca_geomark

Client library for GeoMark Web Service REST API

Installation and Usage

npm install --save @datafire/gov_bc_ca_geomark
let gov_bc_ca_geomark = require('@datafire/gov_bc_ca_geomark').create();

.then(data => {
  console.log(data);
});

Description

The Geomark Web Service allows you to create and share geographic areas of interest over the web in a variety of formats and coordinate systems. This service is especially helpful when you need to share an area of interest with people who require that the data be in a different format, or they use different mapping software.

Please note that you may experience issues when submitting requests to the delivery or test environment if using this OpenAPI specification in other API console viewers.

Actions

geomarks.copy.post

The source geomarks can be specified by with the geomarkUrl parameter. Repeat the parameter if sourcing from multiple geomarks

gov_bc_ca_geomark.geomarks.copy.post({
  "geomarkUrl": ""
}, context)

Input

  • input object
    • geomarkUrl required string: One or more geomark URLs or identifiers to create the new geomark from.
    • resultFormat string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format the geomark info resource should be returned using.
    • allowOverlap boolean (values: false, true): Select this option to allow overlapping geometries
    • callback string: The callback function a JSON result format would be wrapped in to support Ajax requests.
    • redirectUrl string: The optional external URL to redirect the user to when the geomark is created rather than showing the geomark info page. The geomarkId and geomarkUrl query string parameters will be added to the redirectUrl so that the target application gets a reference to the geomark.
    • failureRedirectUrl string: The url to redirect if the geomark could not be created. The URL will include a _Error parameter with the error message for the field that caused the error.
    • bufferMetres integer: The amount to buffer the geometry in metres, must only contain numerical digits (e.g 10). Leave blank and no buffer will be added to input geometries. If blank then any Point, LineString, MultiPoint and MultiLineString geometries will be ignored.
    • bufferJoin string (values: ROUND, MITRE, BEVEL): If bufferMetres is specified, The style of buffer to use for joins between the line segments for lines and polygons.
    • bufferCap string (values: ROUND, SQUARE, FLAT): If bufferMetres is specified, The style of buffer to use at the ends of a buffered line.
    • bufferMitreLimit integer: If bufferMetres is specified, the maximum ratio of distance from the original geometry to a mitre buffer point and the buffer amount. If the ratio is greater than this a bevel will be used instead. This prevents infinite distances when the angle between the two lines at a join is small. Must be > 0.
    • bufferSegments integer: If bufferMetres is specified, the number of line segments used in each quadrant to approximate the curve for round end-cap and join styles. Must be > 0.

Output

Output schema unknown

geomarks.new.post

Create a new geomark from the geometries read from the 'body' parameter or file.

gov_bc_ca_geomark.geomarks.new.post({}, context)

Input

  • input object
    • allowOverlap boolean (values: false, true): When multiple=true select this option to allow overlapping geometries
    • body string: The binary or character content representing the geometry or geometries
    • bufferCap string (values: ROUND, SQUARE, FLAT): If bufferMetres is specified, The style of buffer to use at the ends of a buffered line.
    • bufferJoin string (values: ROUND, MITRE, BEVEL): If bufferMetres is specified, The style of buffer to use for joins between the line segments for lines and polygons.
    • bufferMetres integer: The amount to buffer the geometry in metres, must only contain numerical digits (e.g 10). Leave blank and no buffer will be added to input geometries. If blank then any Point, LineString, MultiPoint and MultiLineString geometries will be ignored.
    • bufferMitreLimit integer: If bufferMetres is specified, the maximum ratio of distance from the original geometry to a mitre buffer point and the buffer amount. If the ratio is greater than this a bevel will be used instead. This prevents infinite distances when the angle between the two lines at a join is small. Must be > 0.
    • bufferSegments integer: If bufferMetres is specified, the number of line segments used in each quadrant to approximate the curve for round end-cap and join styles. Must be > 0.
    • callback string: The callback function a JSON result format would be wrapped in to support Ajax requests.
    • failureRedirectUrl string: The url to redirect if the geomark could not be created. The URL will include a _Error parameter with the error message for the field that caused the error.
    • format string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension of the input geometry.
    • multiple boolean (values: false, true): Boolean flag indicating if multiple geometries are to be used for the geomark (true) or only a single geometry from the first geometry (false).
    • redirectUrl string: The optional external URL to redirect the user to when the geomark is created rather than showing the geomark info page. The geomarkId and geomarkUrl query string parameters will be added to the redirectUrl so that the target application gets a reference to the geomark.
    • resultFormat string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format the geomark info resource should be returned using.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the input geometries are in. If the file includes a coordinate system definition that will be used.

Output

Output schema unknown

geomarks.geomarkId.fileFormatExtension.get

The attribution can be downloaded as a info file format. The download files can then be processed by a client application to access the geomark info fields and to get the URLs to the geometry download resources.

gov_bc_ca_geomark.geomarks.geomarkId.fileFormatExtension.get({
  "geomarkId": "",
  "fileFormatExtension": ""
}, context)

Input

  • input object
    • geomarkId required string: The unique identifier for the geomark.
    • fileFormatExtension required string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension used to represent the geomark download.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the geometry should be converted to.

Output

Output schema unknown

geomarks.geomarkId.boundingBox.fileFormatExtension.get

The source geomarks can be specified by with the geomarkUrl parameter. Repeat the parameter if sourcing from multiple geomarks

gov_bc_ca_geomark.geomarks.geomarkId.boundingBox.fileFormatExtension.get({
  "geomarkId": "",
  "fileFormatExtension": ""
}, context)

Input

  • input object
    • geomarkId required string: The unique identifier for the geomark
    • fileFormatExtension required string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension used to represent the geomark download.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the geometry should be converted to.

Output

Output schema unknown

geomarks.geomarkId.feature.fileFormatExtension.get

The geomark feature resource returns a single spatial feature with either a single (Point, LineString, Polygon) or multi-part geometry (MultiPoint, MultiLineString, MultiPolygon) and the geomark attribution. The geometry and attribution can be downloaded as a spatial download file format in a supported coordinate system. The download files can then be used in a desktop GIS application (e.g. ArcMap), Google Earth or a web mapping application.

gov_bc_ca_geomark.geomarks.geomarkId.feature.fileFormatExtension.get({
  "geomarkId": "",
  "fileFormatExtension": ""
}, context)

Input

  • input object
    • geomarkId required string: The unique identifier for the geomark
    • fileFormatExtension required string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension used to represent the geomark download.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the geometry should be converted to.

Output

Output schema unknown

geomarks.geomarkId.parts.fileFormatExtension.get

The geomark parts resource returns a one or more spatial features. One for each part of the Geomark's geomerty. Each part contains a single (Point, LineString, Polygon) geometry and the geomark attribution.

gov_bc_ca_geomark.geomarks.geomarkId.parts.fileFormatExtension.get({
  "geomarkId": "",
  "fileFormatExtension": ""
}, context)

Input

  • input object
    • geomarkId required string: The unique identifier for the geomark
    • fileFormatExtension required string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension used to represent the geomark download.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the geometry should be converted to.

Output

Output schema unknown

geomarks.geomarkId.point.fileFormatExtension.get

The geomark point resource returns a single spatial feature with a single Point and the geomark attribution. The point geometry will be created from the first geometry part of the Geomark. Point geomarks will return the first Point part in the geomark. LineString geomarks will return the first coordinate of the first LineString part in the geomark. Polygon geomarks will return the centroid or another point inside the first Polygon part in the geomark. The geometry and attribution can be downloaded as a spatial download file format in a supported coordinate system. The download files can then be used in a desktop GIS application (e.g. ArcMap), Google Earth or a web mapping application.

gov_bc_ca_geomark.geomarks.geomarkId.point.fileFormatExtension.get({
  "geomarkId": "",
  "fileFormatExtension": ""
}, context)

Input

  • input object
    • geomarkId required string: The unique identifier for the geomark.
    • fileFormatExtension required string (values: json, xml, kml, kmz, shp, shpz, geojson, gml, wkt): The file format name extension used to represent the geomark download.
    • srid integer (values: 4326, 3005, 3857, 26907, 26908, 26909, 26910, 26911): The srid of the coordinate system the geometry should be converted to.

Output

Output schema unknown

Definitions

This integration has no definitions