Comments (2)
Hi, you are right. I'm working out of WGS84 range. Other turf functions are fine with it. I'll normalize our range into WGS84 before using the splitLineWithPoints as a workaround.
from turf.
Thanks for the detailed write up @kudlav. For the second example (which returns an incorrect result) I noticed the co-ordinates are outside what would typically be expected as valid geojson for Turf:
type: 'LineString',
coordinates: [[1414, 4224], [992, 3440], [1144, 2992], ...
[lng, lat] respectively would typically be -180 to +180, and -90 to +90 decimal degrees. Can you run through your use case in more depth if those are the values you need to use? What is the significance of the scaling?
from turf.
Related Issues (20)
- turf.centerOfMass for multiple polygons in Feature Collection HOT 2
- booleanIntersects false positive for self-intersecting lines HOT 2
- [Bug report]: ts declaration broken HOT 2
- Could not find a declaration file for module '@turf/turf'. HOT 3
- booleanContains doesn't get good result when detect an unusual polygon HOT 1
- Typescript typing error when import "@turf/turf" HOT 2
- Can coordinate system parameters be added to some conversion methods?
- Drawing a curved line from Point A to Point B HOT 1
- Could not find a declaration file for module '@turf/mask' HOT 3
- There was a loss of accuracy when using the turf.intersect function
- BooleanWithin does not work correctly with (Island polygon / Doughnut).
- Property 'booleanPointInPolygon' does not exist on type 'TurfStatic' HOT 1
- isobands generating countered some wrong results HOT 3
- Broken TS types HOT 4
- turf.intersect(geometry 1, geometry 2) gets stuck for endless time HOT 7
- Randomly generated polygons do not comply with the right-hand rule. HOT 1
- turf.convex does not wrap the polygons as expected
- How to change the outline of the masked area in a polygon? HOT 2
- Point Icons in TURF Sand-box does not have access token
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 turf.