简体   繁体   中英

What are the available Spatial extensions API between Java and MySQL? [JTS Alternatives]

I'm planning to work with google maps api, to handle data I'm using MySQl and EclipseLink but I couldn't find (Spatial Geometry, point types in Java ) So I googled and found JTS Topology Suite , what are the available alternatives ? pros and cons would be appreciated if available.

JTS is a java library for working with Spatial data once you load it up into JTS objects. I would say you should just do the SQL calls in MySQL and then have it give you back JSON or XML for the geometries you need to work with.

I am not as familiar with MySQL but in PostGIS/Postgresql - there is a JDBC driver that supports spatial types and queries.

In either case - if you are already storing your data as spatial data then I would recommend using the SQL Engine to do your spatial operations rather than JTS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM