어떤 점에 포함된 영역을 찾는 Geopandas (Geopandas to locate which area does a point contains)


문제 설명

어떤 점에 포함된 영역을 찾는 Geopandas (Geopandas to locate which area does a point contains)

그래서 도시의 모든 지점을 포함하는 하나의 지오데이터프레임 파일이 있고 폴리곤 파일이 포함된 다른 지오데이터프레임 파일이 있습니다. 이것으로 sjoin을 사용하지 않고 점이 폴리곤 내에 있는지 확인할 수 있는 다른 방법이 있습니까? 이 함수를 사용할 때마다 이 오류가 항상 나타납니다.

'AttributeError: 'BlockManager' 개체에 'dtype' 속성이 없습니다.'


참조 솔루션

방법 1:

You can check if your point is within a polygon: point.within(polygon)

(by user494619Ashim Pokharel)

참조 문서

  1. Geopandas to locate which area does a point contains (CC BY‑SA 2.5/3.0/4.0)

#geopandas






관련 질문

{'northeast': {'lat':}, 'southwest': {'lat': }}(Google 지도) Python에서 다각형을 만드는 방법 (How to create Polygon out of {'northeast': {'lat':}, 'southwest': {'lat': }} (google maps) Python)

모양이 교차하는 다각형의 수를 어떻게 계산합니까? (How can I count the number of polygons a shape intersects?)

GeoPandas를 사용하여 Python에서 GRASS 벡터 데이터 소스 읽기 (Read GRASS vector datasources in Python using GeoPandas)

어떤 점에 포함된 영역을 찾는 Geopandas (Geopandas to locate which area does a point contains)

Geopandas Dataframe이 인덱스 오류를 반환하는 이유 (Why is the Geopandas Dataframe returning an Index Error)

여러 선스트링으로 구성된 shapefile을 분할하는 방법 (How to split a shapefile compose of multiple linestrings)

LineString 유형의 개체는 JSON 직렬화가 불가능합니다. (Object of type LineString is not JSON serializable)

큰 geotif 파일 열기 (Open large geotif file)

점이 있는 geopandas 데이터 프레임에서 다각형 만들기 (Creating a polygon from a geopandas dataframe with points)

여러 소스 및 대상 노드에 대한 Networkx 최단 경로 분석 (Networkx Shortest Path Analysis on multiple source and target nodes)

위도/경도 포인트가 다각형 내에 있는지 어떻게 확인합니까? (How do I determine if a lat/long point is within a polygon?)

Geodataframe.explore() 오류: __init__() 누락된 1개의 필수 위치 인수: '위치' (Geodataframe.explore() error: __init__() missing 1 required positional argument: 'location')







코멘트