We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Evolving JSTS to a modern port of JTS using AST transformation

Formal Metadata

Title
Evolving JSTS to a modern port of JTS using AST transformation
Title of Series
Part Number
40
Number of Parts
193
Author
License
CC Attribution 3.0 Germany:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
JTS is a well known Java library of spatial predicates and functions for processing geometry. JSTS has since 2011 provided a port of JTS to JavaScript that provides that proven library for use in browsers and other popular JavaScript runtimes. It brings the functionality of JTS to the browser without having to make a roundtrip to a server which enables advanced spatial operations to web applications even in offline conditions and is, for example, used by MapBox as a significant part of turf.js. The initial effort to create JSTS was a long, arduous and manual process and has since lagged behind JTS missing crucial new bug fixes and features. Resorting to additional manual porting effort was not in anyone's interest, it seems. Instead there was dreams of an automated translation from Java to JavaScript. In this talk I will explain how I managed to automatically translate JTS to create a new version of JSTS that supersedes the old manual port with a more complete, correct and up to date implementation.
Keywords