create mysql table with point in polygon lookup

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

I have MySQL running with MyIsam which supports Spatial indexes. I have a number of areas defined by large polygons with a set of lat, lon points for each polygon. My objective is to save each area with the polygon in a table and subsequently send a query to search which areas have a point (lat, lon) inside the polygon. The query needs to be super fast ( < 0.05 sec), inserting doesn't need to be so fast.

You have the following tasks:

1) Create a query to build the table. The table will have following columns: id, name, polygon (polygon defined by latitude, longitude coordinates like: lat1 lon1, lat2 lon2, ...

2) An example query to insert 3 rows into the table. which also updates the index from 3).

3) Create a spatial index on the table on for fast point in polygon search.

4) Provide two example sql queries: 1 to get rows for 1 point (provided by latitude, longitude) and 2 to get rows for multiple points where each returned row has the original points in it so that we know which point returned wich rows.

Please provide sql statements needed for each task above.

Database Administration MySQL SQL

Project ID: #17715924

About the project

6 proposals Remote project Active 5 years ago

Awarded to:

MzHashmi

Assalamo alaikum Sir...I can make these queries in quick manners and update you as soon as possible ..thank's

$52 USD in 10 days
(2 Reviews)
2.4

6 freelancers are bidding on average $67 for this job

royalwebraisers

HI, I can help you in creating the spatial mysql query to find the point within polygon. Let me know when we can discuss in details. Looking forward for your response. Thanks.

$100 USD in 2 days
(79 Reviews)
6.1
gursukh

can I help you.

$72 USD in 1 day
(36 Reviews)
5.2
mohamedmssouda

Hello Sir I am professional database administrator with experience more than 5 years in multinational companies and I am ready to start the work now and finish ASAP

$52 USD in 10 days
(15 Reviews)
3.6
sudipkhan

Hello, I have designed and developed vehicle tracking system and area calculation system and some other gis application. I can do it.

$50 USD in 1 day
(0 Reviews)
0.0