Forum Discussion
Shape map ends up a minature
Hi!
I am trying to import a Topojson-file covering the South part of Sweden (Skåne) with county codes.
Everything looks fine in mapshaper and the colour coding looks alright in Power BI but the map ends up like a minature map.
I have read a few treads on the subject or similar but can´t get it right.
Can anyone help? Either a working Topojson with the "kommunkod" of the 33 kommun in Skåne (4 digits, starting with 12) or helping me identify what I am doing wrong.
Best regards, Johan
Hi JJohan ,
According to my test, this issue may caused by your Topojson-file.
Please check it or replace it with another one.
Here is my Shape map(Since I couldn't find data for only the Skåne area, I used data for the whole of Sweden instead. )
Here is my sample:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- v-jianboli-msft
Community Support
Hi JJohan ,
According to my test, this issue may caused by your Topojson-file.
Please check it or replace it with another one.
Here is my Shape map(Since I couldn't find data for only the Skåne area, I used data for the whole of Sweden instead. )
Here is my sample:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- JJohanFrequent Visitor
Thank you! I used your topojson and it works. Do you know any way to investigate a topojson? I have tried different ways using using qgis and/or mapshaper to create a new one but with no success.
- v-jianboli-msft
Community Support
Hi JJohan ,
TopoJSON is an extension of GeoJSON that encodes topology. Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. This technique is similar to Matt Bloch’s MapShaper and the Arc/Info Export format, .e00.
TopoJSON eliminates redundancy, allowing related geometries to be stored efficiently in the same file. For example, the shared boundary between California and Nevada is represented only once, rather than being duplicated for both states. A single TopoJSON file can contain multiple feature collections without duplication, such as states and counties. Or, a TopoJSON file can efficiently represent both polygons (for fill) and boundaries (for stroke) as two feature collections that share the same arc mesh. See How To Infer Topology for a visual explanation of how TopoJSON works. See Command-Line Cartography for an introduction to TopoJSON and related tools. See TopoJSON Format Specification for the format specification.
To further reduce file size, TopoJSON can use quantized delta-encoding for integer coordinates. This is similar to rounding coordinate values (e.g., LilJSON), but with greater efficiency and control over loss of information. And like GeoJSON, TopoJSON files are easily modified in a text editor and amenable to gzip compression.
As a result, TopoJSON is substantially more compact than GeoJSON, frequently offering a reduction of 80% or more even without simplification. Yet encoding topology also has numerous useful applications for maps and visualization above! It allows topology-preserving shape simplification, which ensures that adjacent features remain connected after simplification; this applies even across feature collections, such as simultaneous consistent simplification of state and county boundaries. Topology can also be used for Dorling or hexagonal cartograms, as well as other techniques that need shared boundary information such as automatic map coloring.
Refer to: GitHub - topojson/topojson: An extension of GeoJSON that encodes topology! 🌐
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-jianboli-msft
Community Support
Hi JJohan ,
I can't reproduce your problem in my side, colud you please provide me with more details about your Topojson or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Besides here are some links about create Shape Map in Power BI, hope it helps you a little:
Creating Custom Shape map in power bi - YouTube
Use Shape maps in Power BI Desktop (Preview) - Power BI | Microsoft Docs
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- JJohanFrequent Visitor