-
Notifications
You must be signed in to change notification settings - Fork 2.3k
docstring and defaults #191
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
docstring and defaults #191
Conversation
|
This looks great! Thanks for tackling it. A comment: While I've never really been satisfied with Also, projection only works if you use it with an array, not with a local or external file. |
|
I am not happy with Maybe should remove that for now and try to implement that using rasterio or Cartopy.
|
3367669 to
36f9f20
Compare
|
Ah, I think the issue is that the algorithm is for global data, not local. rasterio looks pretty cool. I don't know enough about cartopy to know how On Tue, Aug 18, 2015 at 9:55 AM Filipe notifications@github.com wrote:
|
36f9f20 to
84a043a
Compare
|
I am re-thinking this issue and I believe it is better to avoid any re-projection inside folium. Lets just say it takes the image in We can easily create example with your |
|
Ya, projection is obviously a difficult problem and generally outside the On the other hand, the utility of not having to use cartopy, make a figure, If ag On Tue, Aug 18, 2015 at 10:11 AM Filipe notifications@github.com wrote:
|
|
If `geodetic_to_mercator` is left in folium.utilities (and perhaps
referenced in the docstrings or docs?) I think this is an OK compromise.
That makes sense. As soon as get back in the office I will change this PR
to include the transformation back into utilities. We just need an example
with globaly generated data for the docstring and I think I got one.
|
|
We can try to use this in the global exemple: http://scitools.org.uk/cartopy/docs/latest/examples/waves.html
|
|
You can wrap |
84a043a to
1377758
Compare
|
OK. I am done with this PR. Here is an example that needs the projection step. The same example is illustrated in the docstrings. Summary:
@andrewgiessel can you take another look and give the 👍 or 👎 After that @BibMartin or @themiurgo can take another look and merge. |
folium/folium.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/project/projected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
1377758 to
febcf2d
Compare
|
Some minor comments in the docstring, but 👍 from me! Great work and thanks for polishing this up so that it's more consistent with the whole project. |
febcf2d to
a7fd814
Compare
|
One thing we need to come back when we pluginify this is the inline vs path reference. I think this should be a global option (standalone HTML vs separate files) and not inside the method. |
|
@BibMartin we have @andrewgiessel 👍 and green |
|
It seems good. Congrats and thanks to both of you! |



Addressing some of the points we raised in #187.
@andrewgiessel since this is your baby can you please take a look?
Here is a working example:
http://nbviewer.ipython.org/github/ocefpaf/folium_notebooks/blob/master/test_image_overlay_gulf_stream.ipynb