<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - GIS</title>
        <description>Forum for OpenGIS discussions.</description>
        <link>http://forums.mysql.com/list.php?23</link>
        <lastBuildDate>Wed, 22 May 2013 21:11:47 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?23,584197,584197#msg-584197</guid>
            <title>How To: Storing and retrieving spatial data on MySQL server with Connector/Net (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,584197,584197#msg-584197</link>
            <description><![CDATA[ How To: Storing and retrieving spatial data on MySQL server with Connector/Net <br />
<a href="https://blogs.oracle.com/MySqlOnWindows/entry/howto_storing_and_retrieving_spatial"  rel="nofollow">https://blogs.oracle.com/MySqlOnWindows/entry/howto_storing_and_retrieving_spatial</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 17 Apr 2013 16:40:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,583685,583685#msg-583685</guid>
            <title>How to add a point to existing linestrings in mysql? (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,583685,583685#msg-583685</link>
            <description><![CDATA[ Is it possible to add a Point at the end of a Linestring in MySql?<br />
<br />
For example I have a Linestring as<br />
<br />
Linestring(1 2, 1 4, 1 6)<br />
<br />
and I want to add a Point<br />
<br />
Point(1 7)<br />
<br />
at the end (output should be Linestring(1 2, 1 4, 1 6, 1 7))]]></description>
            <dc:creator>Prabu Raja</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 11 Apr 2013 12:03:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,577367,577367#msg-577367</guid>
            <title>Point Within Multipolygon (2 replies)</title>
            <link>http://forums.mysql.com/read.php?23,577367,577367#msg-577367</link>
            <description><![CDATA[ Hello, <br />
<br />
Im running mysql on synology NAS server version 5.1.49 - Source distribution that was installed on the system. <br />
<br />
I have a database containing a multipolygon and i want to query if selected coordinates are within this multypoligon in a specific range of dates.<br />
I have found the GISWithin function (http://forums.mysql.com/read.php?23,286574,286574#msg-286574) which works correctly, but it is working a lot slower than the build in Within function, since i guess it does not use the spatial index on my GIS field. Below is the explain result for my query. Im missing a possible_key field which is a spatial index for the multipolygon field.<br />
<br />
EXPLAIN SELECT * FROM arhiv WHERE GISWithin(GEOMFROMTEXT(  'Point(120 10)' ) , field) AND obsdate BETWEEN  '2010-01-01' AND  '2013-01-01' ORDER BY obsdate ASC<br />
id select_type table type possible_keys key key_len ref rows Extra<br />
1  SIMPLE      arhiv range obsdate      obsdate 8   NULL 180659 Using where<br />
<br />
<br />
The build in WITHIN function seems to give false results, it looks like it uses MBR calculations.<br />
<br />
Is there a way to test if the GIS functions in this distribution work in a correct way and not with MBR calculations. <br />
If my mysql does not have the corrected within function is there any way to implement it into my distribution? Im very limited on building it from source.<br />
<br />
Thank you for any help<br />
Best regards<br />
Jure]]></description>
            <dc:creator>Jure Zakrajsek</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 21 Mar 2013 15:03:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,574643,574643#msg-574643</guid>
            <title>ST_Intersect (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,574643,574643#msg-574643</link>
            <description><![CDATA[ Hello everyone,<br />
I am having some troubles with the ST_Intersects on MySQL 5.6.7<br />
<br />
I have two geometries: a polygon and a line with three points, two of them lie inside the polygon and the third is outside. <br />
<br />
To my understanding, ST_Intersects should return 1 but it doesn't... <br />
Here is an example query: <br />
<br />
Select ST_Intersects(GeomFromText('LineString(40.703782 0.58101475, 40.7037898 0.58075726, 40.70378574 0.58051049)'), GeomFromText('POLYGON((40.703266 0.580561,40.704286 0.580561,40.704286 0.582181,40.703266 0.582181,40.703266 0.580561))'))<br />
<br />
Any ideas?]]></description>
            <dc:creator>Nikos M</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 26 Nov 2012 11:51:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,568508,568508#msg-568508</guid>
            <title>join on (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,568508,568508#msg-568508</link>
            <description><![CDATA[ Hello,<br />
<br />
I have to select  the posts from the table `Dammreg` under condition that the string in the DNAM field includes the string from the field Damm_vk.NAMN <br />
I have used the following sentence:<br />
<br />
SELECT * FROM Dammreg INNER JOIN Dammreg ON Dammreg.DNAMN LIKE CONCAT('%', Damm_vk.NAMN, '%');<br />
<br />
and received the error message: #1066 - Not unique table/alias: 'Dammreg'.<br />
<br />
I used also the sentence: <br />
<br />
SELECT * FROM Dammreg<br />
JOIN TABLE Dammreg ON Dammreg.DNAMN LIKE '%'+ Damm_vk.NAMN +'%' with no result. <br />
<br />
With this sentence:<br />
SELECT * FROM Dammreg<br />
JOIN TABLE Dammreg ON Dammreg.DNAMN LIKE '%' + @Damm_vk.NAMN + '%'<br />
I receive the message: #1046 - No database selected.<br />
<br />
Erlier I read the thread about error:#1066 and some other threads but still can not find what is wrong.<br />
<br />
Server version: 5.1.63-0+squeeze1<br />
Many thanks in advance]]></description>
            <dc:creator>Jacek Gancarson</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 16 Oct 2012 23:34:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,564483,564483#msg-564483</guid>
            <title>Names of polygons (2 replies)</title>
            <link>http://forums.mysql.com/read.php?23,564483,564483#msg-564483</link>
            <description><![CDATA[ I have managed to create tables with polygon data (Eastings and Northings) in Id,GEOMETRYCOLLECTION data types,<br />
<br />
How do I add a name to each polygon and then get the name back when I have a &quot;Within&quot; result<br />
<br />
Many thanks<br />
Martin]]></description>
            <dc:creator>Martin Jones</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 09 Sep 2012 12:05:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,564353,564353#msg-564353</guid>
            <title>Cannot get geometry object from data you send to the GEOMETRY field (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,564353,564353#msg-564353</link>
            <description><![CDATA[ Hi All,<br />
<br />
I kept getting error:Cannot get geometry object from data you send to the GEOMETRY field<br />
<br />
We have a POLYGON table TBL_BDY which has two columns :CODE, BDY .BDY is meant to be like a geometry column except the data type is text.<br />
<br />
In the BDY column : the format of the latitude longitude is arranged as : 10 -10|1 -1|10 -10|.....and so on...it is seperated by a pipeline.<br />
<br />
My effort is to try to spatialize the table.<br />
<br />
I created a replicated table with an additional column of GEOMETRY.<br />
<br />
CREATE TABLE tbl_bdy_geom <br />
(CODE VARCHAR(4),<br />
BDY TEXT,<br />
GEOLOC GEOMETRY);<br />
<br />
<br />
I then try to insert the table by replacing theipelines with   comma...but I ran into error:Cannot get geometry object from data you send to the GEOMETRY field<br />
<br />
<br />
insert into tbl_bdy_geom (code,bdy,geoloc)<br />
select code,bdy,polyFromText(REPLACE(`bdy`, '|', ',')) from `tbl_bdy`;<br />
<br />
Any help is much appreciated!]]></description>
            <dc:creator>Crackie Maggie</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 07 Sep 2012 20:20:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,562517,562517#msg-562517</guid>
            <title>Google Maps API:  Geocoding Addresses with PHP/MySQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,562517,562517#msg-562517</link>
            <description><![CDATA[ Google Maps API:  Geocoding Addresses with PHP/MySQL<br />
<a href="https://developers.google.com/maps/articles/phpsqlgeocode"  rel="nofollow">https://developers.google.com/maps/articles/phpsqlgeocode</a><br />
<a href="https://developers.google.com/maps/articles/phpsqlsearch_v3"  rel="nofollow">https://developers.google.com/maps/articles/phpsqlsearch_v3</a><br />
<a href="https://developers.google.com/maps/articles/phpsqlajax_v3"  rel="nofollow">https://developers.google.com/maps/articles/phpsqlajax_v3</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 23 Jul 2012 23:18:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,549785,549785#msg-549785</guid>
            <title>GIS development status (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,549785,549785#msg-549785</link>
            <description><![CDATA[ whats the status of the development work dealing with the mysql spatial/GIS extensions? Its june 2012, and many of the posts here in the GIS forum look very old. The info. on the mysql forge wiki also looks dated. Has work on the GIS extensions stalled? is anyone still actively working on expanding the GIS functionality in mysql?]]></description>
            <dc:creator>P R</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 12 Jun 2012 02:11:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,549778,549778#msg-549778</guid>
            <title>GIS dev branch on bazaar/launchpad? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,549778,549778#msg-549778</link>
            <description><![CDATA[ Im trying to get the bleeding-edge GIS code for mysql (Im also considering contributing, since I need some of the gis stuff that postGIS has and mysql lacks).<br />
<br />
The mysql-forge wiki says that all the GIS code has been merged into the trunk, but doesnt mention anything about any specific dev branches that focus on the GIS stuff.<br />
<br />
Can anyone please provide info on which branches I should be looking at for GIS?]]></description>
            <dc:creator>P R</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 12 Jun 2012 02:14:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,546357,546357#msg-546357</guid>
            <title>Implementing efficient Geo IP location system in MySQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,546357,546357#msg-546357</link>
            <description><![CDATA[ Implementing efficient Geo IP location system in MySQL<br />
<a href="http://www.dbasquare.com/2012/06/01/implementing-efficient-geo-ip-location-system-in-mysql/"  rel="nofollow">http://www.dbasquare.com/2012/06/01/implementing-efficient-geo-ip-location-system-in-mysql/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 01 Jun 2012 19:01:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,532466,532466#msg-532466</guid>
            <title>Multi-dimensional data in SPACIAL types (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,532466,532466#msg-532466</link>
            <description><![CDATA[ Hi guys,<br />
<br />
I am wanting to create a schema that stores a chessboard. Seeing how a chessboard is somewhat like a grid or table (a two-dimensional object), I thought that we could use each point on the grid to store the piece value, and then index the values at each specific point in the 8x8 grid.<br />
<br />
Basically the X-axis would represent ranks 1-8 in chess and the Y-axis would represent files A-H in chess.<br />
<br />
This is not a valid query, but I thought maybe something like this might be what I wanted:<br />
<br />
<pre class="bbcode">
# board[0][0] would represent A8, board[7][7] would represent H1, etc
# there would be 13 possible values: K Q R B N P k q r b n p -
SELECT * FROM mytable WHERE board[0][0] = 'r';</pre>
<br />
So I was wondering if anyone had any ideas they could share. From what I can see, the GEOMETRY type might be my best bet, but I spent a bit of time on Google and found no examples of its use.<br />
<br />
Thanks,<br />
<br />
- John]]></description>
            <dc:creator>John Nahlen</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 12 Jun 2012 02:28:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,504489,504489#msg-504489</guid>
            <title>Strange behavior with contains function and bounding rectangle (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,504489,504489#msg-504489</link>
            <description><![CDATA[ Hi,<br />
<br />
I imported a ESRI shapefile into mysql using two methods. GDAL (ogr2ogr) and Barend Kobben's shp2mysql. The shape files contains three countries (Kenya, Uganda and Tanzania). The insert of the geometry for each shape went without warnings or errors (see script link below).<br />
<br />
Now, when I try to find out if a point is contained by a geometry using the function 'contains' in some cases returns two records when It should be just one and seems to happen because the bound rectangle. See this example image:<br />
<br />
<a href="http://www.qlands.com/other_files/br.jpg"  rel="nofollow">http://www.qlands.com/other_files/br.jpg</a><br />
<br />
If I choose points that are contained within two bound rectangles (red dot in example image), the sql returns two records, if I use a point that is just contained by one bound rectangle (blue dot in example image) the sql returns positively just one . As far as I know the original shape file does not have bound rectangles as part of the shapes.<br />
<br />
How can I ignore the bounding rectangle so I can select a point that is just inside the geometry of a shape? I thought that was the difference between 'contains' and 'MBRcontains'.<br />
<br />
I am using an SQL like:<br />
<br />
SELECT OGR_FID  FROM test2 where contains(ogc_geom,GeomFromText('POINT(32.17 -1.52)'));<br />
<br />
The table is:<br />
<br />
+----------+----------+------+-----+---------+----------------+<br />
| Field    | Type     | Null | Key | Default | Extra          |<br />
+----------+----------+------+-----+---------+----------------+<br />
| OGR_FID  | int(11)  | NO   | PRI | NULL    | auto_increment |<br />
| ogc_geom | geometry | NO   |     | NULL    |                |<br />
+----------+----------+------+-----+---------+----------------+<br />
<br />
You can get the insert script for here:<br />
<br />
<a href="http://www.qlands.com/other_files/test.sql"  rel="nofollow">http://www.qlands.com/other_files/test.sql</a> (348k)<br />
<br />
Many thanks for any help!<br />
<br />
Carlos.]]></description>
            <dc:creator>Carlos Quiros</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 06 Dec 2011 20:11:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,499731,499731#msg-499731</guid>
            <title>Polygon search fails... and fails... and fails... (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,499731,499731#msg-499731</link>
            <description><![CDATA[ In my table I have three geospatial fields:<br />
`lat` decimal(12,7) NOT NULL,<br />
`lon` decimal(12,7) NOT NULL,<br />
`location` point NOT NULL,<br />
<br />
And three geospatial indices:<br />
KEY `lat` (`lat`),<br />
KEY `lon` (`lon`),<br />
SPATIAL KEY `location` (`location`)<br />
<br />
I then have a trigger defined as 'on before update' which sets the `location` from the lat/lon pair like this:<br />
FOR EACH ROW SET NEW.location = PointFromText(CONCAT('POINT(',NEW.lat,' ',NEW.lon,')'))<br />
<br />
Here's my query:<br />
SET @bbox = 'POLYGON((32.70 -117.16, 47.97 -122.19, 44.80 -68.77, 25.77 -80.19 ))';<br />
SELECT * , AsText( location ) <br />
FROM geo_table<br />
WHERE Intersects( location, GeomFromText( @bbox ) );<br />
<br />
Running this query through phpMyAdmin I get the following message for both SQL statements:<br />
# MySQL returned an empty result set (i.e. zero rows).<br />
<br />
The data points shown in the above SET @bbox are from 4 corners of the US (entered clockwise) and should return 99% of all points but returns nothing.  Here are the coordinates:<br />
San Diego, CA: +32.70 -117.16<br />
Seatle, WA: 47.97 -122.19<br />
Bangor, Maine: 44.80 -68.77 <br />
Miami, FL: 25.77 -80.19 <br />
<br />
I have also tried this against over 3500 polygons from the NWS CAP 1.1 feed and I get nothing!  I figure I must be doing something wrong but, for the life of me, I can't figure out what it is!<br />
<br />
Any suggestions?]]></description>
            <dc:creator>Phil Petree</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 19 Nov 2011 15:12:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,491269,491269#msg-491269</guid>
            <title>Do spatial functions still use MBR? (3 replies)</title>
            <link>http://forums.mysql.com/read.php?23,491269,491269#msg-491269</link>
            <description><![CDATA[ Hi,<br />
<br />
I was reading through several posts here, along with blogs/posts in the web about GIS capabilities of MySQL. A lot of these posts state that MySQL uses the MBR instead of the entire polygon to do a spatial search. Is it still the case? If this has been fixed, please point me to the version of MySQL with which this support has been added.<br />
Also, it would be great if you can point me to a page showing the supported GIS spatial functions.<br />
<br />
Another question is on InnoDB support for spatial data. Reading through the page (http://dev.mysql.com/doc/refman/5.0/en/innodb-restrictions.html), I see that though InnoDB can be used to store spatial data, spatial indexes are not yet supported.<br />
<br />
Thanks,<br />
Sunil]]></description>
            <dc:creator>Sunil Padda</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 07 Dec 2011 20:01:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,490771,490771#msg-490771</guid>
            <title>How link to longitude &amp; latitude fields (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,490771,490771#msg-490771</link>
            <description><![CDATA[ NEWBIE GIS help!<br />
<br />
I am attempting to relate (link) to the latitude/longitude fields stored in spatial MYSQL5.1 DBMS created with GIS program (Manifold System) by using Filemaker or other DB programs to access.  I have the FM ODBC driver (Actual Technologies) and can access the MYSQL tables.  The tables look odd!<br />
<br />
The problem I have is the tables in MYSQL5.1 do not appear to be normal looking tables to a Novice when I view in Workbench on the server.  I assume this is because MYSQL manages the data how it wants for efficiency.  They look normal when viewing in my GIS program.  So I am unable to identify the lon/lat fields to create the external relationship.<br />
<br />
What is the trick?  Do I need to create a new table upload it to MYSQL via my GIS program &amp; configure certain field types, then link to that new table? <br />
<br />
My goal is to use my GIS program locational data (lat/lon) linked (related) to my Filemaker data table (lat/lon).  <br />
<br />
Any tips would be most helpful.  Many thanks.<br />
<br />
- Jim M]]></description>
            <dc:creator>Jim M</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 26 Oct 2011 13:12:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,472449,472449#msg-472449</guid>
            <title>MBR within not accurate (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,472449,472449#msg-472449</link>
            <description><![CDATA[ Dear All,<br />
I have been using the MBRWithin function for quite a lot of times. Suddenly I notice on google map this 'POINT(101.11857 4.34475)') is out of the geo fence which I specify but it still give a value of 1 in mysql any reason or tweaking need to be done?<br />
<br />
<br />
SELECT MBRWithin(GeomFromText('POINT(101.11857  4.34475)'),GeomFromText('POLYGON((101.12112522125244 4.3531723687957164,101.11846446990967 4.351417913665312,101.13138198852539 4.336397898951581,101.13477230072021 4.33211863778494,101.14065170288086 4.321933898868271,101.14992141723633 4.306699328215635,101.15455627441406 4.30978050198082,101.1397933959961 4.334600612212089,101.12112522125244 4.3531723687957164,101.12112522125244 4.3531723687957164))')) As geoFenceStatus]]></description>
            <dc:creator>newbie Shai</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 16 Oct 2011 04:41:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,451444,451444#msg-451444</guid>
            <title>Finding WGS-84 locations within a specfied distance of each other (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,451444,451444#msg-451444</link>
            <description><![CDATA[ G'day,<br />
<br />
I have a few MySQL databases with WGS-84 datum based Lat and Lon coordinates stored in them. I would like to be able to be able to query each database to find any points within 'x' metres of each other. This would make it easier to locate possible duplicate points.<br />
<br />
I came across a MySQL function at <a href="http://forge.mysql.com/tools/tool.php?id=222"  rel="nofollow">http://forge.mysql.com/tools/tool.php?id=222</a> to calculate the distance between two points using Vincenty Distance WGS-84 algorithm.<br />
<br />
So the query would have to get each point, then calculate the distance from it to every other point, and select those less than or equal to the specified distance, and then do the same for every other point.<br />
<br />
Would anyone out there be able to construct a MySQL query to achieve this based on the above distance function?<br />
<br />
Then we'd be able to use phpMyAdmin to run the query and learn more about the points stored.<br />
<br />
Best Regards, Lloyd Borrett.]]></description>
            <dc:creator>Lloyd Borrett</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 08 Oct 2011 22:03:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,432000,432000#msg-432000</guid>
            <title>Can Not Create Geospatial Table (2 replies)</title>
            <link>http://forums.mysql.com/read.php?23,432000,432000#msg-432000</link>
            <description><![CDATA[ I am trying to create a geospatial table using the following:<br />
<br />
CREATE TABLE geo1 (g GEOMETRY);<br />
<br />
I get the following error:<br />
<br />
ERROR 1064: You have an error in your SQL syntax near 'GEOMETRY)' at line 1<br />
<br />
Does this mean that our version (see query below) of MySQL doesn't support geospatial tables?<br />
<br />
mysql&gt; select version();<br />
+-----------+<br />
| version() |<br />
+-----------+<br />
| 3.23.58   |<br />
+-----------+<br />
1 row in set (0.00 sec)<br />
<br />
if so, is there a way to add the geospatial extension?]]></description>
            <dc:creator>John Schattel</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 29 Sep 2011 16:24:49 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,431945,431945#msg-431945</guid>
            <title>MySQL Spatial performance (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,431945,431945#msg-431945</link>
            <description><![CDATA[ Hi,<br />
I've checked query execution times using MBRContains function. I have 1mln random records (points) put on the surface 500x500. The query execution times are:<br />
1) Area 50x50 | 0,11sec | 9963 records<br />
2) 100x100 | 0,35 sec | 40013<br />
3) 200x200 | 1,176 sec | 160009<br />
4) 300x300 | 0,482 sec | 359126<br />
5) 400x400 | 0,765 sec | 639874<br />
<br />
Why times in 4) and 5) are shorter than in 3). The areas and records number are greater...<br />
<br />
Sorry for my english]]></description>
            <dc:creator>Lukasz Nowak</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 26 Aug 2011 07:20:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,428099,428099#msg-428099</guid>
            <title>configure flag (2 replies)</title>
            <link>http://forums.mysql.com/read.php?23,428099,428099#msg-428099</link>
            <description><![CDATA[ I'm on slackware 13.1 and I previously had to rebuild mysql to enable profiling.<br />
<br />
Is there a configure flag to enable the spatial extensions?<br />
<br />
I've been running some rails code and the queries look ok in the console but my field is always null.  I figured I may need to enable the spatial extensions I'm running mysql 5.1.46]]></description>
            <dc:creator>Jeff Rossi</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 29 Jul 2011 11:35:49 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,421124,421124#msg-421124</guid>
            <title>Poi based on lat itude and longitude (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,421124,421124#msg-421124</link>
            <description><![CDATA[ Dear All,<br />
        I have a big table of poi's based on latitude and longitude. So then based on a given latitude and longitude I would like to find the nearest point in my poi table. Can I use some mysql functionality to do to be best optimize way. The problem I am currently doing it in php using the standard method as below<br />
<br />
$distance = (3958*3.1415926*sqrt(($lat-floatval($row['lat']))*($lat-floatval($row['lat'])) + cos($lat/57.29578)*cos(floatval($row['lat'])/57.29578)*($long-floatval($row['long']))*($long-floatval($row['long'])))/180);<br />
<br />
Below is my table.<br />
<br />
CREATE TABLE IF NOT EXISTS `poi` (<br />
  `poiID` int(11) NOT NULL auto_increment,<br />
  `type` varchar(50) NOT NULL,<br />
  `locationName` varchar(200) NOT NULL,<br />
  `state` varchar(50) NOT NULL,<br />
  `city` varchar(50) NOT NULL,<br />
  `lat` float NOT NULL,<br />
  `long` float NOT NULL,<br />
  PRIMARY KEY  (`poiID`),<br />
  KEY `lat` (`lat`,`long`),<br />
  KEY `lat_2` (`lat`),<br />
  KEY `long` (`long`)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=201046 ;]]></description>
            <dc:creator>newbie Shai</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 25 May 2011 02:07:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,420800,420800#msg-420800</guid>
            <title>GIS functions in 5.1.35 dev version - when to be added to prod release? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,420800,420800#msg-420800</link>
            <description><![CDATA[ Hi<br />
<br />
I was very happy when I discovered that there's a version of MySQL that includes a number of long-awaited GIS functions. I'd be even happier if these developments were included in the prod release. Is it known if and when this is going to happen?<br />
<br />
Thx,<br />
Laszlo]]></description>
            <dc:creator>László Kovács</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 30 May 2011 22:46:15 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,420155,420155#msg-420155</guid>
            <title>Use My SQL GIS db for routing (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,420155,420155#msg-420155</link>
            <description><![CDATA[ I am doing some research and trying to figure out if it possible to use MYSQL to find cities in a route or within a radius of that route.<br />
<br />
If I am going from point A to point B. I want find all cities on the route between city A and city B. Is it possible?<br />
<br />
If I can get all cities can I filter by population or by radius of the route ?<br />
<br />
I am not even sure if this is doable with any spatial db but wanted to bounce this off others.<br />
<br />
Thanks./]]></description>
            <dc:creator>K jo</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 17 May 2011 15:15:07 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,415927,415927#msg-415927</guid>
            <title>contains/within functions still using MBR??!?! (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,415927,415927#msg-415927</link>
            <description><![CDATA[ I just installed a development snapshot of 5.6 from the labs.<br />
It seems that the gis functions are still using mbr's, can someone verify this?<br />
what happened to the holyfoot fixes? where are they? how can I get them?<br />
<br />
I have a 'world countries' database table, with a geometry spatial column for country borders. the geometry column contains polygon &amp; multipolygon types. Performing queries to find out in which country a point lies will INCORRECTLY return multiple results; its obvious that mbr's are being used.<br />
<br />
example:<br />
SELECT * FROM world_countries WHERE Contains(SHAPE,GeomFromText('POINT(-6.289999961853027 36.5099983215332)'))<br />
this point is located in southern spain, yet the query returns spain, algeria, portugal, even the U.S., due to the dateline wrap-around.<br />
I've already verified that the polygon data in the spatial column is correct, so the problem is that mysql's gis functions are unable to accurately determine which polygon a point lies within.<br />
<br />
anyway, can someone please help me out with this?]]></description>
            <dc:creator>P R</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 11 Apr 2011 03:29:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,412889,412889#msg-412889</guid>
            <title>Work with geodetic coordinates (1 reply)</title>
            <link>http://forums.mysql.com/read.php?23,412889,412889#msg-412889</link>
            <description><![CDATA[ Hi,<br />
I'm working on MySQL 5.0.91-enterprise-gpl-log.<br />
<br />
I need to enjoy spatial functions using earth coordinates.<br />
How is it possible to specify the reference plan of my coordinates?<br />
<br />
Thanks in advance,<br />
Samuel]]></description>
            <dc:creator>Samuel Rabini</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 19 Mar 2011 14:21:22 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,412425,412425#msg-412425</guid>
            <title>Web Game using MySql GIS extensions (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,412425,412425#msg-412425</link>
            <description><![CDATA[ Hi All,<br />
<br />
We would like to announce the tester release of Diplomatic Wars.<br />
<br />
Diplomatic Wars is a free multiplayer strategy game using an unique worldwide interactive map using OpenLayers + MySql + Geoserver<br />
<br />
We are giving a try to MySql Spatial Extensions to support game geometry data.<br />
<br />
Please have a try.<br />
<br />
Register at <a href="http://www.diplomaticwars.com/"  rel="nofollow">http://www.diplomaticwars.com/</a>]]></description>
            <dc:creator>Marco Afonso</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 16 Mar 2011 17:57:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,411933,411933#msg-411933</guid>
            <title>SELECT * WITH(POLYGON with HOLES) : Error (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,411933,411933#msg-411933</link>
            <description><![CDATA[ The test dataset contains 1000 random rectangles within X  [0,10000], Y  [0,10000].  I would like to query for rectangles within a polygon consisting of an outer ring and a hole within.<br />
<br />
SELECT COUNT(*) FROM tile WHERE<br />
  within(tile.LOCATION,<br />
  GeomFromText(<br />
    'POLYGON ((-1 -1, 10000 -1, 10000 10000, -1 10000, -1 -1))'<br />
  )<br />
) =  1<br />
<br />
Result: 1000 [As expected]<br />
<br />
SELECT COUNT(*) FROM tile WHERE<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((10 10, 5010 10, 5010 5010, 10 5010, 10 10))'<br />
)<br />
) =  1<br />
<br />
Result: 248 [As expected]<br />
<br />
<br />
SELECT COUNT(*) FROM tile WHERE<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((-1 -1, 10000 -1, 10000 10000, -1 10000, -1 -1),(10 10, 5010 10, 5010 5010, 10 5010, 10 10))'<br />
)<br />
) =  1<br />
<br />
Result: 1000 [Expected : 752 since 248 falls inside the hole]<br />
<br />
<br />
If I run<br />
<br />
SELECT COUNT(*) FROM tile WHERE<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((-1 -1, 10000 -1, 10000 10000, -1 10000, -1 -1)'<br />
)<br />
) =  1<br />
AND<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((10 10, 5010 10, 5010 5010, 10 5010, 10 10))'<br />
)<br />
) =  0<br />
<br />
Then result is 0<br />
<br />
Where as<br />
<br />
SELECT COUNT(*) FROM tile WHERE<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((-1 -1, 10000 -1, 10000 10000, -1 10000, -1 -1),(10 10, 5010 10, 5010 5010, 10 5010, 10 10))'<br />
)<br />
) =  1<br />
AND<br />
within(tile.LOCATION,<br />
GeomFromText(<br />
'POLYGON ((10 10, 5010 10, 5010 5010, 10 5010, 10 10))'<br />
)<br />
) =  0<br />
<br />
Result is 752, exactly what I’d expect!!<br />
<br />
Can anyone help me understand this behavior?]]></description>
            <dc:creator>Boni Gopalan</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 14 Mar 2011 09:36:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,410076,410076#msg-410076</guid>
            <title>Database - points of latitude and longitude. (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,410076,410076#msg-410076</link>
            <description><![CDATA[ I need to create a database with GIS spatial extensions. I need points of latitude and longitude. I'm creating an application in the Adobe Flash Builder (Flex 4), which specifies uses google map api. I want to use Adobe ColdFusion 9 was combined with a MySQL database. The database will store information: id, name, points of latitude and longitude.<br />
<br />
Please help how to create such a database. <br />
Thank you!<br />
<br />
<br />
Marylka]]></description>
            <dc:creator>Marylka Pieroszkiewicz</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 01 Mar 2011 21:42:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?23,409276,409276#msg-409276</guid>
            <title>Add GIS data types to a classic mysql server 5.0 (no replies)</title>
            <link>http://forums.mysql.com/read.php?23,409276,409276#msg-409276</link>
            <description><![CDATA[ Hello!<br />
Please, i would like to know if there is a GIS patch or a GIS plugin for mysql server.<br />
My server is running on Debian etch OS. Now, i would like to add this plugin in order to insert GIS data like Point, Rectangle...<br />
If impossible, please, what must i do?<br />
Thanks!]]></description>
            <dc:creator>Yema Mario</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 24 Feb 2011 16:23:25 +0000</pubDate>
        </item>
    </channel>
</rss>
