GithubHelp home page GithubHelp logo

Comments (12)

mbloch avatar mbloch commented on June 10, 2024

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.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

Just importing a GeoJSON as I always have before.
Select_Tax Parcels (2).zip

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

image

from mapshaper.

mbloch avatar mbloch commented on June 10, 2024

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.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

My bad on the zip file.... I could not load the GeoJSON as this platform says that is an invalid file format.

image

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

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.

image

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

Select_Tax Parcels (1).json

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

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.

mbloch avatar mbloch commented on June 10, 2024

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:
image

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:

image

After this, your file is properly georeferenced, and you can export it as a Shapefile.

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

That worked, sort of. Now it says,
image

from mapshaper.

mbloch avatar mbloch commented on June 10, 2024

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.

image

from mapshaper.

MapUser2024 avatar MapUser2024 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.