Tag Info

Hot answers tagged

8

You can use QGIS' quadrant placement specifier determined from the line's azimuth to place a better label. The quadrant specifies 8 positions around a point: [ 0=Above Left | 1=Above | 2=Above Right | 3=Left | 4=Over | 5=Right | 6=Below Left | 7=Below | 8=Below Right ] Here's an example around Null Island, creating a table and two views. ...


2

A very simple brute force approach: take the first points coordinates and convert them from ISN93 / Lambert 1993 to WGS84 degrees using cs2cs in the OSGEO4W shell cs2cs +init=epsg:3057 +to +init=epsg:4326 -f "%%.8f" <ISN93.txt >WGS84.txt build a local omerc CRS on that point, with the "local coordinates" as false Easting and Northing convert the ...


2

A point inside a polygon canvas = qgis.utils.iface.mapCanvas() aLayer = canvas.layer(0) # or code to select the layer of interest for f in aLayer.getFeatures(): geom = f.geometry() p = geom.pointOnSurface() print p.asPoint() Get Inner Rings canvas = qgis.utils.iface.mapCanvas() aLayer = canvas.layer(0) # or code to select the layer of ...


2

you can't really convert convert distances in degrees into meters as the size of a degree varies as you approach the poles. convert your locations into a projected coordinate system, then calculate your distances.


1

Open up the Attribute Table. Turn on editing for the layer. Using the field calculator, calculate a new field with the following info: Name: X Type: Decimal Number (real) Width: 12 Precision:2 For your expression you want: $x Repeat for Y.


1

i believe this may be an answer https://www.census.gov/geo/reference/centersofpop/animatedmean2010.html http://www.esri.com/news/arcuser/0311/population-drift.html plus this is a really interesting article on the math behind finding the mean center - http://www.ams.org/samplings/feature-column/fcarc-population-center long story short: somewhere in ...


1

The coordinates must be in the same crs as the layer the diagrams are attached to. Could this be your issue?


1

Why Using One Fixed Projection Will Not Work For a projection to be of any use at all for distance-related queries, it and its inverse should be continuous almost everywhere. Consider, then, what happens when you pick one point--any point--and start to draw on the map a collection of routes that emanate from that point and move straight away from it, in ...


1

okay.. as it's in map units this should be fairly straight-forward, within limitations. You already know the height of the label. If it was in points it would be scale-dependant. This assumes a fixed label size, so how well this works depends on how uniform your labels are, and whether or not you use a proportional or fixed-width font (fixed width is easier ...



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