-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ni1o1/0.1.3
0.1.3
- Loading branch information
Showing
20 changed files
with
945 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _advertisment: | ||
|
||
|
||
****************************** | ||
Billboard visual area | ||
****************************** | ||
|
||
Advertisment parameters | ||
-------------------------------------- | ||
|
||
To analyze billboard visual area, the parameter `ad_params` for the billboard should be defined. It has two forms:: | ||
|
||
#1. Given the coordinates of the two border points and height | ||
ad_params = {'point1': [139.711861, 35.552040], | ||
'point2': [139.713319, 35.553646],#1861,3646 | ||
'height': 50, | ||
} | ||
#2. Given the coordinates of brandCenter, orientation and height | ||
ad_params = {'orientation': 1.2806657381630058, | ||
'height': 10, | ||
'brandCenter': [139.71259, 35.552842999999996]} | ||
|
||
You can use `ad_to_gdf` to generate the GeoDataFrame for the billboard in order to visualize it. | ||
|
||
.. function:: pybdshadow.ad_to_gdf(ad_params,billboard_height = 10) | ||
|
||
Generate a GeoDataFrame from ad_params for visualization. | ||
|
||
**Parameters** | ||
ad_params : dict | ||
Parameters of advertisement. | ||
billboard_height : number | ||
The height of the billboard | ||
|
||
**Return** | ||
ad_gdf : GeoDataFrame | ||
advertisment GeoDataFrame | ||
|
||
visual area calculation | ||
-------------------------------------- | ||
|
||
.. function:: pybdshadow.ad_visualArea(ad_params, buildings=gpd.GeoDataFrame(), height='height') | ||
|
||
Calculate visual area for advertisement. | ||
|
||
**Parameters** | ||
ad_params : dict | ||
Parameters of advertisement. | ||
buildings : GeoDataFrame | ||
Buildings. coordinate system should be WGS84 | ||
height : string | ||
Column name of building height | ||
|
||
**Return** | ||
visualArea : GeoDataFrame | ||
Visual Area of the advertisement | ||
shadows : GeoDataFrame | ||
Building shadows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
.. _install: | ||
|
||
|
||
****************************** | ||
Installation and dependencies | ||
****************************** | ||
|
||
|
||
Installation | ||
-------------------------------------- | ||
|
||
|
||
| It is recommended to use `Python 3.7, 3.8, 3.9`. | ||
| `pybdshadow` can be installed by using `pip install`. Before installing `pybdshadow`, make sure that you have installed the available `geopandas` package: https://geopandas.org/en/stable/getting_started/install.html. | ||
| If you already have geopandas installed, run the following code directly from the command prompt to install `pybdshadow`: | ||
:: | ||
|
||
pip install pybdshadow | ||
|
||
Dependency | ||
-------------------------------------- | ||
`pybdshadow` depends on the following packages | ||
|
||
* `numpy` | ||
* `pandas` | ||
* `shapely` | ||
* `rtree` | ||
* `geopandas` | ||
* `matplotlib` | ||
* `suncalc` | ||
* `keplergl` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.