Tag Info

New answers tagged


When you init the map add this control: mapMousePosition = new OpenLayers.Control.MousePosition({ displayProjection: new OpenLayers.Projection(displayProjection) }); In your handler get lonLat like this: var lonLat = map.getLonLatFromPixel( new OpenLayers.Pixel( mapMousePosition.lastXy.x, mapMousePosition.lastXy.y );


There are no problems with the coordinates included in your code. The problem is with, how you included them. The coordinate transformation goes smoothly as far as I can see, but I changed your iteration technique to my own, because for me, the one included in your Fiddle was a bit strange (I hope that won't lead to a confusion). The first problem was with ...


You should check your transformation of the coordinates. That what i got from console.log(points[0]) [1072173.6812907949, -15779360.632217405] Is that correct (the minus)? Update: Since the handled coordinates are strings you nede to convert them: like Number(res[0][i]) Not sure what you want to do with [res[0][i += 1] but if you do so yo need to ...


I had this exact problem and solved it from the python console with regex. While regex can be tricky it's very powerful. And you'll be left with a tool you can use with more difficult match cases. Here are the docs. and here is a nice online machine for testing your regex strings. Firstly here is the quick script I run to check my regex strings in qgis ...


You just gotta use the LIKE operator. For example, "TITLE" LIKE '%MINERAL CLAIM%' The % symbol acts like a wildcard.

Top 50 recent answers are included