Skip to content

Conversation

@mvl22
Copy link

@mvl22 mvl22 commented Apr 10, 2018

This pull request:

  • Fixes the validation in feature_collection(), where feature() was being passed the whole feature, but expects a geometry and properties instead.

  • Enables LineString and Polygon to work - validate_feature() had no case for these, resulting in Feature type not implemented always being thrown.

  • Fixes the GeoJSON example so that it produces a working result - the co-ordinate pairs were the wrong way round.

@mvl22
Copy link
Author

mvl22 commented Apr 10, 2018

@afast I release these contributions under the MIT License (MIT) and as public domain.

@afast
Copy link
Owner

afast commented Apr 10, 2018

Thanks for making the effort of a contribution!
I'll review the changes later. Just out of curiosity, can you share what you're using this gem on/with?

@afast afast self-assigned this Apr 10, 2018
@mvl22
Copy link
Author

mvl22 commented Apr 10, 2018

can you share what you're using this gem on/with?

As a standalone executable - trying to generate a PDF of a map with GeoJSON.

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

Successfully merging this pull request may close these issues.

2 participants