ateucher / rmapshaper

An R wrapper for the mapshaper javascript library
http://andyteucher.ca/rmapshaper/
Other
200 stars 13 forks source link

ms_simplify fails on CentOs redhat - unexpected token . #165

Closed B-Nilson closed 1 year ago

B-Nilson commented 1 year ago

I use ms_simplify(poly, weighting = 1, keep_shapes=T) to simplify polygons read in by rgdal::readOGR. On my windows machine this works fine, but on our web server (centos redhat server) I get an error that seems to be related to parsing the "mapshaper/mapshaper-browserify.min.js" file.

SyntaxError: Unexpected token ."

image

Here is the output of version for our linux server: image

Happy to add anymore information as necessary

ateucher commented 1 year ago

This is a duplicate of #157 - I hope you found a solution there @B-Nilson!