Skip to content

Conversation

sharkAndshark
Copy link
Contributor

@sharkAndshark sharkAndshark commented Apr 26, 2021

st_project, a geography input/output method added.Call STProject(a,b,c) will take a geometry input and trigger type casting at PostGIS.

PostgreSQL will usually cast geometry/ geography as needed.

Behavior here:

geometry -> geography automatic
geography -> geometry explicit

SELECT ST_AsText(ST_Project('POINT(0 0)', 100000, radians(45.0))); POINT(0.635231029125537 0.639472334729198) SELECT ST_AsText(ST_Project('POINT(0 0)'::geography, 100000, radians(45.0))); POINT(0.635231029125537 0.639472334729198) 

Releated doc here:
npgsql spatial mapping
PostGIS geo data types

@sharkAndshark sharkAndshark changed the title Add STProject method with test [WIP] Add STProject method with test Apr 26, 2021
@sharkAndshark sharkAndshark changed the title [WIP] Add STProject method with test Add STProject method with test Apr 26, 2021
@apdevelop
Copy link
Owner

I've planned to start implementing geography support after completing most current tasks on geometry, XML comments cleanup first of all and releasing it as 0.1 version of Nuget package.

@sharkAndshark
Copy link
Contributor Author

OK . Hope can help this.

@apdevelop apdevelop merged commit 421728e into apdevelop:develop Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants