Skip to content

giserver/giserver-dotnet-libs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giserver 中文

Giserver provide Geo Apis base on http

  • marker storage
  • mvt geobuf geojson query with postgis
  • api swagger document

you can also use libs from nuget, make your geography dev quickly

Packages

Package Nuget Downloads
Giserver.GeoQuery Nuget Nuget
Giserver.Mark.EFCore Nuget Nuget
Giserver.NetTopologySuite.Swagger.NSwag Nuget Nuget
Giserver.NetTopologySuite.Swagger.Swashbuckle Nuget Nuget

Giserver.GeoQuery

use postgis query geo-format data

services.AddGeoQuery(options =>
{
    options.ConnectionString = configuration.GetConnectionString("geo_query")!;
});

app.UseGeoQuery(options =>
{
    options.Prefix = "api/geo";
    options.IsConnectionStringTemplate = false;
    options.GeoJsonRouteHandlerOption.Allowed = false;
});

Giserver.Mark.EFCore

services.AddGeoMarker(configuration.GetConnectionString("geo_marker")!);

app.UseGeoMarker(options =>
{
   
});

Giserver.NetTopologySuite.Swagger.NSwag

builder.Services.AddSwaggerDocument(settings =>
{
    settings.TypeMappers.AddGeometry(GeoSerializeType.Geojson);
});

Giserver.NetTopologySuite.Swagger.Swashbuckle

builder.Services.AddSwaggerGen(options =>
{
    options.AddGeometry(GeoSerializeType.Geojson);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages