mapshaper icon indicating copy to clipboard operation
mapshaper copied to clipboard

Mapshaper-gui error

Open thundersoft90 opened this issue 8 months ago • 3 comments

Hi,

Although I can use mapshaper console tool to convert .shp files to geojson. I couldn't open mapshaper-gui so that I recieved the error as follows:

Would you help me to open this interface locally.

Thanks in Advance,

Image

thundersoft90 avatar Apr 25 '25 07:04 thundersoft90

I'm not sure how to interpret this error, but I have a hunch what the problem might be. mapshaper-gui is for running the mapshaper GUI on your own computer, for personal use. It will only open the GUI on the http://localhost URL.

It looks like you might be trying to usemapshaper-gui to display the GUI from a Docker image. The way to serve the mapshaper GUI publicly is to copy the files in the mapshaper/www directory into a webserver's web root directory or a subdirectory of the web root. Mapshaper's GUI is a static web page -- just a collection of files with no backend script. You don't need mapshaper-gui to run it. I hope this addresses the issue here.

mbloch avatar Apr 25 '25 10:04 mbloch

Thanks a lot. I will try and inform you whether it is OK.

PS: By the way which webserver Do You prefer ?

thundersoft90 avatar Apr 30 '25 12:04 thundersoft90

I don't think the web server matters much. The public mapshaper.org site uses GitHub Pages. DeepSeek tells me that GitHub Pages uses Nginx and the Fastly CDN.

mbloch avatar Apr 30 '25 15:04 mbloch