Created
January 16, 2020 13:41
-
-
Save franciscopessoa/9e72587e339cc7d35497ca9a7c3d7ff1 to your computer and use it in GitHub Desktop.
select points inside polygon mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
* | |
from | |
revan_vendas.teste_localizacao | |
where | |
st_within(point(lg, | |
lt), | |
ST_GeomFromText('Polygon( | |
(-38.498775 -6.197860, | |
-38.498612 -6.197349, | |
-38.498143 -6.197477, | |
-38.498333 -6.198003, | |
-38.498894 -6.198675, | |
-38.499025 -6.198600, | |
-38.498775 -6.197860))')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment