![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
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.
reproject-bbox
Advanced tools
Reproject a Bounding Box
npm install reproject-bbox
import reprojectBoundingBox from "reproject-bbox";
const bbox = reprojectBoundingBox({
bbox: [ -122.51, 40.97, -122.34, 41.11 ],
// spatial reference system of input bounding box
from: 4326,
// convert bounding box to this spatial reference system
to: 3857
});
// bbox is [-13637750.817083945, 5007917.677222896, -13618826.503649088, 5028580.202823918]
You can increase the accuracy of your reprojected bounding box by increasing the point density. Density is the number of points that you would like to add to each side of the bounding box. If you pass in an array of two numbers, you can control how many points to add along the x and y-axis.
import reprojectBoundingBox from "reproject-bbox";
const bbox = [ -2316545, -1971615, 1015455, 1512385 ];
reprojectBoundingBox({
bbox,
density: 100, // add 100 points to each side of the box before reprojecting
from: 6623,
to: 4326
});
reprojectBoundingBox({
bbox,
// add 11 points along the x-axis (11 to top side and 11 to bottom side)
// and 99 points along the y-axis (99 to left side and 99 to right side)
density: [11, 99],
from: 6623,
to: 4326
});
This library depends on proj4-fully-loaded. If proj4-fully-loaded isn't found (perhaps because you used null-loader, then reproject-bbox will attempt to look for a valid proj4 at window.proj4.
If you are looking for a lighter library without as many dependencies, check out bbox-fns.
FAQs
Reproject a Bounding Box
The npm package reproject-bbox receives a total of 4,203 weekly downloads. As such, reproject-bbox popularity was classified as popular.
We found that reproject-bbox 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.