developmentseed / dirty-reprojectors

Make quick and dirty projections to use in your web maps instead of Web Mercator
https://www.developmentseed.org/dirty-reprojectors-app/
MIT License
120 stars 10 forks source link

Blank file as output #28

Open giacomomigliore opened 3 years ago

giacomomigliore commented 3 years ago

Hi,

I am receiving a blank file as an output. The solution to this issue could be quite trivial, as I am new to json and javascript.

I use as input a file exported from mapshapre in GeoJSON format (I copy paste the first 2 lines below, cutting out the coordinates) and the output is a file.geojson that is blank.

The command I write is:

cat cb_2019_us.json | dirty-reproject --forward albersUsa > albersusa.geojson

The code execution seems to enter into a loop, as no new line is shown in the Powershell.

immagine

Any hint you can give me on the solution would be very much appreciated.

PS: I am following the guide Mapping the US elections: Guide to Albers USA projection in Studio

{"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-80.176276,25.525053999999997],[...],[-85.002499,31.000681999999998]]]]},"properties":{"state_fips":"12","state_abbrev":"FL","state_name":"Florida","type":"state"}},

kitsoho commented 3 years ago

I'm having the same issue. I can see that dirty-reproject is working (list of projections below), however when I run a similar example as the previous issue nothing happens. Any ideas on a fix? Thanks!

image

chriszrc commented 3 years ago

Given that you're both reporting problems from windows, and I just used this successfully from a mac, I suspect it's a windows issue. Perhaps try running it on an ubuntu linux windows subsystem shell-