I'm trying to use JTS and postgis for backend based on spring. While I know basics of JTS I don't know how to achieve
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I wrote the following method that is capable of what you are asking for and uses JTS LineSegment objects to calculate the splitting points:
i also need to write the split function,so i find solution on stackoverflow,but not find some useful information.so i write follow method and answer your question;
Simply use the Java implementation of geographiclib - I believe you want GeodesicLine; then use JTS and postgis to get the linestring coordinates you generate that way into postgresql. This geodesic path example in JavaScript should get you started.