Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
citygml-to-obj
Advanced tools
Takes a CityGML file and creates an OBJ file for each building
bash:
npm install citygml-to-obj
javascript:
var citygml2obj = require("citygml-to-obj");
var options = {
// Path to CityGML input file
citygmlPath: "/path/to/some.gml",
// Path to OBJ output directory
objPath: "/path/for/obj/output/",
// Used to project CityGML coords to WGS84
// This projection is an example for the Berlin CityGML dataset
proj4def: "+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
// Overwrite existing OBJ files if they already exist
overwrite: false,
// API key for the Mapzen Valhalla elevation endpoint
valhallaKey: "your_api_key"
};
citygml2obj(options, function(err) {
if (err) {
console.error(err);
}
console.log("Finished converting CityGML");
});
# Generated using the polygons-to-obj package
# Origin: (393408.81326613, 35.3899993896484, 5820431.70758075)
v 0 0 0
v 0.0007680089911445975 35.8840621565621 -0.0011349096894264221
v -1.3537642270093784 35.8840621565621 1.3126991000026464
v -1.3545322350109927 0 1.3138340096920729
# Etc...
f 5 3 4
f 3 5 2
f 10 8 9
f 8 10 7
# Etc...
FAQs
Takes a CityGML file and creates an OBJ file for each building
The npm package citygml-to-obj receives a total of 3 weekly downloads. As such, citygml-to-obj popularity was classified as not popular.
We found that citygml-to-obj 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.