Skip to main content

Geospatial analysis in Python

Project description

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.6+ or Python 3.3+

  • numpy

  • pyshp

  • pyproj

  • C-compiler

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

karta-0.5.0.tar.gz (266.7 kB view details)

Uploaded Source

karta-0.5.0.linux-x86_64.tar.gz (650.7 kB view details)

Uploaded Source

File details

Details for the file karta-0.5.0.tar.gz.

File metadata

  • Download URL: karta-0.5.0.tar.gz
  • Upload date:
  • Size: 266.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for karta-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b38d42ab49ab559ebd57522ee0e077a63503bde7d28a484e41ab9a1eb527c784
MD5 b9c3292c64682d5c0d55d81503d9d881
BLAKE2b-256 a1f2ec6e8c02f41b587b279ff2ac080ceb1ea04c898959ae95e7917150e9e717

See more details on using hashes here.

File details

Details for the file karta-0.5.0.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for karta-0.5.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 231e734ffc58496538fa34dd01203196c8f8ccaff77713453597bd2f35016de5
MD5 df8b1b5490bb2beacbac291c85aa8c68
BLAKE2b-256 b49eb6864516cfe97504668d7a0f78ee9ff5018cc15cb393921673982fca752d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page