Skip to Content
Menu
This question has been flagged
1 Reply
3789 Views

Looking google maps have located 4 points and have created a polygon with them in this way

insert into dummy_zip values (4,'prueba_directa','2016-04-13 08:08:15.973731','prueba_directa',1,1,100,'2016-04-13 08:08:15.973731',(SELECT ST_Transform(ST_GeomFromText('MULTIPOLYGON(((37.986504 -1.121951,37.986741 -1.121243,37.985794 -1.120792,37.985608 -1.121479,37.986504 -1.121951)))',4326),900913)));

but when displayed on the map in a completely different location that should be, because it can be?


Avatar
Discard
Author Best Answer

Solved, i'm stupid.  I mistook  longitude and latitude, the correct sentence is

insert into dummy_zip values (4,'prueba_directa','2016-04-13 08:08:15.973731','prueba_directa',1,1,100,'2016-04-13 08:08:15.973731',(SELECT ST_Transform(ST_GeomFromText('MULTIPOLYGON(((-1.121951 37.986504,-1.121243 37.986741,-1.120792 37.985794,-1.121479 37.985608,-1.121951 37.986504)))',4326),900913)));

Avatar
Discard
Related Posts Replies Views Activity
0
Jul 17
2722
0
Mar 15
3699
2
Nov 24
262
1
Oct 24
328
4
Oct 24
324