dotnet / dotnet/EntityFramework.Docs

SRID Ignored during client operations - example code does not set projected SRID causing inverse projection to do nothing

Open
#3,297 1 comment 0 reactions 0 assignees View on GitHub
area-spatial
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

Hi,

Basically all in the title, but for clarity a description.

The `seattle` and `redmond` points are projected to **SRID 2855**.
However, the transformation does not update a geometry's **SRID**, leaving it as **4326**.
Trying to project **2855** back to **4326** doesn't do anything because the `CreateTransformation` method is receiving **4326** as argument for both parameters.

An updated sample that rectifies this minor issue might be helpful for any future user.

Thanks!

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: c2dcf82b-f177-e91b-96a5-67f2f57bd6c4
* Version Independent ID: 89c0803f-570f-07a6-6dc2-285678712c86
* Content: [Spatial Data - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/spatial#srid-ignored-during-client-operations)
* Content Source: [entity-framework/core/modeling/spatial.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/spatial.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @bricelam
* Microsoft Alias: **avickers**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.