npgsql-geo-query Migrate to
giserver
query geo-data : mvt
geobuf
geojson
from postgresql(with postgis)
you can use GeoQuery
class ,also interface IGeoQuery
,last AddGeoQuery
in IServiceCollection Extension
dotnet add package Npgisql.GeoQuery
builder.Services.AddGeoQuery();
app.UseGeoQuery(app.Configuration.GetConnectionString("Template"), options =>
{
options.Prefix = "api/geo";
options.IsConnectionStringTemplate = false;
options.GeoJsonRouteHandlerOption.Allowed = false;
});