bast / polygons Goto Github PK
View Code? Open in Web Editor NEWFast points-in-polygon test and distances to polygons.
License: GNU General Public License v3.0
Fast points-in-polygon test and distances to polygons.
License: GNU General Public License v3.0
Excuse me, I'm sorry to bother you. There are some questions i would like to ask you during the operation of the existing program.
First, when viewing the distance from a point to a polygon, a point can only output the distance to one polygon. Is this output polygon the nearest polygon to this point?
Second, If the polygon mentioned above is the nearest polygon, can we know which polygon it is? How can we output the information for this polygon?(For example, the name or information of a school district)
Third, the program that estimates whether a point is in a polygon does not say which polygon it is in, so how can we get the name or information of the polygon?
Thank you for taking time out of your busy schedule to answer my questions. Wish you all the best in your work!
I really just need the code to compute inside/outside, and the distance from polygon. Rayon/Python dependencies are a burden to me, but I understand for others it's a crucial piece of the code. I suggest making those two dependencies (independently) optional.
This will hopefully reveal problems seen in #3.
Collecting some notes/reading material:
cant seem to get it to work with version 3.12. pip install is impossible.
Excuse me, I'm sorry to bother you.Last time I asked about boundary and polygon information, I wonder whether the code has been updated?
contains_points
-> points_are_inside
get_distances_edge
-> distances_to_nearest_edges
get_distances_vertex
-> distances_to_nearest_vertices
get_closest_vertices
-> nearest_vertices
Consider also merging distances_to_nearest_vertices
and nearest_vertices
to nearest_vertices
which returns both the indices and the distances since they are computed at the same time.
ERROR: Command errored out with exit status 4294967295:
command: 'c:\Users\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\\AppData\Local\Temp\pip-req-build-cvo_l3i0\setup.py'"'"'; file='"'"'C:\Users\\AppData\Local\Temp\pip-req-build-cvo_l3i0\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\AppData\Local\Temp\pip-record-cqk1526x\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\Users\anaconda3\Include\polygons'
cwd: C:\Users\AppData\Local\Temp\pip-req-build-cvo_l3i0
Complete output (14 lines):
c:\Users\anaconda3\lib\site-packages\setuptools\dist.py:454: UserWarning: Normalizing '0.0.0-alpha-1' to '0.0.0a1'
warnings.warn(tmpl.format(**locals()))
running install
running build
c:\Users\anaconda3\Scripts\cmake.exe -DCMAKE_BUILD_TYPE=release -DENABLE_OPENMP=True ..
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18363.
-- Found OpenMP_C: -openmp
-- Found OpenMP_CXX: -openmp
-- Found OpenMP: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users//AppData/Local/Temp/pip-req-build-cvo_l3i0/build_setup_py
make
Error while running Make
----------------------------------------
ERROR: Command errored out with exit status 4294967295: 'c:\Users\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\\AppData\Local\Temp\pip-req-build-cvo_l3i0\setup.py'"'"'; file='"'"'C:\Users\\AppData\Local\Temp\pip-req-build-cvo_l3i0\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\AppData\Local\Temp\pip-record-cqk1526x\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\Users\anaconda3\Include\polygons' Check the logs for full command output
Hi,
I can't install the library with Python 3.11. Do you plan to make it available?
Thank you,
Pablo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.