Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How to find the center point of MULTILINESTRING, which lies on the multiline?

share|improve this question
What software are you using? The more details you give, the better an answer you will receive. – sgrieve Sep 17 '12 at 13:22
I am using SQL in PostGIS. – Marko Sep 17 '12 at 13:26

2 Answers

I have found, the function is called ST_PointOnSurface.

share|improve this answer

Have a look at ST_Line_Interpolate_Point(). If you give 0.5 as the second parameter, it will return a point 1/2 way along the line. BTW, if your layer is a MULTILINESTRING, then "center point" really doesn't have any meaning. For example, a MULTILINESTRING can be non-contiguous or intersecting LINESTRINGs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.