mapshaper icon indicating copy to clipboard operation
mapshaper copied to clipboard

加载 geojson 文件失败 Failed to load geojson file

Open lengjiaxin opened this issue 2 years ago • 4 comments

image image

lengjiaxin avatar Jun 27 '22 03:06 lengjiaxin

Export_Output_Project1.zip geoJson file

lengjiaxin avatar Jun 27 '22 03:06 lengjiaxin

It looks like you are trying to use mapshaper in your own web application, is that right? In addition to mapshaper.js, you would also need to load modules.js (see https://mapshaper.org/modules.js). Flatbush is one of the modules contained in that file.

mbloch avatar Jun 27 '22 04:06 mbloch

Yes, I load the geojson file on the web page and ask how to reference modules js

thank you。

image

lengjiaxin avatar Jun 27 '22 04:06 lengjiaxin

If The SHP file uses a projection coordinate system. How can it be correctly parsed into geojson and rendered to a web page?

At present, my side tests The SHP file uses the longitude and latitude coordinate system and can be normally parsed and displayed on the page as geojson.

lengjiaxin avatar Jun 27 '22 04:06 lengjiaxin

Sorry I didn't reply sooner! I'm only supporting mapshaper as an end-user program, I don't have time to help developers with their projects.

mbloch avatar Aug 15 '22 15:08 mbloch