[Qgis-user] How can I export Vector & Raster layers together to import into mapshaper

Ben Hur Pintor bnhr.xyz at gmail.com
Thu Aug 12 09:44:28 PDT 2021


Hi Kris,

I see. As I mentioned, you can't save the XYZ tile layer as a local file
(either as a raster or vector) as it is served as tiles (e.g. images)
served from online.

One solution is to load the XYZ tile layer as a basemap layer in PowerBI.
If this is not available in PowerBI and you need it to be TopoJSON, I'm not
sure it's possible to convert a raster to a TopoJSON while still
maintaining the features shown by the raster image. TopoJSON being
primarily a vector file format and not meant to serve tiles/images. The way
that I know that you can serve vectors as tiles is via Vector Tiles like
MVT (Mapbox Vector Tiles).

If you can load raster data in PowerBI (e.g. georeferenced PNG or TIFF
file), another solution would be for you to create a printable map of the
part you want to save as a raster (e.g. PNG or PDF) and ensure that this
output map is georeferenced. You should then be able to load the raster in
PowerBI if that's a capability PowerBI has.

Unfortunately, if PowerBI can only load TopoJSONs, I don't think you'll be
able to load the OSM tile layer there.

As mentioned by Richard, you can use other basemap providers (in this case
Mapbox) if PowerBI supports them.

I hope this helps,

All the best,
Ben Hur
---
*Ben Hur S. Pintor | BNHR <https://bnhr.xyz>*
bnhr.xyz
hi at bnhr.xyz


*BNHR*
openness. data. geospatial.


On Fri, Aug 13, 2021 at 12:42 AM Richard McDonnell <richard.mcdonnell at opw.ie>
wrote:

> Have a look at this video, it seems to allow you to utilise MapBox as a
> background Map
>
>
>
> *https://www.youtube.com/watch?v=N33d7fCVsZw
> <https://www.youtube.com/watch?v=N33d7fCVsZw>*
>
>
>
> *Regards,*
>
>
> * Richard.*
>
>
>
>
>
> ——
> Richard McDonnell MSc GIS, FME Certified Professional
> *FRM Data Management*
>
> ——
> Oifig na nOibreacha Poiblí
> Office of Public Works
>
> Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
> Jonathan Swift Street, Trim, Co Meath, C15 NX36
> ——
> M +353 87 688 5964 T +353 46 942 2409
> https://gov.ie/opw
>
> ——
> To send me files larger than 30MB, please use the link below
> https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie
>
> Email Disclaimer:
> https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
>
> *From:* Kris Lagocki <kris.lagocki at gmail.com>
> *Sent:* 12 August 2021 14:40
> *To:* Richard McDonnell <richard.mcdonnell at opw.ie>
> *Cc:* qgis-user at lists.osgeo.org
> *Subject:* Re: [Qgis-user] How can I export Vector & Raster layers
> together to import into mapshaper
>
>
>
> My issue seems to be with the raster layer, can't seem to figure out how
> to have it export together with the vector layer.
>
>
>
> On Thu, Aug 12, 2021 at 5:27 AM Richard McDonnell <
> richard.mcdonnell at opw.ie> wrote:
>
> Hi,
>
> There is a TopoJSON Writer Plugin available for QGIS, you might give that
> a try. It should write the vector dataset out as TopoKSON for you.
>
> Regards,
>
>
> Richard
>
>
>
>
> * ——*
> *Richard McDonnell MSc GIS, FME Certified Professional*
> *FRM Data Management*
>
> ——
> *Oifig na nOibreacha Poiblí*
> Office of Public Works
>
> *Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36 *
> Jonathan Swift Street, Trim, Co Meath, C15 NX36
> ——
> M +353 87 688 5964 T +353 46 942 2409
> https://gov.ie/opw
>
> ——
> To send me files larger than 30MB, please use the link below
> https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie
>
> Email Disclaimer:
> https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
>
> *From:* Qgis-user <qgis-user-bounces at lists.osgeo.org> *On Behalf Of *Kris
> Lagocki
> *Sent:* 11 August 2021 14:32
> *To:* qgis-user at lists.osgeo.org
> *Subject:* [Qgis-user] How can I export Vector & Raster layers together
> to import into mapshaper
>
>
>
> Hi - I created a shape file using QGIS with a US Postal Code shape file
> that I found on the Census website and joined it with a data file listing
> the Postal Codes and which Sales Territory they belong to.  I added in a
> raster layer OpenStreetMap.  I'd like to export both layers together and
> import them into mapshaper so that I can export as Topojson.  It has to be
> in this format to use within Power BI.  Has anyone accomplished this?  Any
> help is appreciated.  Thanks.
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210813/0d51aa78/attachment-0001.html>


More information about the Qgis-user mailing list