TinyTile.Core
0.0.1
dotnet add package TinyTile.Core --version 0.0.1
NuGet\Install-Package TinyTile.Core -Version 0.0.1
<PackageReference Include="TinyTile.Core" Version="0.0.1" />
paket add TinyTile.Core --version 0.0.1
#r "nuget: TinyTile.Core, 0.0.1"
// Install TinyTile.Core as a Cake Addin
#addin nuget:?package=TinyTile.Core&version=0.0.1
// Install TinyTile.Core as a Cake Tool
#tool nuget:?package=TinyTile.Core&version=0.0.1
TinyTile
Library for implementing or integrating tile services(TMS WMTS XYZ) in .NET application.
How to use
Intergrate xyz tile services to Asp.Net Core
Suppose Linq2db is the ORM.
[Table("points_of_interest", Schema = "public")]
public class Poi
{
[Column("id"), PrimaryKey, NotNull]
public int Id { get; set; }
[Column("name")]
public string Name { get; set; }
[Column("kind")]
public string Kind { get; set; }
[Column("geom")]
public Point Geometry { get; set; }
}
var source = new MbTile(path);
var layerMb = new Laye("points_mbtile_3857", source, gridSet:GridSet.Create(SRS.Epsg3857, schema:YAxisSchema.Xyz));
var pgSource = SqlSource.FromTable<TableAttribute,ColumnAttribute,Poi>(connstring,SRS.Epsg4326,t => t.Name,c => c.Name,new string[]{"0,4,0.2","4,8,0.4","8,16,0.5","16,21,1.0"});
var layerPg = new Layer("points_pg_4326",pgSource,gridSet:GridSet.Create(SRS.Epsg3857,schema:YAxisSchema.Xyz));
services
// AddMvc()
// AddControllersWithViews()
.AddControllers()
.AddXyz(services,xyzBuilder => {
xyzBuilder.Prefix = "geo/tiles/xyz";
xyzBuilder.AddLayer(layerMb);
xyzBuilder.AddLayer(layerPg);
});
See DemoApp for details.
Demo App
You should firstly create and init postgis database.
cd DemoApp
dotnet run
Visit mbtile xyz service,http://localhost:8088/mbtiles@3857@xyz.html Visit PostGIS xyz service, http://localhost:8088/postgis@4490@xyz.html
TO DO
Support other vector format tile,eg geojson,topojson...
Support various mbtiles(1.3 and epsg3857 only now)
Support render vector data source to raster tile(png,jpeg...) with styles(mapbox style,sld..)
Support WMTS
Support TMS
Support raster data source
Support various vector data source,eg PostGIS,Shapefile,GeoJson,Tile files,etc
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Data.Sqlite.Core (>= 5.0.4)
- NetTopologySuite (>= 2.2.0)
- Npgsql (>= 6.0.0-preview3)
- SQLitePCLRaw.bundle_green (>= 2.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TinyTile.Core:
Package | Downloads |
---|---|
TinyTile.AspNetCore
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.1 | 376 | 7/2/2021 |