Tag Info

Hot answers tagged

17

Yep sure can. Like alexgleith said you can use the qgsaffine plugin (from the plugin installer) The top of the first line is at 0,0 and the top of the second line is at 5,5. At the start the points are along 0 on the X. Using the Affine plugin we can add 5 to all the X coordinates: Then after they are all on the second line at X 5, Y 5:


5

If you want to move them manually, simply start editing, select the features you want to move and then select the move tool and shift them. To move them by a particular x,y offset, you might be able to use the python plugin "qgsaffine". I am not up to date with using the python console, but there is probably a solution there too.


5

register the featuresadded event on the layer. var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); polygonLayer.events.on({ featuresadded: onFeaturesAdded }); And do this on the function: function onFeaturesAdded(event){ var bounds = event.features[0].geometry.getBounds(); var answer = "bottom: " + bounds.bottom + "\n"; ...


5

I think the plugin you are looking for is cadtools. You can download it using the plugin installer. Once you have it installed it will create a new toolbar with all kinds of handy tools, with one being to create a parallel line. First select the line using the button next to the one in the image. Then select the Create parallel line tool. It will ask ...


4

You should deactivate the control after the first draw operation. For instance you could add this code controls['regular'].deactivate() to the afterfeaturemodified event hook (currently assigned to the report function).


4

Yes, you need a layer that covers the same area to calculate the difference. The easiest way is to create a buffer around the centerpoint. If you already have a layer that includes a point feature at the centerpoint, you can select that and then use the Vector/Geprocessing/Buffer tool with the "Use only selected features" check box activated. If you don't ...


4

there is an information here about right click select feature. i havent try it but it looks like it works. myMap is OpenLayers.Map object and myVectorLayer is... OpenLayers.Layer.Vector. myMap.div.oncontextmenu = function noContextMenu(e) { if(!e){ //dear IE... var e = window.event; e.returnValue = false; } var f = ...


2

I couldn't make any sort of sense of the file once I saved to disk and I think Adam is on the right track with the decompiling idea. I was able to decompile and poke around. Trying to sort through hundreds(maybe thousands) of classes named 'a','b','c' was too much for me, but I think the answer is in there for someone who knows their away around. I ...


2

Probably the best way to get help with this question is to borrow and android device, choose a relatively sparse (mapping) area that the android device hasn't shown before, connect to the local wireless network, and use a sniffer to capture the network traffic as you view that area on the android device. Post the image of the area you chose, and its ...


2

I find the "Numerical vertex edit" plugin very useful for specifying new coordinates for a point. On an editable layer, use the tool to select a point, then you will be prompted to enter the new coordinates.


2

Copy the polygon. Normalize the polygon by subtracting the center values from every point. Scale the normalized polygon in the manner you describe. Add the center values back to every point. If the data is in lat/lon, you may get better results if you first project it (to any planar system you like) then scale as I've described then deproject.


2

The reason that it is "glued" to the map is that you are creating geometries. These geometries have a size and shape based on the projection, not on your zoomlevel. The zoomlevel will then tell the system how big they should be displayed. What you want is to draw circles that stay the same. To do this, you can display points as circles and then apply a ...


1

This is not a default solution, as usually everybody uses plain raster maps (TMS or WMS), so IMHO there is just a hand full of people (mapbox) who can help you to setup this solution (even at http://help.osm.org but call me wrong). Sorry, but I guess you need to find out on your own how it fits together :( https://www.mapbox.com/blog/vector-tiles/ For other ...


1

I don't know how to do this in QGIS, but you could use the Sextante-Plugin to do this within GrassGIS. The command you are searching for is: v.select [-tcr] ainput=name [atype=string[,string,...]] [alayer=integer] binput=name [btype=string[,string,...]] [blayer=integer] output=name [operator=string] [--overwrite] [--verbose] [--quiet] A nice tutorial: ...


1

The full function reference is available directly in the query builder:


1

For example: lat1 = document.getElementById("latitude_1").value; lon1 = document.getElementById("longitude_1").value; point1 = new OpenLayers.Geometry.Point(lon1, lat1); // If your base layer have different SRS you should reproject your geometries manually point1.transform(new OpenLayers.Projection('EPSG:4326'), new OpenLayers.Projection('EPSG:3857')); ...


1

It's in the Sextante tool box. See the accepted answer here: How to create a line in a given distance to an existing one? N.


1

did you try to update your vector layer after this vectorLayer.addFeatures(vectordArray) as shown at following code: vectorLayer.redraw(); if this not work try to get all features from map into an array and then merge them with your new array then add them to map as if you are adding first time into map... ...


1

I can not say concrete things owing to not seeing the code but the fundamental thing is that if you add your feature to other vector map, it naturally takes added vector map style. maybe the best solution is that check out them with firebug... here, there is an example, if it works for you - Styling and Labeling Vector Layers in OpenLayers and here. and ...


1

It works, though you need to click back on the "draw regular polygon" radio so that it triggers the afterfeaturemodified. Or you could just use the featuremodified event so that as soon as you finish dragging or resizing it will trigger your function. Also you'll need to change the var bounds = event.features[0].geometry.getBounds(); for var bounds = ...


1

You can use the Aide Pdf to DXF converter to convert the pdf maps to dxf while you can open in either AutoCAD or ArcGIS to edit. Scholar


1

Not having actually looked, I'd guess something encoded using Protocol Buffers. Probably KML-ish, if I were to guess further.



Only top voted, non community-wiki answers of a minimum length are eligible