Comments (3)
this is because JavaScript only has double precise floating points for numbers not true decimals so it can't represent all decimal fractions perfectly, you can read more here https://0.30000000000000004.com/
from shapefile-js.
I exported the shapefile to geojson using mapshaper and shapefile js. I got the correct coordinates.
I think, it can be handled here also.
from shapefile-js.
from shapefile-js.
Related Issues (20)
- Projected small demo doesn't work: Invalid URL HOT 1
- coordinates must be finite numbers HOT 4
- Problem with instanceof check HOT 3
- It removes metadata as name and id from shapefile
- global is undefined HOT 1
- British National Grid prj - I don't know that shp type HOT 6
- Can't read the data of 'the loaded zip file
- after npm install, how to import shp API? HOT 1
- Still do not support Projected coordinate system? HOT 2
- Opening shp produces wrong coordinates for "EPSG:2039" - Israel 1993 / Israeli TM Grid
- UI Issue
- Can't parse shapefile zip
- Error: nodebuffer is not supported by this platform HOT 5
- Vulnerability with jszip before 3.8.0 HOT 1
- nodebuffer is not supported by this platform HOT 2
- Coordinates not converted to ESPG:4326
- Error using in Vue3 HOT 3
- TypeError: Right-hand side of 'instanceof' is not an object HOT 3
- big number double error
- RangeError: Trying to access beyond buffer length HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapefile-js.