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 🙏

© 2024 – Pkg Stats / Ryan Hefner

rasterfari

v0.0.1

Published

it is like a webserver for your georeferenced rasterdocuments, but it understands the OGC WMS standard (a kind of)

Downloads

7

Readme

RasterFari

1452108578_rasta

Once in a while there is a need for an OGC WMS compliant service that serves a folder (or structure) of georeferenced documents (GeoTIFF as a first step).

What it is not

What it is

  • it is like a webserver for your rasterdocuments, but it understands the OGC WMS standard (a kind of)
  • it serves portions of the selected file according to the area the request is made
  • it serves different resolutions of the selected file according to the size the request is made
  • it serves multiple documents in one request

What can i do with it

  • if you know what document you want to show and you want to display it in a map context (e.g. in a WMS client) you should definetly give it a try

Prerequisites

  • based on node.js (>= 5.3.0)
  • packed with npm (>= 3.3.12)
  • uses GDAL 1.11.3
  • uses ImageMagick 6.9.2-8

installation with

git clone https://github.com/cismet/rasterfari.git
cd rasterfari
npm install

configure

Just edit the config.json

{
    "workers": 20,
    "tmpFolder": "./tmp/",
    "keepFilesForDebugging": false,
    "customExtensions":"./custom.js",
    "speechComments": false,
    "interpolation":"average",
    "//interpolation_alternatives": "near,average,bilinear,cubic,cubicspline,lanczos" 
}
  • workers: numbers of parallel instances waiting for requests
  • tmpFolder: the folder where rasterfari stores its inbetweens
  • keepFilesForDebugging: keep the inbetweens
  • customExtensions: the file with custom js extensions
  • speechComments: if turned on, and a saycommand is available on your system (Mac OS) rasterfari will talk about its work
  • interpolation: selects the interpolation algorithm used by gdal

start

npm start

examples

a single document with a proper bounding box to show the whole dosument

http://127.0.0.1:8081/geoDocWMS?REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:25832&BBOX=373649.02089266,5678438.990322266,374123.7498055822,5678702.54671875&WIDTH=870&HEIGHT=483&LAYERS=exampleDocs/B106_DBA.tif

geodocwms-1

three documents with the same bounding box show only parts of the added documents

http://127.0.0.1:8081/geoDocWMS?REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:25832&BBOX=373649.02089266,5678438.990322266,374123.7498055822,5678702.54671875&WIDTH=870&HEIGHT=483&LAYERS=exampleDocs/B106_DBA.tif,exampleDocs/B911_DBA_Teil1.tif,exampleDocs/B911_DBA_Teil2.tif

geodocwms-2


Rastaman icon from http://www.kameleon.pics/free-icons-pack.html

The example docs are from the Stadtverwaltung Wuppertal. Thanks so much.