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.
geojson2obj
Advanced tools
Readme
A converter from GeoJSON to Wavefront OBJ format.
There's a small command line example in the examples
directory, which you can use to try out the library.
Sample command line:
cd examples
./cli.js norway-coastline.geo.json
It should write an OBJ file to your stdout.
Converts the geojson
to an OBJ, that is written to the stream
.
When done, the callback is called; callback
is a normal Node.js callback
accepting an error as the first argument.
Note that the geojson
must be a Feature
or FeatureCollection
.
Available options:
featureBase
: function f(feature, callback)
that returns the height of
a feature's base; by default, a function that always returns 0.featureHeight
: function f(feature, callback)
that returns the height of
a feature; by default, a function that returns 10 for polygons and
0.3 for linestrings.lineWidth
: for line geometries, returns the width of the generated
geometry; defaults to 2.featureName
: a function f(feature, callback)
that returns the OBJ group
name used for a feature; by default a function that numbers the
featuresfeatureMaterial
: a function f(feature, callback)
that returns the name
of the material for a feature; if undefined, the material is
not changed for this feature; see mtllib
option belowcoordToPoint
a function f(coordinate)
that returns the
OBJ vertex point (X and Z) for a GeoJSON coordinate, needed to
convert from GeoJSON's WGS84 coordinates to a cartesian coordinate;
see the findLocalProj
method belowmtllib
a string or array of paths that will be added as material
libraries to the resulting OBJFAQs
Convert GeoJSON into Wavefront OBJ format
The npm package geojson2obj receives a total of 1 weekly downloads. As such, geojson2obj popularity was classified as not popular.
We found that geojson2obj 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.