Comments (12)
I'll need some more info to help me troubleshoot this issue. I just tested GeoJSON to Shapefile conversion in the web UI and my simple test worked correctly.
I have a few questions. Can you send me the GeoJSON file that is causing the problem? Are you doing anything other than importing the GeoJSON and then using the Export menu to export as Shapefile? How does the basemap feature seem to be involved? Thanks!
from mapshaper.
Just importing a GeoJSON as I always have before.
Select_Tax Parcels (2).zip
from mapshaper.
from mapshaper.
The file I downloaded from the link you pasted (https://github.com/mbloch/mapshaper/files/15255958/Select_Tax.Parcels.2.zip) isn't a valid .zip file, it appears to have size 0. Can you check your data file and try uploading again?
I see you're on Windows -- I develop mapshaper on a Mac, but I can use Windows in an emulator. I tested mapshaper's GeoJSON importing and Shapefile exporting on Windows using both Edge and Chrome browsers, it worked correctly with my sample file.
from mapshaper.
My bad on the zip file.... I could not load the GeoJSON as this platform says that is an invalid file format.
from mapshaper.
Tried changing the name to *.JSON. Still the same result. I will upload that file with the changed extension to see if that makes any difference. It may be the file on my end. Not sure.
from mapshaper.
from mapshaper.
Thanks for your help. It would not surprise me if something is going on with our GIS database. But it worked fine even just a couple of months ago.
from mapshaper.
Thanks for posting the data file, now I can see what's happening. If I drop the file into mapshaper and right-click, I get the map coordinates at the mouse position:
The size of the coordinates tells me that the GeoJSON file contains projected coordinates, not latitude-longitude coordinates. The GeoJSON standard committee dropped support for projected coordinates in 2016, and Mapshaper does not fully support old-style GeoJSON with projected coordinates, but there is a workaround that will let you use this file.
Looking at the GeoJSON code, I see that the file is using the EPSG:2927 CRS (one of the state plane coordinate systems). After loading the file into mapshaper, you can open the console and type proj init=EPSG:2927
, like this:
After this, your file is properly georeferenced, and you can export it as a Shapefile.
from mapshaper.
That worked, sort of. Now it says,
from mapshaper.
I can't tell why it is erroring -- your sample file saved correctly for me. I exported to Shapefile both from the Export menu and using the console. Pasted below is a screenshot of the console, showing the commands that I ran. If you want me look into the reason for "Save failed...", you can open the browser's developer console, there will be a more detailed error message there that you could screenshot and send to me.
from mapshaper.
This is resolved. I normally use Opera. I had tried the to get this to work in Edge before as well, but with the command for the console and using Edge, that resolved the problem. Thanks again for your time and attention to detail.
from mapshaper.
Related Issues (20)
- light blue paths and performance HOT 3
- Memory usage almost 4x size of input geojson file HOT 4
- Filter lines still create polygons HOT 5
- When hovering mouse over feature and scrolling, fill color freaks out HOT 1
- Point layers and data layers do not show up HOT 2
- Cannot convert between WGS84 and Webmercator after converting and saving data as EPSG:3857. HOT 3
- Error on simplifying GeoJSON file HOT 11
- Javascript error related to polygon editing causes GUI to crash HOT 1
- There is an issue when you import a shapefile HOT 2
- Clip command removes Features visually but not from exported file. HOT 4
- Sticky hand HOT 1
- snap effects multiples layers HOT 1
- geojson from points HOT 2
- Export failed Export failed for an unknown reason HOT 3
- topojson files in power bi HOT 2
- Problem in drawing polygon and importing snapshot file HOT 4
- Bug: can't open snapshot file I created on mapshaper.org HOT 3
- Bug: copy as GeoJSON doesn't copy GeoJSON HOT 1
- filter-slivers remove-empty bug
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 mapshaper.