(cc'ing this to the JTS list so all can share)

This is exactly what the existing JTS Densifier class does.  So you can
look at that code to see how it's done.  Look at the densifyPoints method
(line 74 in
http://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts/java/src/com/vividsolutions/jts/densify/Densifier.java
)


On Fri, Nov 15, 2013 at 9:58 PM, Adnan Shafiq
<[email protected]>wrote:

> Dear Martin and Brian
>
> Hope you are great. I am new to JTS JAVA and learning JAVA. I was writing
> a program that creates line string given with coordinate information. And
> thereafter finding the length of each line segment joining coordinates of
> line string. Finally adding new coordinates in between those two
> coordinates of line string whose length is greater than 5. So suppose we
> have line string with 6 coordinates. It will create 5 line segments. we
> have to add as many coordinates that length of each line segment should be
> less than 5.
> Upto now I am able to create linestring with coordinates and also able to
> find the length of each line segment in that line string. However still I
> could not add new coordinates in that line segment whose length is greater
> than 5. Could you please give me some hints in that context so that I could
> be able to do it and learn more.
>
>
> Regards
>
> Adnan Shafiq Rana
> Meteorologist
> Research and Development Division
> Pakistan Meteorological Department
> Islamabad, Pakistan
>
> Ph: +92 51 9250334
> Mobile: +92 333 5146436
>
>
>
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to