AliFlux / VectorTileRenderer

A comprehensive Vector Map Tile Renderer for .Net/C#
MIT License
187 stars 52 forks source link

loading vector tiles #15

Closed Kayumiy closed 4 years ago

Kayumiy commented 4 years ago

There are 3 kinds of files:

.dbf .shp .shx

Is It possible to load this data files by using your project? I have seen these files: .pbf, .mbtiles,

But I did not seen

.dbf .shp .shx

files in your project.

Thank You

AliFlux commented 4 years ago

Hi.

pbf and mbtiles are processed vector tiles, while shp, kml, geojson, etc are raw vector data. To show shapefile into your project, use a map control that can show those shapefiles (such as SharpMap).

If your raw vector data files are too big and dense to show directly, you can use tippecanoe to convert that into processed vector tiles, and then show them on your client. But it's a bit of a difficult thing to do, so i'd recommend the first method

Kayumiy commented 4 years ago

There are 3 projects in this repository:

  1. GMap>demo.WinForms
  2. Mapsui.Demo.WPF
  3. Static.Demo.WPF

When I run these projects, all of them shows same UI result even though they are different UI.

image

I have my own vector tiles should be load in this project. I don't know how to load my map data instead of yours. Can you guide me please?

charlenni commented 4 years ago

I assume, that you misunderstand what VectorTileRenderer does. It isn't a mapping library. It converts vector map data into raster tiles. This tiles than could be displayed with GMap or Mapsui. If you want to display your own data on a map, you should look into GMap or Mapsui.

Kayumiy commented 4 years ago

image

I tried to use gMap but it shows .gmdb file. I need library which can load shapefile (.shp, .shx, .dbf) If you don't mind, can you guide me in more specific way (in detail guideline).

Thank You

charlenni commented 4 years ago

It seems, that Mapsui could handle SHP files. See the shapefile sample.