Power BI maps: something in between ArcGIS Maps and Shape Maps - powerbi

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

Related

Shapefile has multiple "maps" in R

I am fairly new to using shapefiles in R.
I downloaded a shapefile of Africa and imported it into R.
africa<-st_read(paste0(shape_file_directory, "africa_map/afr_g2014_2013_0.shp"))
I then wanted to check out how the shapefile looks.
plot(africa)
Somehow the shapefiles includes multiple maps of Africa?:
shapefile maps
I just want a simple outline of Africa and its countries.
Sorry if this is a trivial question and let me know if you need any more info.
Thanks.
By default plot.sf will create one plot for each attribute (non-geometry column) in a spatial data frame. You can choose a single attribute to plot or show just the geometry by changing the data you pass to plot. See this vignette for details:
https://r-spatial.github.io/sf/articles/sf5.html

How to visualize vtk data set with only point data

I have a vtk dataset with only point data but no cell data. I would like to visualize the dataset as point cloud. When I read the dataset as polyData it wouldn’t show anything on the screen. One work around I did was first writing the dataset as .xyz files, then read from the .xyz files and visualize. Another way I came up with is inserting the points as vertices manually.
Are there any neater ways to achieve this goal?
Thank you very much!
You may check out the vtkVertexGlyphFilter class:
https://vtk.org/doc/nightly/html/classvtkVertexGlyphFilter.html

Power BI. Using custom map as base map

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.

Using shapefile polygons in Spotfire to select points

I have a map in Spotfire with several different polygons overlaying it. These polygons are all stored in a shapefile and loaded on the map as a feature layer. Also on the map are several xy points with data associated to them. I would like to be able to select a polygon and in turn, that polygon select all the xy points inside of it.
Thanks,
-Andrew Pruet

how to query the database to return all zip codes with a given distance (ie 5 miles) from a given zip code using geopy

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 :).