Metadata-Version: 2.1
Name: PointInPolygon
Version: 1.0.2
Summary: This python package is used to check point inside/outside of polygon/multipolygon. It is supported polygon to array, convert multipolygon dataframe to polygon, find the min and max item in 2D array.
Home-page: https://github.com/Iceloof/PointInPolygon
Author: Hurin Hu
Author-email: hurin@live.ca
License: UNKNOWN
Description: # PointInPolygon
        
        [![Build Status](https://travis-ci.com/Iceloof/PointInPolygon.svg)](https://travis-ci.com/Iceloof/PointInPolygon)
        [![Coverage Status](https://coveralls.io/repos/github/Iceloof/PointInPolygon/badge.svg)](https://coveralls.io/github/Iceloof/PointInPolygon)
        [![PyPI](https://img.shields.io/pypi/v/PointInPolygon)](https://pypi.org/project/PointInPolygon/)
        [![PyPI - Downloads](https://img.shields.io/pypi/dm/PointInPolygon)](https://pypistats.org/packages/pointinpolygon)
        ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/PointInPolygon)
        ![PyPI - Wheel](https://img.shields.io/pypi/wheel/PointInPolygon)
        ![GitHub contributors](https://img.shields.io/github/contributors/Iceloof/PointInPolygon)
        ![GitHub issues](https://img.shields.io/github/issues-raw/Iceloof/PointInPolygon)
        ![GitHub Action](https://github.com/Iceloof/PointInPolygon/workflows/GitHub%20Action/badge.svg)
        ![GitHub](https://img.shields.io/github/license/Iceloof/PointInPolygon)
        
        This package is used to check point inside/outside of polygon/multipolygon. It is supported polygon to array, convert multipolygon dataframe to polygon, find the min and max item in 2D array.
        
        ## Install
        ```
        pip install PointInPolygon
        ```
        or
        ```
        pip install --upgrade PointInPolygon
        ```
        ## Usage
        - Import package
        ```
        import PointInPolygon as pnp
        ```
        - Geometry Polygon to Array (skip steps to simplify the data and reduce the size of array, if it is multipolygon, it needs to convert to polygon first)
        ```
        pnp.Geo2Array(geo, skip=0)
        ```
        - Convert df multipolygon to polygon (the column name should be geometry)
        ```
        pnp.MultiPolygon2Polygon(df)
        ```
        - Check point in polygon (list or 2D tuple)
        ```
        pnp.PointInPolygon(point, polygon)
        ```
        - Get min value from array based on index
        ```
        pnp.minValue(array, index)
        ```
        - Get max value from array based on index
        ```
        pnp.maxValue(array, index)
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
