How can I select layer by location AND attributes in ArcMap? - geospatial

I have a dataset (i.e. a shapefile) containing spatial location data (coordinates) and elevation data as well as other attribute fields.
I want to select points which have at least 200m vertical separation (i.e. are at least 200m apart on the z-axis) AND are within 3km of each other.
The aim is to create a new shapefile with all points that have this relationship with 1 or more other points.
Im sure there is a solution to this problem (maybe not using arcmap at all?) but i just cant find it. any help would be greatly appreciated.
Chris

You are going to have much better luck asking this question in gis.stackexchange.com. Many more ESRI users/programmers there. As a matter of fact I bet you find your solution there without having to ask the question.

You can run the ArcGIS Near tool on all the points.
Then select by attribute points with Z values of >200m and distance values of <3000m.

Related

3D bounding box - is there a simple method for making one?

Is there a simple/quick way to find out the dimensions of a 3D axis aligned bounding box for an item with rotations in the <x,y,z> axes? I know that in math there are different methods/equations to come up with the same answer for a problem and I've previously in the past explained with bare bones information about a method that worked for me, that I probably didn't explain well.
I also know that there are (downloadable)functions available for some languages like java and python to help solve/tackle parts of the math. Though that might not help those that want to understand those different methods better or might not have access to those particular functions for the language they are using.
So if a person has the following information:
The item center point coordinate in the x,y,z
The item x,y,z size
Along with the x,y,z rotation(s)
What would be the easiest approach with a person knowing that information, while either using or not using the item center point, matrix/matrices or cos and sin. Though an approach that would also be compact enough to take up the least amount of memory usage.

Methodology to identity any overlapping/duplicate Geolocation POIs in Python

I'm trying to build a map for to show spending. Our vendor data is not entirely clean and we could have 5 or 6 definitions of the same place. We also have hierarcial POI issues also (think gives an entire shopping strip geometry instead of individual store). I'd like to know if there are any common algorithms to identity duplicates at the geometry object level.
My data are in Geopandas Dataframes with a 2-D polygon to represent a place, and other meta data (i.e. store name, category, etc.). Sometimes it will come with an address but not always and not a very consistent postal format.
I'm working in Python specifically, but open to any suggestions, not exactly limited to Python. Thank you in advance for any help or suggestions.

Finding all geohashes within two bounding coordinates

I have coordinates, which are assigned a corresponding geohash in my database. Now I want to retrieve all of the coordinates within two bounding coordinates (top right and top left corner). How can I do that properly?
I tried getting the geohash that fits both of those bounding coordinates, but this solution does not work when they are in completely different regions of the world (so they are not sharing anything in common).
Is there a better way to do that?
Thanks for your help
Unfortunately, this isn't something you can do out-of-the-box with datastore / App engine. (There are no built in spatial queries.)
For early prototyping, etc., you can do it the hard way - retrieve all the rows, and discard the ones not meeting your query in code. Obviously, probably not viable with real production data.
See related question Query for Entities Nearby with Geopt for some possible production solutions.

Fusion Tables: Polygon not displayed as of certain zoom level

I'm working on a map that shows different population statistics on a rather granular level in Berlin (447 sub-districts).
https://www.google.com/fusiontables/data?docid=1tIAPGaYK1iEWWLANQOupkAqCcPhVauMjdPS1qOs#map:id=3
For some reason, a small number of polygons (3) is not displayed as soon as you zoom into the map (12 or higher).
As the polygons are displayed at the level before, they should have the proper coordinates. I first thought the shapefiles (kmls provided by the local statistics authority) might be buggy, but that does not seem to be the case.
Can anybody explain to me why this happens?
Thank you very much!
Michael
There are two possibilities that I can think of:
it is a complexity problem or a winding direction issue with the polygon. Thread on Fusion Tables Users Group discussing this issue.
it is a complexity issue with the number of "features" on the tile. See Limits in the documentation, it used to be more clearly defined.
Reversing the winding direction of two of the problem polygons seems to fix the issue:
https://www.google.com/fusiontables/DataSource?snapid=S787935DQC4

How to extract point coordinates from VTK Points

I use a library that gives me at the end the vtkpoints. Now I would like to extract points
from them. But all the method available from VTKPoints require point id, which i do not know.
Is there a way of doing it?
I can't offer a definitive answer, since the VTKPoints documentation doesn't discuss the values of the point ids and I don't have any experience with this. However, all of the examples I have seen just use integers in the range [0..NumberOfPoints-1] as the point ids, so it would seem that what you are doing is perfectly reasonable (note, however, that your comment I am using the indexes: 0..NumberOfPoints should be 0..NumberOfPoints-1).
The points are definitely just stored in a vector-like container with sequential indexing from 0 to GetNumberOfPoints()-1.

Resources