I'm working with SRID=32636
I have a point = (2076155.32235105 4828109.18280588)
I'm using this post: How to add 2 points with distance between them (SRID = 32636)? to create 3 points with different distances.
I created the 3 points (source point + 3 different points with 15, 30, 70 meters from source point) with the following queries:
select st_asText(st_project('POINT(2076155.32235105 4828109.18280588)', 15, radians(30)))
I got: POINT(35.322429431595 30.8173112915666)
select st_asText(st_project('POINT(2076155.32235105 4828109.18280588)', 30, radians(30)))
I got: POINT(35.3225078132829 30.8174284630566)
select st_asText(st_project('POINT(2076155.32235105 4828109.18280588)', 70, radians(30)))
I got: POINT(35.3227168320474 30.8177409201211)
when I'm checking the distances between the source point and each other I got incorrect or strange distances:
select st_distance('POINT(2076155.32235105 4828109.18280588)','POINT (2076155.32235105 4828109.18280588)')
got: 0 (seems ok - no distance between source point to same source point)
select st_distance('POINT(2076155.32235105 4828109.18280588)','POINT(35.322429431595 30.8173112915666)')
got 5255531.84344186 (I expect to get 15)
select st_distance('POINT(2076155.32235105 4828109.18280588)','POINT(35.3225078132829 30.8174284630566)')
got 5255531.84330326 (I expect to get 30)
What is wrong ?
why the points I got don't give me the points with the distance I want from source point ?
How can I fix it ?