Forum Discussion
Corrupted map visual using a shp file converted to a topojson using mapshaper
- 7 years ago
Make sure that you export from mapshaper in 'wgs84' (co-ordinate system). It's straightforward to do -> In the console in mapshaper type proj wgs84
then export as topojson
- Anonymous7 years ago
Hi HotChilli,
Did it, worked a treat, I dont suppose you would be willing to explain in a short paragraph and laymans terms why the extra step is needed? Does it allow certain crucial data to be added to the topojson when it is written for export? If so what is that data and why is it important. Alternatively if there is a simple explanation somewhere on the web then just include the link :)
Many thanks have marked your post as the solution
Make sure that you export from mapshaper in 'wgs84' (co-ordinate system). It's straightforward to do -> In the console in mapshaper type proj wgs84
then export as topojson
Hi HotChilli,
Did it, worked a treat, I dont suppose you would be willing to explain in a short paragraph and laymans terms why the extra step is needed? Does it allow certain crucial data to be added to the topojson when it is written for export? If so what is that data and why is it important. Alternatively if there is a simple explanation somewhere on the web then just include the link :)
Many thanks have marked your post as the solution
- HotChilli7 years ago
Community Champion
It's all about co-ordinate reference systems. The map you originally loaded into powerbi wasn't in a reference system that it could display as you wanted. It processed the file and displayed it (after all it was a topojson file with numbers) but not what you wanted.
WGS84 is "Earth-centered, Earth-fixed terrestrial reference system and geodetic datum". It's a standard that allows gps data and a 3d world to be mapped.
All you did in mapshaper was take a file that was in one reference system and convert it to another. And powerbi liked the wgs84 one.
- Anonymous5 years agoNot applicable
HI! Jumping on this as I'm trying to work it out too - I had the same issue as above, followed the same instructions and inputted WGS84 into the console on mapshaper, but its pulling up an error saying 'unknown projection description'. Is there a way around this?
I've just imported a administrative boundary shapefile; should it be in a different format? Thank you!