Hi, I'm currently using the .NET Maps SDK.
Is there any way to use APIs described in the ArcGIS Enterprise SDK—such as ISpatialReference —within the .NET Maps SDK?
Hi,
No, they're two different SDKs designed/intended/licensed to be used in different ways: the Enterprise SDK is server-side whereas the .NET Maps SDK is client-side. However, the .NET Maps SDK has quite extensive geometry and spatial reference functionality - can you share more info about what you're trying to achieve and we can advise on whether it's possible / best practice?
Thanks for the reply.
I'm currently refactoring some legacy code originally developed with ArcGIS Engine.
The code is a CLI tool that reads a custom text file with a company-specific format and converts it into a Shapefile.
The reason I asked is that the old code uses APIs like ISpatialReference and IPolygon from "ESRI.ArcGIS.Geometry", which I couldn't find in the .NET Maps SDK?
Thae Native Maps SDK is a different SDK built from the ground up, so you'll find that APIs are different and located in other namespaces, and since it isn't COM you'll find much less use of interfaces, and more use of concrete classes. Some tasks might also be accomplished in a different way. You'll find the geometry related classes in the `Esri.ArcGISRuntime.Geometry` namespace.
Thanks for the reply.
Does the .NET Maps SDK currently support writing shapefiles?
You mentioned about 6 years ago in [this post](https://community.esri.com/t5/net-maps-sdk-questions/create-a-shapefile/td-p/213329) that editing an existing shapefile was possible. Is that still the case?
I couldn't find any editing methods in ShapefileFeatureTable.
Hi,
You can edit existing Shapefiles, but the API doesn't support creating new Shapefiles from scratch (we're gradually migrating away from Shapefiles in favour of mobile geodatabases which are smaller, faster, smarter cross-platform SQLite-based databases).
Shapefiles derive from Class FeatureTable - you'll find the editing methods there.
To create mobile geodatabases from scratch see Create mobile geodatabase | ArcGIS Maps SDK for .NET | Esri Developer.
Thanks
You can find the doc for the equivalent SpatialReference class here: https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geomet...