Skip to content

Commit f05bf50

Browse files
committed
required_fixes
Signed-off-by: Paweł Mróz <[email protected]>
1 parent 776f097 commit f05bf50

File tree

10 files changed

+161
-264
lines changed

10 files changed

+161
-264
lines changed

MANIFEST.in

-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ include README.md
99
include setup.cfg
1010
include *.gitignore
1111

12-
global-exclude geoFrame.py geoSeries.py
13-
1412
prune docs/build

docs/source/geoFrame.rst docs/source/geo_frame.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ of an IdaGeoDataFrame.
1414

1515
Open an IdaGeoDataFrame
1616
=======================
17-
.. currentmodule:: nzpyida.geoFrame
17+
.. currentmodule:: nzpyida.geo_frame
1818

1919
.. autoclass:: IdaGeoDataFrame
2020

docs/source/geoSeries.rst docs/source/geo_series.rst

+1-13
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Netezza has three basic classes of geometric objects, which are Netezza spatial
1717

1818
Open an IdaGeoSeries
1919
====================
20-
.. currentmodule:: nzpyida.geoSeries
20+
.. currentmodule:: nzpyida.geo_series
2121

2222
.. autoclass:: IdaGeoSeries
2323

@@ -75,10 +75,6 @@ Exterior Ring
7575
-------------
7676
.. automethod:: IdaGeoSeries.exterior_ring
7777

78-
Generalize
79-
----------
80-
.. automethod:: IdaGeoSeries.generalize
81-
8278
Geometry Type
8379
-------------
8480
.. automethod:: IdaGeoSeries.geometry_type
@@ -127,10 +123,6 @@ MBR
127123
---
128124
.. automethod:: IdaGeoSeries.mbr
129125

130-
Mid Point
131-
---------
132-
.. automethod:: IdaGeoSeries.mid_point
133-
134126
min M
135127
-----
136128
.. automethod:: IdaGeoSeries.min_m
@@ -155,10 +147,6 @@ num Interior Ring
155147
-----------------
156148
.. automethod:: IdaGeoSeries.num_interior_ring
157149

158-
num Linestrings
159-
---------------
160-
.. automethod:: IdaGeoSeries.num_line_strings
161-
162150
num Points
163151
----------
164152
.. automethod:: IdaGeoSeries.num_points

docs/source/geospatial.rst

+11-10
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ __ https://pypi.python.org/pypi/nzpyida
3333
How the spatial functions work
3434
------------------------------
3535

36-
The nzpyida-spatial functions translate geopandas-like syntax into SQL and uses a middleware API (pypyodbc/JayDeBeApi)
37-
to send it to an ODBC or JDBC-connected database for execution.
36+
The nzpyida-spatial functions translate geopandas-like syntax into SQL and uses a middleware API (nzpy/pypyodbc/JayDeBeApi)
37+
to send it to an nzpy, ODBC or JDBC-connected database for execution.
3838
The results are fetched and formatted into the corresponding data structure, for example, a GeoPandas.GeoDataframe.
3939

4040
The following scenario illustrates how nzpyida works.
@@ -50,12 +50,13 @@ IdaDataBase object, because it holds the connection.
5050
Now let us compute the area of the counties in the GEO_COUNTY table:
5151

5252
>>> idadf['area'] = idadf['SHAPE'].area()
53-
OBJECTID NAME SHAPE area
54-
1 Wilbarger MULTIPOLYGON (((-99.4756582604 33.8340108094, ... 0.247254
55-
2 Austin MULTIPOLYGON (((-96.6219873342 30.0442882117, ... 0.162639
56-
3 Logan MULTIPOLYGON (((-99.4497297204 46.6316377481, ... 0.306589
57-
4 La Plata MULTIPOLYGON (((-107.4817473750 37.0000108736,... 0.447591
58-
5 Randolph MULTIPOLYGON (((-91.2589262966 36.2578866492, ... 0.170844
53+
>>> idadf[["NAME", 'area']]
54+
NAME area
55+
Wilbarger 0.247254
56+
Austin 0.162639
57+
Logan 0.306589
58+
La Plata 0.447591
59+
Randolph 0.170844
5960

6061
The result of the area will be stored as a new column 'area' in the Ida geo data frame.
6162

@@ -71,5 +72,5 @@ Here is the SQL request that was executed for this example:
7172
It's as simple as that!
7273

7374
.. toctree::
74-
geoFrame.rst
75-
geoSeries.rst
75+
geo_frame.rst
76+
geo_series.rst

nzpyida/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
from .base import IdaDataBase
1919
from .frame import IdaDataFrame
2020
from .series import IdaSeries
21-
from .geoFrame import IdaGeoDataFrame, IdaGeoSeries
21+
from .geo_frame import IdaGeoDataFrame
22+
from .geo_series import IdaGeoSeries
2223

2324

2425
__all__ = ['sampledata', 'tests', 'aggregation',

nzpyida/geoFrame.py nzpyida/geo_frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import nzpyida
2929
from nzpyida.frame import IdaDataFrame
30-
from nzpyida.geoSeries import IdaGeoSeries
30+
from nzpyida.geo_series import IdaGeoSeries
3131
from nzpyida.exceptions import IdaGeoDataFrameError
3232
from nzpy.core import ProgrammingError
3333

0 commit comments

Comments
 (0)