spatial-polars 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/PKG-INFO +1 -1
- spatial_polars-0.2.4/docs/blog/index.md +6 -0
- spatial_polars-0.2.4/docs/blog/posts/Hey look, a blog.md +59 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/spatial_filter.md +0 -4
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/spatial_join.md +1 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/index.md +4 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/spatial_join.py +7 -6
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/mkdocs.yml +6 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/pyproject.toml +1 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/__init__.py +1 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/spatialexpr.py +2 -2
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/spatialframe.py +6 -6
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/uv.lock +1 -1
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/.github/workflows/publish_to_pypi.yml +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/.gitignore +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/.python-version +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/LICENSE +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/README.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/SpatialExpr.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/SpatialFrame.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/distance_to_arch.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/geometry_column_and_scalar_geometry_input_expressions.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/group_by_context_expressions.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/group_by_county.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/lake_boundary.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/single_geometry_column_input_expressions.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/spatial_filter.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/two_geometry_column_input_expressions.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/reading_data.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/reprojection.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/starting_from_a_polars_df.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/pathlayer.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/pathlayer.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/polygonlayer.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/polygonlayer.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/scatterplotlayer.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/scatterplotlayer.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/viz.html +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/viz.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/writing_data.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/io.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/geodatasets_note.md +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/geometry_column_and_scalar_geometry_input_expressions.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/group_by_context_expressions.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/pathlayer.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/polygonlayer.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/reprojection.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/scatterplotlayer.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/single_geometry_column_input_expressions.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/spatial_filter.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/starting_from_a_polars_df.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/two_geometry_column_input_expressions.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/viz.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/writing_data.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/_utils.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/_vendor.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/io.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/src/spatial_polars/spatialseries.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/__init__.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/fixtures.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/arch_mound.fgb +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/arch_mound.geojson +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/arch_mound.geojsonl +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/arch_mound.parquet +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/arch_mound2.parquet +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_data/test_data.gpkg +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_expr.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_from_polars.py +0 -0
- {spatial_polars-0.2.2 → spatial_polars-0.2.4}/tests/test_io.py +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
draft: false
|
|
3
|
+
date: 2025-11-21
|
|
4
|
+
categories:
|
|
5
|
+
- pyogrio
|
|
6
|
+
- shapely
|
|
7
|
+
- lonboard
|
|
8
|
+
- spatial bench
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Hey look, a spatial polars blog! (or: why I made this)
|
|
12
|
+
I've been a huge fan of using polars for data engineering work since I started using it in early 2023. I had read about how polars was faster than pandas (1) for various operations, and figured it was worth a try. Like many polars users who have used pandas previously, I quickly fell in love with it's API, strong typing, and that it allows nulls in all of it's series no matter the datatype. The funny part is, I'm not a programmer or data engineer by schooling, I'm actually a geography dork who like solving problems with data(2). I've found over the past 20 something years, many problems in the data analytics world can benefit greatly from a geospatial data/processes, and many problems that are encountered in the traditional GIS/geospatial space can greatly benefit from the tooling/ideas that exist from outside the GIS space. That being said, polars has no native support for reading geospatial data formats. At work I have written functions that read from some ESRI formats and produce polars dataframes, but when I'm at home working with spatial data for [personal projects](https://huggingface.co/spaces/ATL2001/hiking_club) I didn't have a seamless way to get data from formats like GPX or geopackages into polars.
|
|
13
|
+
{ .annotate }
|
|
14
|
+
|
|
15
|
+
1. I had been using :panda:s daily for 6 ish years at this point
|
|
16
|
+
2. I started programming out of the frustration that the tools I wanted to use didn't exist (or perhaps I was just looking in the wrong places for the tools I wanted :thinking:)
|
|
17
|
+
|
|
18
|
+
## IO plugins arrive
|
|
19
|
+
When expressions plugins for polars were introduced, I built [a simple expression plugin](https://github.com/ATL2001/polars_uuid4)(1), so when [polars 1.22.0](https://github.com/pola-rs/polars/releases/tag/py-1.22.0) came out with support for [IO plugins](https://docs.pola.rs/user-guide/plugins/io_plugins/), I was immediately interested in seeing how the guts of the IO plugins worked. The IO plugins section of the user guide made it very easy to understand what was needed. I was aware of [pyogrio](https://pyogrio.readthedocs.io/en/latest/index.html) and how it was able to [produce a pyarrow RecordBatchReader](https://pyogrio.readthedocs.io/en/latest/api.html#pyogrio.open_arrow), and looking at the IO plugin guide it was obvious to me that they were a perfect fit for one another. I learn things best by doing, so I decided I wanted to see if I could take pyogrio and feed the data into the polars IO plugin. It took me a while to settle on how to structure the spatial data in the dataframes to make it easy to work with, performant, not require more RAM than necessary, and be able to work with custom coordinate systems, not just ones with a well known SRID(2). What I settled on was using a polars struct column containing two fields, one to store a geometry as WKB, and another that contains the coordinate refrence system's WKT stored in the field as a categorical which makes the RAM for the CRS essentially negligible. I proceeded to wire up the scan_spatial function in spatial polars and was very pleased at the speed at which I was able to read from all sorts of geospatial formats into a polars dataframe.
|
|
20
|
+
{ .annotate }
|
|
21
|
+
|
|
22
|
+
1. This never made it to the python package index, someday I may spruce it up and create a package from it.
|
|
23
|
+
2. I've encountered custom coordinate systems regularly in the past 2x years working with spatial data.
|
|
24
|
+
|
|
25
|
+
## Spatial data deserves Spatial stuff
|
|
26
|
+
|
|
27
|
+
Now that I had created a way to scan a spatial source into a polars lazyframe, I needed to have a way to use the spatial data as it was structured in the frame. After all, reading the data is only half the battle(1), if I couldn't process and display the data, it had limited use. For operations, I knew I could rely on [shapely's numpy ufuncs](https://shapely.readthedocs.io/en/stable/index.html#what-is-a-ufunc) to come to the rescue to process spatial data quickly(2). For visualizing the data, I turned to [lonboard](https://developmentseed.org/lonboard/latest/) because of it's ability to render large volumes of data dramatically faster than any other map viewer I've ever worked with.
|
|
28
|
+
{ .annotate }
|
|
29
|
+
|
|
30
|
+
1. ...or something like that...
|
|
31
|
+
2. The vectorized functions in shapely have fundamentally changed the way I approach processing spatial data :rocket:
|
|
32
|
+
|
|
33
|
+
## So why make a new package and not contribute to something else?
|
|
34
|
+
|
|
35
|
+
### Geopolars
|
|
36
|
+
[Geopolars](https://geopolars.org/latest/) is blocked, although after I started working on the code for this project, the polars team has stated ["We want to do this. We hope to get to this soon™"](https://github.com/pola-rs/polars/issues/9112#issuecomment-2879650887) which is totally awesome, and when that happens, I'm hopeful that I'll be able to contribute to that project, because I think it has a lot more potential than what I've got going here.
|
|
37
|
+
|
|
38
|
+
### Polars ST
|
|
39
|
+
[Polars ST](https://oreilles.github.io/polars-st/) is a working alternative to what I've created here, and it looks pretty nice:thumbsup:! However the use of EWKB doesn't work for me and my desire to support coordinate reference systems which don't have an SRID, and I didn't feel that coming into a new project and saying something along the lines of "this is nice! can we restructure everything so it fits an edge case that I may run into someday?".
|
|
40
|
+
|
|
41
|
+
### I wanted to learn something new
|
|
42
|
+
Before this project I had never put anything on the python package index, and all this fancy github CI/CD stuff was totally new to me, and I really wanted to learn more about using [mkdocs](https://www.mkdocs.org)/[mkdocs-material](https://squidfunk.github.io/mkdocs-material) for creating documentation like this. I figured what better way to learn it all than by doing it.
|
|
43
|
+
|
|
44
|
+
## Why now?
|
|
45
|
+
The funny part is that I started writing this blog article almost 5 months ago, but it simply hasnt been high on my todo list. Then, the apache sedona people released [sedonadb](https://sedona.apache.org/sedonadb/latest), a single node database engine that supports geospatial data. At the same time they also released [spatialbench](https://sedona.apache.org/spatialbench), a tool for assesing spatial query performance of various engines. I was absolutely PUMPED to see what they had come up with in spatialbench. Don't get me wrong, the query engine, sedonadb is pretty neat, it is SUPER fast :rocket: (1) but I still prefer the expressions api provided by polars/spatial polars(2)(3). Spatialbench includes benchmarks of the same queries executed on the same data with SedonaDB, DuckDB, and GeoPandas. While building spatial polars, I kept second guessing myself about the speed I was seeing comparing the results of the operations to geopandas (4). I kept thinking to myself, "it'd be really great if we had some sort of benchmarking stuff similar to [TPC-H](https://www.tpc.org/tpch) or [TPC-DS](https://www.tpc.org/tpcds) for comparing spatial queries" and then poof, there it was! They were thinking the same thing as I was, AND THEY DID IT! :hands-raised:. Now that we had a set of queries to compare the engines I set forth to see where spatial polars stacked up. I had to make a few changes to spatial polars along the way (specifically around generating convex hulls from multiple geometries resulting from a group_by, and I didn't have any sort of KNN join capabilities in spatial polars before trying to create [Q12](https://sedona.apache.org/spatialbench/queries/#q12-find-five-nearest-buildings-to-each-trip-pickup-location-using-knn-join) (5)), But I've got all 12 queries built using spatial polars, and I'm currently working with the maintainers of spatial bench to add the queries using spatial polars :smile:. So I figured what better way to celebrate all this stuff than finally getting around to finishing up that introductory blog article! :tada:
|
|
46
|
+
{ .annotate }
|
|
47
|
+
|
|
48
|
+
1. A lot faster than what spatial polars offers, or ever will
|
|
49
|
+
2. As a developer/analyst/data engineer, I'm much more productive chaining out polars contexts/epressions than I ever was at composing SQL (1)
|
|
50
|
+
{ .annotate }
|
|
51
|
+
|
|
52
|
+
1. I wrote SQL successfuly for years, but since I was introduced to polars I've never looked back.
|
|
53
|
+
|
|
54
|
+
3. If you're looking for all out speed on a single node for geospatial queries, you're better off over there than here.
|
|
55
|
+
4. I've used geopandas a fair bit, but I certainly don't consider myself an authority, so I always had in the back of my mind that perhaps why I was seeing some dramatically faster results on some operations using spatial polars was just because I was doing GeoPandas wrong. :shrug:
|
|
56
|
+
5. I may have cheated on that KNN join, what I created only considers centroids of features... I'm not sure if the other pacakges consider the entire polygons or not.
|
|
57
|
+
|
|
58
|
+
## The Future
|
|
59
|
+
I don't honestly think this is a long term project. I'm very impressed by the geoarrow project, and think that when the polars extensions are released to the world, and geopolars can really get going, I'll try to help out there and make that project a success. Although what I've created here is useful, I believe geopolars has a lot more potential than spatial polars, and I certainly don't have any interest in fragmenting the ecosystem more than I've potentially already done.
|
|
@@ -21,10 +21,6 @@ Spatial polars expressions which produce a boolean series can be used in polars
|
|
|
21
21
|
8. Make a polygonlayer from our filtered dataframe
|
|
22
22
|
9. Add our filtered polygonlayer to our map
|
|
23
23
|
|
|
24
|
-
```python exec="on" result="text"
|
|
25
|
-
--8<-- "spatial_filter.py"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
24
|
<div class="map">
|
|
29
25
|
<iframe src="../spatial_filter.html" width="800" height="504"></iframe>
|
|
30
26
|
</div>
|
|
@@ -12,7 +12,7 @@ Spatial polars can perform a [spatial join](../SpatialFrame.md#spatial_polars.sp
|
|
|
12
12
|
|
|
13
13
|
To demonstrate how we can join data together from two dataframes spatially using spatial polars, we'll join some lake polygons with some administrative boundaries to see which lakes are in which countries.
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```python title="Spatial Join" hl_lines="21-26"
|
|
16
16
|
--8<-- "spatial_join.py"
|
|
17
17
|
```
|
|
18
18
|
|
|
@@ -15,11 +15,14 @@ pip install spatial-polars
|
|
|
15
15
|
```title="Install with dependencies for displaying data on a lonboard map"
|
|
16
16
|
pip install spatial-polars[lonboard]
|
|
17
17
|
```
|
|
18
|
+
```title="Install with dependencies to run KNN joins (installs scipy)"
|
|
19
|
+
pip install spatial-polars[knn]
|
|
20
|
+
```
|
|
18
21
|
```title="Install with dependencies to run examples in this guide (installs geodatasets)"
|
|
19
22
|
pip install spatial-polars[examples]
|
|
20
23
|
```
|
|
21
24
|
```title="Install with all optional dependencies"
|
|
22
|
-
pip install spatial-polars[lonboard, examples]
|
|
25
|
+
pip install spatial-polars[lonboard, examples, knn]
|
|
23
26
|
```
|
|
24
27
|
|
|
25
28
|
## Lazily access geospatial data
|
|
@@ -2,21 +2,22 @@ import polars as pl
|
|
|
2
2
|
|
|
3
3
|
from spatial_polars import scan_spatial
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
lake_lf = (
|
|
6
6
|
scan_spatial("https://naciscdn.org/naturalearth/110m/physical/ne_110m_lakes.zip")
|
|
7
7
|
.select("name", "geometry")
|
|
8
|
-
.collect(engine="streaming")
|
|
9
8
|
) # (1)!
|
|
10
|
-
print(f"There are {len(lake_df)} rows in lake_df")
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
boundary_lf = (
|
|
13
11
|
scan_spatial(
|
|
14
|
-
"https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip"
|
|
12
|
+
"https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip",
|
|
15
13
|
)
|
|
16
14
|
.select("SOVEREIGNT", "geometry")
|
|
17
|
-
.collect(engine="streaming")
|
|
18
15
|
) # (2)!
|
|
19
16
|
|
|
17
|
+
lake_df, boundary_df = pl.collect_all([lake_lf, boundary_lf])
|
|
18
|
+
print(f"There are {len(lake_df)} rows in lake_df")
|
|
19
|
+
print(f"There are {len(boundary_df)} rows in boundary_df")
|
|
20
|
+
|
|
20
21
|
lake_boundary_df = (
|
|
21
22
|
lake_df.spatial.join( # (3)!
|
|
22
23
|
other=boundary_df, # (4)!
|
|
@@ -25,7 +25,10 @@ repo_url: https://github.com/ATL2001/spatial_polars
|
|
|
25
25
|
|
|
26
26
|
plugins:
|
|
27
27
|
- search
|
|
28
|
-
- autorefs
|
|
28
|
+
- autorefs:
|
|
29
|
+
resolve_closest: true
|
|
30
|
+
- blog:
|
|
31
|
+
categories: true
|
|
29
32
|
- mkdocstrings:
|
|
30
33
|
handlers:
|
|
31
34
|
python:
|
|
@@ -85,6 +88,8 @@ nav:
|
|
|
85
88
|
- io.md
|
|
86
89
|
- SpatialFrame.md
|
|
87
90
|
- SpatialExpr.md
|
|
91
|
+
- Blog:
|
|
92
|
+
- blog/index.md
|
|
88
93
|
|
|
89
94
|
exclude_docs:
|
|
90
95
|
snippets
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "spatial-polars"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4" # dont forget __init__.py and uv lock
|
|
4
4
|
description = "A package that extends polars for working with geospatial data."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -2163,7 +2163,7 @@ class LinestringOperations:
|
|
|
2163
2163
|
if other is not None:
|
|
2164
2164
|
return self._expr.map_batches(
|
|
2165
2165
|
lambda s: s.spatial.line_locate_point(other, normalized=normalized),
|
|
2166
|
-
return_dtype=
|
|
2166
|
+
return_dtype=pl.Float64,
|
|
2167
2167
|
is_elementwise=True,
|
|
2168
2168
|
)
|
|
2169
2169
|
# expect struct with two geometries.
|
|
@@ -2172,7 +2172,7 @@ class LinestringOperations:
|
|
|
2172
2172
|
combined.struct[1].spatial.to_shapely_array(),
|
|
2173
2173
|
normalized=normalized,
|
|
2174
2174
|
),
|
|
2175
|
-
return_dtype=
|
|
2175
|
+
return_dtype=pl.Float64,
|
|
2176
2176
|
is_elementwise=True,
|
|
2177
2177
|
)
|
|
2178
2178
|
|
|
@@ -1016,14 +1016,14 @@ class SpatialFrame:
|
|
|
1016
1016
|
)
|
|
1017
1017
|
validate_width_and_radius_input(self._df, line_width)
|
|
1018
1018
|
validate_width_and_radius_input(self._df, radius)
|
|
1019
|
-
fill_color = self._make_color_array(
|
|
1019
|
+
fill_color = fill_color or self._make_color_array(
|
|
1020
1020
|
fill_cmap_col,
|
|
1021
1021
|
fill_cmap_type,
|
|
1022
1022
|
fill_cmap,
|
|
1023
1023
|
fill_alpha,
|
|
1024
1024
|
normalize_cmap_col=fill_normalize_cmap_col,
|
|
1025
1025
|
)
|
|
1026
|
-
line_color = self._make_color_array(
|
|
1026
|
+
line_color = line_color or self._make_color_array(
|
|
1027
1027
|
line_cmap_col,
|
|
1028
1028
|
line_cmap_type,
|
|
1029
1029
|
line_cmap,
|
|
@@ -1178,8 +1178,7 @@ class SpatialFrame:
|
|
|
1178
1178
|
cmap_type,
|
|
1179
1179
|
cmap,
|
|
1180
1180
|
)
|
|
1181
|
-
|
|
1182
|
-
color = self._make_color_array(
|
|
1181
|
+
color = color or self._make_color_array(
|
|
1183
1182
|
cmap_col,
|
|
1184
1183
|
cmap_type,
|
|
1185
1184
|
cmap,
|
|
@@ -1187,6 +1186,7 @@ class SpatialFrame:
|
|
|
1187
1186
|
normalize_cmap_col=normalize_cmap_col,
|
|
1188
1187
|
)
|
|
1189
1188
|
|
|
1189
|
+
validate_width_and_radius_input(self._df, width)
|
|
1190
1190
|
if isinstance(width, str):
|
|
1191
1191
|
width = self._df.select(c(width)).to_series().to_numpy()
|
|
1192
1192
|
|
|
@@ -1371,14 +1371,14 @@ class SpatialFrame:
|
|
|
1371
1371
|
)
|
|
1372
1372
|
validate_width_and_radius_input(self._df, line_width)
|
|
1373
1373
|
|
|
1374
|
-
fill_color = self._make_color_array(
|
|
1374
|
+
fill_color = fill_color or self._make_color_array(
|
|
1375
1375
|
fill_cmap_col,
|
|
1376
1376
|
fill_cmap_type,
|
|
1377
1377
|
fill_cmap,
|
|
1378
1378
|
fill_alpha,
|
|
1379
1379
|
normalize_cmap_col=fill_normalize_cmap_col,
|
|
1380
1380
|
)
|
|
1381
|
-
line_color = self._make_color_array(
|
|
1381
|
+
line_color = line_color or self._make_color_array(
|
|
1382
1382
|
line_cmap_col,
|
|
1383
1383
|
line_cmap_type,
|
|
1384
1384
|
line_cmap,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/distance_to_arch.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/expressions/group_by_county.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/scatterplotlayer.html
RENAMED
|
File without changes
|
{spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/examples/visualization/scatterplotlayer.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spatial_polars-0.2.2 → spatial_polars-0.2.4}/docs/snippets/two_geometry_column_input_expressions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|