3
®?d]¢  ã               @   s<  d dl mZ d dlZd dlmZmZmZ ed(ƒZed)dƒZed*dƒZ	ed+dƒZ
ed/ƒZed3ƒZed8ƒZd	d
„ Zdd„ Zdd„ Zdd„ Zedk�r8d dl mZ d dlZejdd9dd�Zejdƒ eejƒZejedd…d f edd…df dƒ eeddƒ ee	ddƒ ee
ddƒ eedƒ eedƒ eedƒ ejƒ  dS ):é    )ÚasarrayN)ÚPointÚ
LineStringÚPolygonç      ð?g      ø?g333333ó?ç      à?çÍÌÌÌÌÌü?c             C   s   t j| jg| jg||d� d S )N)Úlabel)ÚpylabÚplotÚxÚy)ÚgÚoÚl© r   ú9/tmp/pip-build-op5p2y5_/shapely/shapely/examples/geoms.pyÚ
plot_point   s    r   c             C   s2   t | ƒ}tj|d d …df |d d …df |ƒ d S )Nr   é   )r   r
   r   )r   r   Úar   r   r   Ú	plot_line   s    r   c             C   s8   t | jƒ}tj|d d …df |d d …df |dd� d S )Nr   r   g      à?)Úalpha)r   Úexteriorr
   Úfill)r   r   r   r   r   r   Úfill_polygon   s    
r   c             C   s   x| j D ]} t| |ƒ qW d S )N)Zgeomsr   )r   r   r   r   r   Úfill_multipolygon   s    r   Ú__main__r   é   é   é–   )ZfigsizeZdpiZtightÚcÚroÚbZgoZboÚdÚrr   ç      ð¿ç      ð¿©r%   r&   ç      ð¿©r(   r   ©r   r   ç      ð¿©r   r+   )r'   r)   r*   r,   g      ø¿g      ð¿g      à¿ç      à¿©r-   r   ©r   r   )r.   r/   ç      ð¿©r   r0   ©r   r   )r1   r2   çÍÌÌÌÌÌü¿ç333333ó¿©r3   r4   ©r   r   )r5   r6   )r   r   )Znumpyr   r
   Zshapely.geometryr   r   r   ZpolygonZpoint_rZpoint_gZpoint_bZline_rZline_gZline_br   r   r   r   Ú__name__ÚfigureZfigZaxisr   r   r   Úshowr   r   r   r   Ú<module>   s6   





&


