Currently, I am trying to find a way to load a custom map as a base map in Power BI. As I want to be able to load the map even when I have no connection to the internet, I have considered using my company's WMS servers, however that does not seem to be possible in Power BI right now.
Thus, I'm trying to convert this file https://data.gov.sg/dataset/master-plan-2014-planning-area-boundary-web to the TopoJSON format so I am able to use it as a shape map in Power BI.
After using the Mapshaper tool, the file appears fine on Mapshaper:
However, in Power BI, it appears like this:
Am I doing something wrong or do is there extra steps I need to do? Or is there any other way to load my own custom map in Power BI as a base map?
This is similar to the issues that I faced when trying to create a custom shape map. The 'picasso-like' rendering of the map was the same. It turned out to be the projection of the new map was not one of the projections the Power BI likes. If you can change the projection of your map, it should work. In mapshaper, load the map, then select console, then enter PROJ WGS84, and it should work. If your starting projection is one that mapshaper doesn't recognize, you have to reproject the original map into something that mapshaper knows. In my case it didn't recognize the EPSG:3005 projection initially, but when I re-projected in EPSG:4326, then used mapshaper to convert to topojson, I was able to use my custom shape map.
Related
We got several OLAP Cubes in PowerBI Datasets.
One of the cubes has a dimension "dim_location" which contains columns for latitude and longitude. But each dataset has 2 pairs of values, let's call them start_latitude, start_longitude and end_latitude, end_longitude.
I got a fact table connected to that dim_location and want to show some of the measures on a map.
It works perfectly fine with both the map visual and the ArcGIS visual, if I use either the end or the start coordinates. I can show the values as circles with changing size or changing color dependent on the value of a measure. So far so good.
But what I instead want to accomplish is to show a line on the map for each dataset. Each line shall go from start point to end point, color dependent on measure value.
Is there a way to offer the coordinates in the cube dimension in some string syntax that will create a shape, like a polygon with only 2 points, which would result in a line, which can then be shown on the map?
As stated before everything works fine on the map and the ArcGIS visual with one point (lat/lon) per dataset. Tried to find help online for some polygon syntax but came up empty.
I'm trying to create a colored heat map on some polygons (originally a .kmz file that I converted to TopoJSON - .json with mapshaper.org) and overlay on them a few coordinate points.
I tried first with ArcGis: I used Longitude and Latitude to visualize the location of certain objects and then I overlapped a layer I found online on ArcGis (that's the same I would like to use). The problem is that I cannot color the polygons in this layer and it seems not possible (https://community.powerbi.com/t5/Desktop/ArcGIS-geographic-ID-mapped-onto-a-polygon-layer/m-p/339432). I cannot even upload the data on ArcGis because the data are private company data.
Then I tried with Shape Map: I uploaded the TopoJson and colored them with the data I had associated with these zones, but I cannot find a way to display the objects with coordinates on top of them.
Do you have any suggestion on what can I do? or is it an impossible task at the moment?
I can show here the results (the dots with the coordinates are in the center of the image on the left):
Here there are some mock up data and the PBI file I created: https://drive.google.com/open?id=1rloRkCdi0-M-4ljPdOU9cxg_KpcU5GnT
Pay attention to data format: I converted some of them during the import.
Thanks, any help is appreciated.
It looks like this is not possible to be achieved in Power BI at the moment:
https://community.powerbi.com/t5/Desktop/Shape-Map-ArcGIS-Map-can-I-combine-them/m-p/838523#M402722
I'm trying to build my report on Power BI, on my tab there are 3 matrix. When I filter by one of the fields, all my matrix reduce their size and there are some big white holes.
Is there a feature or tool that allows me to place one matrix under another each time they are resized, to avoid those huge white holes?
I searched for the PowerBI documentation but did not find anything to solve my problem.
I have 2 maps in PowerBi, one shows a job count and the other a material spend. If I zoom one map to look at a problem area I want the other maps to zoom to that point too. I cant find any mention of how this could be done but wondering if anyone knows?
PowerBi Map
The best you can do would be to add a Slicer based on "area", which would apply to both maps.
Hi frens I am using geopy to calculate the latitude and longitude. Now I want to get the list of areas given distance from a zipcode.How to get that?
Well, as I can see, geopy doesn't have any built-in capability to get a list of areas around some coordinates.
But you can use a workaround. Take your geocode and calculate coordinates (latitue and longitude). Then imagine a grid on the map with a cell size equal to area of the smallest one you need to find around your location.
Use geopy to get an area name belonging to the each cell corner of your grid. Is that ok for you? It will get you some kind of approximation because a grid is not a circle and you may miss some small areas. But I think in most cases the solution will work fine.
It is much easier to locate zipcodes inside a rectangle than in a circle so I would recommend that you approximate your problem by looking for zipcodes inside a given rectangle.
Here are answers to the question of how to get list of zipcodes in given polygone: Find zipcodes inside polygon shape using google maps api
Summary
You need geometry for each zipcode. Once you have that you need to be able to query it using database that supports geoquery. One such database is Google's Fusion Table and there is already a geometry data table for zipcodes available here: https://www.google.com/fusiontables/DataSource?docid=1AxB511DayCdtmyBuYOIPHIe_WM9iG87Q3jKh6EQ#rows:id=1
Here's the sample query for Fusion Table data.
Another approach is server side code using PHP and CSV data. Here's live demo: http://daim.snm.ku.dk/demo/zip/. The page also has download for code.
If you use any of above technique please make sure to upvote answers of original authors :).