This is a sample app and backend code for my Spatial Data with Entity Framework Core and .NET MAUI session.
The code demonstrates how to work with spatial data with EF Core and ASP.NET and how to use MAUI Map control.
The projects use the following libraries:
- NetTopologySuite
- NetTopologySuite.IO.GeoJSON
- Npgsql.EntityFrameworkCore.PostgreSQL && Npgsql.NetTopologySuite
- .NET MAUI Community Toolkit
- .NET Community Toolkit
- Refit
There are several steps required to run the project locally
The backend project uses PostgreSQL. Once you set up the PostgreSQL server, create a spatial database and restore data.. Next, run scripts.sql from the project. Finally, update the connection string in the project.
To use the Map control follow the Platform configuration steps from the official documentation
If you use a different port or want to run the app on a local device, you must update the service base url in MauiProgram.cs