Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert roads & buildings analytic feed results to vector #103

Closed
jreiberkyle opened this issue Jan 31, 2020 · 5 comments
Closed

convert roads & buildings analytic feed results to vector #103

jreiberkyle opened this issue Jan 31, 2020 · 5 comments
Assignees

Comments

@jreiberkyle
Copy link
Contributor

Create a notebook demonstrating how to convert the roads and buildings analytic feed results to vectors for use in workflows that require vector input.

Tools to consider:

@jreiberkyle jreiberkyle self-assigned this Jan 31, 2020
@jreiberkyle
Copy link
Contributor Author

@jreiberkyle
Copy link
Contributor Author

basic roads->vectors code snippet is now available in the roads as vectors notebook

@jreiberkyle
Copy link
Contributor Author

gdal example and example of roads-> vectors with filtering based on size and simplification are now in the roads as vectors notebook

@jreiberkyle
Copy link
Contributor Author

Working on extracting road centerlines. I am using the centerlines pip package, which creates MultiLineString features. When I find the centerline in pixel space then try to use shapely to apply an affine transformation to project the features to the image crs, I get this error from shapely:

InvalidInputTypeError: Input geometry must be of type shapely.geometry.Polygon or shapely.geometry.MultiPolygon!

However, the documentation says that affine_transformation can take all geometry types (and searching through the issues suggests that LineString shapes are supported)

Filling in the shapely issue information here, I need to create a script to reproduce:

## Please note

If you are reporting an installation or module import issue, please note that
this project only accepts reports about problems with packages downloaded from
the Python Package Index. Conda users should take issues to one of the
following trackers:

- https://github.com/ContinuumIO/anaconda-issues/issues
- https://github.com/conda-forge/shapely-feedstock

## Expected behavior and actual behavior.



## Steps to reproduce the problem.

(For example, a script with required data)

## Operating system

Mac OS X 10.14.5

## Shapely version and provenance

1.7.1 installed from conda-forge using conda

@jreiberkyle
Copy link
Contributor Author

Completed with above PRs (dropped centerlines effort)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant