how to insert polygon to PostGIS using JDBC

I am getting polygon as a set of points. (text or JSON representation)

I need to do the following:

1) insert polygon to PostGIS using JDBC

2) I am getting an object coordinate ( point ) and I need to check if this point inside polygons or not.

I saw different examples but I didn't find any which is using JDBC ( Java ).

Can you please share the simple java snippet or pointing me to already an existing example.

Note polygon in my case is not a cycle



Read More »

By: StackOverFlow - Tuesday, 20 November

Related Posts