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
Package | Nuget | Downloads |
---|---|---|
Giserver.GeoQuery | ||
Giserver.Mark.EFCore | ||
Giserver.NetTopologySuite.Swagger.NSwag | ||
Giserver.NetTopologySuite.Swagger.Swashbuckle |
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;
});
services.AddGeoMarker(configuration.GetConnectionString("geo_marker")!);
app.UseGeoMarker(options =>
{
});
builder.Services.AddSwaggerDocument(settings =>
{
settings.TypeMappers.AddGeometry(GeoSerializeType.Geojson);
});
builder.Services.AddSwaggerGen(options =>
{
options.AddGeometry(GeoSerializeType.Geojson);
});