Skip to main content

Karta is a simple and fast framework for spatial analysis in Python.

Create vector geometries:

point = Point((-130.0, 52.0), crs=LonLatWGS84)

line = read_geojson("linedata.json")

polygon = Polygon([(-515005.78, -1301130.53),
                   (-579174.89, -1282271.94),
                   (-542977.83, -1221147.82),
                   (-437864.05, -1251641.55),
                   (-438160.72, -1252421.48),
                   (-437961.28, -1285314.00)],
                   crs=NSIDCNorth)

Perform simple queries:

point2 = Point((-25.0, 48.0), crs=LonLatWGS84)
point.distance(point2)          # Distance in geographical units

line.intersects(polygon)        # True or False

ch = polygon.convex_hull()      # Returns a new polygon
ch.to_shapefile("poly.shp")

Work with raster data:

grid = read_gtiff("landsat_scene.tif")  # Leverages GDAL

grid.profile(line)              # Collect data along a line

grid.resample(500.0, 500.0)     # Return a grid resampled at a new resolution

Karta works with Python 2.7 and Python 3.3+. Suggestions, bug reports, test cases, and pull requests are welcome.

DOCUMENTATION

See the online manual, the tutorial, or read the API documentation.

The manual can also be built offline using Sphinx by running make from the doc/ subdirectory. The documentation is built from source code docstrings and the example IPython notebooks, which are also reproduced in the Wiki. Building the documentation requires Sphinx, alabaster and numpydoc.

DEPENDENCIES

Required

  • Python 2.7 or Python 3.3+

  • numpy

  • pyshp

  • pyproj

  • C-compiler

Metadata

Release files for karta 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for karta 0.5.2
File Size Uploaded
karta-0.5.2.tar.gz 335.5 kB Details

Release files / karta-0.5.2.tar.gz

Download URL karta-0.5.2.tar.gz
Size 335.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e77d48a2158071bae784980f2e0aa0ecb7903080526d8fbefc5fdf96e97fc3e7
BLAKE2b-256 checksum
How to use checksums
4bcda59447d5fc6e439e26327152d0b72f82455c598a616c89da3fc35331ee2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.1

1 release file

0.9.0

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.4

1 release file

0.5.3

1 release file

This release

0.5.2 This release

1 release file

0.5.1

1 release file

0.5.0

2 release files

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2.4

1 release file

0.4.2.3

1 release file

0.4.2.2

1 release file

0.4.2.1

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0.2

1 release file

0.4.0.1

1 release file

0.4.0

2 release files

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0.2

1 release file

0.1.0.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page