New answers tagged

1

You could create a Virtual Layer with the following query: WITH distances AS( SELECT b.fid b_fid, a.fid a_fid, ST_Distance(b.geometry,a.geometry) dist FROM layer_B b CROSS JOIN layer_A a ), percentiles AS( SELECT b_fid, a_fid, dist, NTILE(10) OVER( PARTITION BY b_fid ORDER BY dist)*10 percentile FROM ...


0

Sure, run a Vector Analysis > Distance matrix between Layer A and Layer B, to output to a csv. Run statistics on your distance matrix csv and buffer to your liking.


0

The lines are an ordered list of coordinates so you should loop through the list and use the loop index to pull the coordinates from each line string and apply the equation to the pulled points.


0

To get a detailed answer, you have to ask the question in more detail. basically: Distance between two points P(x1;y1) and Q(x2;y2) is given by:


0

For anyone having indexing errors with their own data while using the excellent answer from @JHuw, my problem was that my indexes did not align. Resetting the index of gdfA and gdfB solved my issues, maybe this can help you as well @Shakedk. import itertools from operator import itemgetter import geopandas as gpd import numpy as np import pandas as pd ...


0

This resource for ArcGIS 10 will give you all the information you need, but it's a little confusing if you aren't working on a stand-alone script. http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//001w00000009000000 You can also modify the processing extent for all geoprocessing tools while working in ArcMap by going to "Geoprocessing > ...


1

Assign all competitors an attribute and give it all the same value. Assign this same attribute with the same value to your subject property. Then you will be able to use hublines to connect each Competitors to the subject property using subject property as hub layer with and Competitors or Possible Competitors as Spoke Layer. You will then be able to measure ...


2

Geopandas GeoSeries has a method distance which uses Shapely to calculate distances: from shapely.geometry import Polygon, Point import geopandas t1 = Polygon([(4.338074,50.848677), (4.344961,50.833264), (4.366227,50.840809), (4.367945,50.852455), (4.346693,50.858306)]) t = geopandas.GeoSeries(t1) t.crs = {'init':'espg:4326'} t2 = geopandas.GeoSeries([...


1

Make sure you have disabled the setting in QMS to force OTF projection, and then set your project properties accordingly. Map rendering performance will degrade a bit (at least until reprojected tiles are cached), but it is totally worthwhile to work this way. See? Not a problem anymore:


0

This question was asked several times, always with a different nuance. The same, as there are many possible solutions, can be answered in several ways. The solution provided by @csk seems to me the best if you want to include the information in the existing Districts layer. In the links provided by @MichaelStimson there are also very good solutions. ...


Top 50 recent answers are included