Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

geopdf-stac-extractor

Latest version: v1.0.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: utilvocom
2 Versions

Scan summary

geopdf-stac-extractor was last scanned on 1 Dec 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 1 Dec 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 1 Dec 2026 No rules fired
0.0.0-stage 1 Dec 2026 Not shown

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

geopdf-stac-extractor

License: MIT Standard: STAC v1.1.0 npm version

Zero-dependency ISO 32000-2:2020 (§12.9) GeoPDF viewport parser and SpatioTemporal Asset Catalog (STAC v1.1.0) GeoJSON Feature Item generator and validator for Node.js (>= 18) and modern browsers.


Technical Motivation

National mapping agencies (USGS Topographic Quadrangles, Swisstopo, IGN France, BKG Germany, Geoscience Australia) distribute millions of georeferenced cartographic sheets as Geospatial PDFs (GeoPDF) encoding viewport footprints inside ISO 32000-2 /Measure (/Subtype /GEO) dictionaries rather than external .tfw / .xml sidecars.

geopdf-stac-extractor extracts /GPTS geographic coordinates, /LPTS viewport coordinates, /EPSG / /WKT coordinate reference systems, and PDF /CreationDate timestamps directly from raw Uint8Array buffers—without native GDAL/C++ bindings—and emits standards-compliant STAC v1.1.0 Feature Items ready for ingestion into STAC catalogs and APIs.


Installation

npm install geopdf-stac-extractor

Or invoke directly via npx:

npx geopdf-stac-extractor --help

ISO 32000-2 (§12.9) GeoPDF → STAC v1.1.0 Mapping

GeoPDF Binary Entry STAC v1.1.0 Item Property
/Subtype /GEO + /GPTS [lat1 lon1 ...] geometry (closed RFC 7946 GeoJSON Polygon in [lon, lat] order) + [west, south, east, north] bbox
/GCS << /EPSG 4326 /WKT (...) >> stac_extensions (projection/v2.0.0) -> properties["proj:code"] & properties["proj:wkt2"]
/CreationDate (D:YYYYMMDDHHmmSSZ) properties.datetime normalized to UTC RFC 3339 / ISO 8601
/Title (...) properties.title and assets.document.title
%PDF-x.y & /Type /Page count properties["geopdf:pdf_version"] & properties["geopdf:page_count"]
Source PDF document path / URI assets.document (type: "application/pdf", roles: ["data", "visual"])

Programmatic API Usage (ESM)

import fs from "node:fs";
import {
  extractGeoPdfMetadata,
  buildStacItemFromGeoPdf,
  validateStacItem,
} from "geopdf-stac-extractor";

const pdfBytes = new Uint8Array(fs.readFileSync("quadrangle.pdf"));

// 1. Inspect raw ISO 32000-2 /Measure & /GPTS viewports
const meta = extractGeoPdfMetadata(pdfBytes);
console.log(meta.epsg, meta.viewports[0].bbox);

// 2. Build a STAC v1.1.0 GeoJSON Feature Item
const stacItem = buildStacItemFromGeoPdf(pdfBytes, {
  id: "usgs-quadrangle-2026",
  assetHref: "https://example.org/maps/quadrangle.pdf",
  collection: "topographic-quadrangles",
});

// 3. Validate against STAC v1.1.0 & RFC 7946 Polygon ring closure rules
const validation = validateStacItem(stacItem);
console.log(validation.valid, validation.errors);

Command-Line Interface (CLI)

# Generate a STAC v1.1.0 GeoJSON Item from a GeoPDF
npx geopdf-stac-extractor extract quadrangle.pdf --id usgs-quad-01 --out item.stac.json

# Inspect raw ISO 32000-2 /Measure & /GPTS geospatial metadata
npx geopdf-stac-extractor inspect quadrangle.pdf

# Validate any STAC v1.0.0 / v1.1.0 Item JSON file
npx geopdf-stac-extractor validate item.stac.json

Testing

npm test

License & Maintainer

Released under the MIT License. Maintained by Islam Ayoub (Utilvo).

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm geopdf-stac-extractor

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229