Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8235285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:45:19+00:00 2026-06-07T18:45:19+00:00

Is there a ST_Distance_Sphere, ST_Distance_Spheroid equivalent function in MySQL’s GeoSpatial Support? If not, any

  • 0
  • Is there a ST_Distance_Sphere, ST_Distance_Spheroid equivalent function in MySQL’s GeoSpatial Support?

  • If not, any way to emulate this?


  • What is the metric used in return type of GLength (length of the LineString)?

  • The manual for GLength says that GLength() is a nonstandard name. It corresponds to the OpenGIS Length() function. But I couldn’t find any Docs for OpenGIS Length(). All I found was for ST_Length are they the same?


  • Also for accuracy do I need to specify the SRID(4326)? How Do I do this in MySQL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:45:20+00:00Added an answer on June 7, 2026 at 6:45 pm

    Since MySql 5.1 there are provided GIS functions distance_sphere() and distance_spheroid() functions. There is an explanation of the parametres and how to use them.

    The length that is returned by GLength() function can be in either unit the coordinates have. So if the coordinates are in terms of degree there is no meaning of a length metric in degrees. To fix this problem the projections are used.

    For WGS84 projection SRID = 4326 but for Spherical Mercator projection, SRID = 900913, which is compatible with the projection used by Google Maps. Spherical Mercator projection Mercator projection uses meters so the GLength function will return the length in terms of meters. This passage is helpful for projections in MySql.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are 2 tables here linked by task_id This is my mysql query, SELECT
Is there an efficient way to fill in pixels with a value of zero
Is there a way to remove every special character from a string like: \r\n
Is there a way to do a SQL query with a wildcard or search
There is state table that have statename and circode but they are not sorted
Suppose there was a SQL table like this: Label Name | Last name |
Is there a way to ensure that the serialization of an object is done
I have a String in which dates are there. I want this String to
I am use SGM plugin for wordpress and there are grey stripes This is
Rails has the rest autho plugin which works well but is there a solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.