Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
georender-style2png
Advanced tools
Readme
create a texture png from a georender stylesheet
var fs = require('fs')
var makePNG = require('fast-png')
var makeTex = require('georender-style2png')
var data = makeTex({
stylesheet: require('./style.json'),
features: require('georender-pack/features.json'),
defaults: require('georender-style2png/defaults.json')
})
var png = makePNG.encode(data)
fs.writeFileSync('texture.png', png)
usage: georender-style2png {OPTIONS} [stylesheet file]
options:
--stylesheet, -s JSON file with an object specifying
georender styles.
--features, -f JSON file with OSM features mapped
to number values. default:
georender-pack/features.json
--defaults, -d JSON file with default style settings.
default: defaults.json
--outfile, -o Write PNG data to this file.
for example, to create a png image from a stylesheet called style.json:
georender-style2png style.json -o style.png
var makeTex = require('georender-style2png')
var settings = require('georender-style2png')
create a Uint8Array of image texture data
from opts
:
opts.stylesheet
- rules for visual display of OSM featuresopts.features
- OSM features mapped to number valuesopts.defaults
- default style settingssettings.zoomStart
- lowest zoom level (eg: 1)settings.zoomEnd
- highest zoom level (eg: 21)settings.heights
- height of point, line, area sections in pixelssettings.ranges
- height of point, line, area sections in [0,1] spaceto get the command line version:
npm install -g georender-style2png
to get the library:
npm install georender-style2png
MIT
FAQs
create a texture png from a georender stylesheet
The npm package georender-style2png receives a total of 1 weekly downloads. As such, georender-style2png popularity was classified as not popular.
We found that georender-style2png demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.