Coder Social home page Coder Social logo

meridian's Introduction

howdy

I'm tom. I'm a software engineer primarily focused on working with all kinds of data. I am competent in several programming languages, but Python remains my favorite. I pride myself on being a jack of all trades and as such I have worked on all technical aspects of software projects from design to deploy.

I love to make things regardless of the medium, be it dough, wood, or code.

I currently work at Faraday, where we build developer tools for responsible AI.

meridian's People

Contributors

tomplex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

meridian's Issues

Add basic geometry operations and __geo_interface__ to `spatialdata` objects

spatialdata objects should implement the __geo_interface__ protocol, and have access to basic geometry operations. Example usage:

import fiona

from meridian import SpatialDataset
from shapely import geometry

with fiona.open('/path/to/my/shapefile.shp') as src:
    dataset = SpatialDataset(src)

poi = geometry.shape({
    'type': 'Point',
    'coordinates': [-72.319261, 43.648956]
})

for record in dataset.intersection(poi):
    print(record)
    record.intersects(poi) # add a few basic geometry methods onto spatialdata objects
    print(record.__geo_interface__) # prints a bunch of JSON representing the feature's geometry and properties

Ideally, we do this without removing namedtuples - I like the simplicity of use. Maybe meridian should take over its implementation of namedtuple so we can add custom methods / properties that are domain-specific.

Decide if format compatibility should live in meridian, or in another package

There should be helpers available for reading different data formats into meridian, such as PostGIS, WKT, etc. Essentially all they would do is read other files / sources of data and convert each row into a GeoJSON feature.

This need is general enough that it could easily be its own library instead of part of meridian itself.

Include in meridian: pros and cons

pros

  • Users don't need to install a second package to get common functionality

cons

  • Support for PostGIS (which I think is critical) adds a dependency on psycopg2, which the average user might not care about, and requires a separate binary on Windows.

...will add more as I think of them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.