![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
coordinate transforming of various chinese encrypted coordinate systems such as BAIDU, GCJ02 etc.
Coordinate or GeoJSON trasnforming from WGS84 to various encrypted Chinese coordinate systems such as BD09LL, GCJ02 and vice versa.
convertor.transform(source, fromCRS, toCRS);
npm install chncrs
<script src="chncrs.js"></script>
<script type="text/javascript">
var c = maptalks.CRSTransform.transform([114.68837663801743, 33.63312016454496], 'GCJ02', 'BD09LL');
</script>
var convertor = require('chncrs');
//convert coordinates from gcj02 to bd09ll
var c = convertor.transform([114.68837663801743, 33.63312016454496], 'GCJ02', 'BD09LL');
//convert a geoJSON object from gcj02 to bd09ll
//can also be other geometry type, a Feature, even a FeatureCollection
var geo = { "type": "Point", "coordinates": [100.0, 0.0] };
var geo2 = convertor.transform(geo, 'GCJ02', 'BD09LL');
//a geoJSON array
var geos = [{ "type": "Point", "coordinates": [100.0, 0.0] } ,
{ "type": "Point", "coordinates": [101.0, 1.0] }];
var geos2 = convertor.transform(geo, 'GCJ02', 'BD09LL');
//a Feature
var feature = { "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"prop0": "value0"}
};
var feature2 = convertor.transform(geo, 'GCJ02', 'BD09LL');
//a FeatureCollection
var featureCollection = {
"type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"prop0": "value0"}
},
{ "type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]
]
}
]
};
var featureCollection2 = convertor.transform(geo, 'GCJ02', 'BD09LL');
FAQs
coordinate transforming of various chinese encrypted coordinate systems such as BAIDU, GCJ02 etc.
The npm package chncrs receives a total of 0 weekly downloads. As such, chncrs popularity was classified as not popular.
We found that chncrs 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.