Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: example function Polygon

Started 1 month, 3 weeks ago by JongSe Park
Could you show me the example of function Polygon()? I don't know how to use it.
Site: MySQL AB - MySQL Forums  MySQL AB - MySQL Forums - site profile
Forum: GIS  GIS - forum profile
Total authors: 10 authors
Total thread posts: 10 posts
Thread activity: 2 new posts during last week
Domain info for: mysql.com

Other posts in this thread:

Hartmut Holzgraefe replied 1 month, 3 weeks ago
Have you checked the examples on http://dev.mysql.com/doc/refman/5.1/en/geometry-pr operty-functions.html#Polygon-property-functions ? It all comes down to GeomFromText('Polygon((...))'); with ... being one or more closed loop LINESTRING definitions. The examples on the page above use a MULTIPOLYGON consisting of two triangles: 'Polygon((0 0,0 3,3 0,0 0...

Mark Nessfield replied 2 months, 3 weeks ago
It may be of interest to people here, that Wikileaks have made available a database of post codes, latitude and longitude data. http://wikileaks.org/wiki/UK_government_database_o f_all_1,841,177_post_codes_together_with_precise_g eographic_coordinates_and_other_information,_8_Jul _2009 According to Wikileaks: The database, which is compiled at tax-payer expense, has long been the ...

JongSe Park replied 2 months ago
I want to use the function CONTAINS() But there is not any examples for this using. Give me a simple example for this.

Hartmut Holzgraefe replied 2 months ago
Contains() is currently just an alias to MBRContains(), see the first note on http://dev.mysql.com/doc/refman/5.1/en/functions-t hat-test-spatial-relationships-between-geometries. html and the section on MBRContains(), which has a usage example, on http://dev.mysql.com/doc/refman/5.1/en/relations-o n-geometry-mbr.html If you are looking for an equivalent to the MS SQL ...

Patrick Hayes replied 1 month, 4 weeks ago
Hi All, I'm working on the openlayers module for Drupal (drupal.org/project/openlayers). Defining a new spatial column's SRID, and adding data from a particular SRID is well documented. However, for the life of me I can't figure out how to pull the SRID out of an existing column. Thanks! Cheers, Patrick Hayes

Gert Serneels replied 1 month, 3 weeks ago
I was looking for a "point in polygon" function which doens't use simple MBR. Finally I found a post from Adam Smith with a working MySQL stored function, based on the idea from http://local.wasp.uwa.edu.au/~pbourke/geometry/ins idepoly/ But, the function was too slow, so I optimized it a little bit. If someone does have a better alternative or a faster MySQL stored function, please let...

Daniel Blackhurst replied 1 month, 3 weeks ago
Hi, I am interested in designing a Geocoded Location Cache. At present we perform a look up for every position from an external source which is proving to be extremely restrictive and costly. All the locations are stored in the database as gpsPosition >> lat lng geocodedLocationId. I was thinking of either using QuadTrees in java to build its own cache or indexing the latitude and ...

Daniel Blackhurst replied 1 month, 3 weeks ago
Hi, I am interested in designing a Geocoded Location Cache. At present we perform a look up for every position from an external source which is proving to be extremely restrictive and costly. All the locations are stored in the database as gpsPosition >> lat lng geocodedLocationId. I was thinking of either using QuadTrees in java to build its own cache or indexing the latitude and ...

Daniel Blackhurst replied 1 month, 3 weeks ago
listed in different place please see http://forums.mysql.com/read.php?24,287034,287034# msg-287034 Hi, I am interested in designing a Geocoded Location Cache. At present we perform a look up for every position from an external source which is proving to be extremely restrictive and costly. All the locations are stored in the database as gpsPosition >> lat lng geocodedLocationId....

 

Top contributing authors

Name
Posts
Mike McCutcheon
6
user's latest post:
Re: MySql version for GIS functions
Published (2009-11-19 10:52:00)
Thanks Barry. Sorry to prolong this thread but if we look at this page: http://dev.mysql.com/doc/refman/4.1/en/functions-that-test-spatial-relationships-between-geometries.html (which happens to be the same for all MySql versions) where do they mark the version number where the functions were introduced/changed ? At: http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-version-reference-opsfuncs.html there is a list of functions. It...
Barry Galbraith
4
user's latest post:
MySql version
Published (2009-11-19 20:22:00)
Daniel Blackhurst
3
user's latest post:
Reverse Geocoder Cache (relisted...
Published (2009-10-20 03:13:00)
Hi, I am interested in designing a Geocoded Location Cache. At present we perform a look up for every position from an external source which is proving to be extremely restrictive and costly. All the locations are stored in the database as gpsPosition >> lat lng geocodedLocationId. I was thinking of either using QuadTrees in java to build its own cache or indexing the latitude and longitudes in mysql. Note currently 40,000,000...
Hartmut Holzgraefe
2
user's latest post:
MySql version
Published (2009-11-19 20:22:00)
JongSe Park
1
user's latest post:
example function Polygon
Published (2009-10-21 02:59:00)
Could you show me the example of function Polygon()? I don't know how to use it.
Ritesh Ranjan
1
user's latest post:
Help: Distance calculation...
Published (2009-11-13 04:56:00)
Hello The distance calculation between two points in can be done using GLength function as mentioned in the documentation. Eg:- SET @lat1 =40.756054, @lon1 = -73.986951, /** NEW YORK */ @lat2 =51.5001524, @lon2 = 0.1262362; /** London */ SELECT GLength(LineStringFromWKB(LineString(ASBINARY(GeomFromText(CONCAT('POINT(',@lat1,' ', @lon1,')'))) as Distance But the distance here calculated is not based on geo model....
Edwin DeSouza
1
user's latest post:
IPinfoDB: IP address geolocation...
Published (2009-12-01 17:48:00)
IPinfoDB: IP address geolocation SQL database http://ipinfodb.com/ip_database.php
Jon Edmiston
1
user's latest post:
When will GIS Improvements make...
Published (2009-12-03 23:45:00)
When will the GIS improvements made in WL#1326 be released into the production code (5.4... 6.0...further out...)? We're using the 'test' code now, but are wondering if we should even use the new reliable functions in our product.
Gozas Litho
1
user's latest post:
Polygon under/touching Linestring
Published (2009-12-10 16:37:00)
Dear friends, I have a bunch of polygons defined and I would like to find out which of them are under a StringLine. I tried with: 1# SELECT id, AsText(g) AS myPolygon FROM flst WHERE MBRIntersects(LineStringFromText('LINESTRING(4480611.9803 5551488.0621,4480804.8855 5551431.9080)'), g); -> The result isn’t good enough because there is being used the boundary(=Big rectangle) of the StringLine Even with the function...
kittys seattle
1
user's latest post:
Why my query took so long
Published (2009-12-09 11:58:00)
Hi there: I ran a query on a table that has two columns of type POINT with spatial indexing being applied (using R+ tree). The total records in the table is 480,847,800. This is how the table is created. CREATE TABLE table1 ( column1 varchar(11) NOT NULL default '1-1-174-418', startPoint POINT NOT NULL, endPoint POINT NOT NULL, SPATIAL INDEX point1_index (point1) USING RTREE, SPATIAL INDEX point2_index (point2) USING RTREE )...

Related threads on "MySQL AB - MySQL Forums":

Related threads on other sites:

Thread profile page for "example function Polygon" on http://www.mysql.com. This report page is a snippet summary view from a single thread "example function Polygon", located on the Message Board at http://www.mysql.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity