what's the matter with alaska? (and hawaii)

I couldn’t find anything on this, so sorry if it’s there. The sampledata for Alaska and hawaii have some weird county locations

Here is alaska:

from bokeh.sampledata.us_counties import data as counties2

countysource = {‘x’:[counties2[k][‘lons’] for k in sorted(counties2.keys()) if k[0]==2],

‘y’:[counties2[k][‘lats’] for k in sorted(counties2.keys()) if k[0]==2],

‘cty’:[k for k in sorted(counties2.keys()) if k[0]==2]}

source = ColumnDataSource(data=countysource)

pusa = figure(tools=“hover,box_zoom,save”) #x_axis_location=None, y_axis_location=None)

pusa.patches(‘x’, ‘y’, source=source,

line_color=“black”, line_width=0.05) #,alpha={‘field’:‘missing’}

show(pusa)

Hi,

The counties polygons were just taken from some online Google Fusion table that purported to have them. Unfortunately I can't vouch for the data beyond that. If you know of a more comprehensive or better source for this data with a permissive license to include in the project, we could look at updating things.

Thanks,

Bryan

···

On Oct 20, 2016, at 3:20 PM, [email protected] wrote:

I couldn't find anything on this, so sorry if it's there. The sampledata for Alaska and hawaii have some weird county locations

Here is alaska:

from bokeh.sampledata.us_counties import data as counties2
countysource = {'x':[counties2[k]['lons'] for k in sorted(counties2.keys()) if k[0]==2],
                'y':[counties2[k]['lats'] for k in sorted(counties2.keys()) if k[0]==2],
                'cty':[k for k in sorted(counties2.keys()) if k[0]==2]}

source = ColumnDataSource(data=countysource)
pusa = figure(tools="hover,box_zoom,save") #x_axis_location=None, y_axis_location=None)
pusa.patches('x', 'y', source=source,
          line_color="black", line_width=0.05) #,alpha={'field':'missing'}

show(pusa)

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2ed0c126-0163-4e37-86ea-4a6948e110af%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I understand. It might be good to document the problem or remove those states, as it took me a while to figure out why everything looked so weird. There are county outlines in http://www2.census.gov/geo/tiger/GENZ2010/ i might use instead.
I do not know about their license.
Thanks for the reply.

···

On Friday, October 21, 2016 at 10:28:41 AM UTC-5, Bryan Van de ven wrote:

Hi,

The counties polygons were just taken from some online Google Fusion table that purported to have them. Unfortunately I can’t vouch for the data beyond that. If you know of a more comprehensive or better source for this data with a permissive license to include in the project, we could look at updating things.

Thanks,

Bryan

On Oct 20, 2016, at 3:20 PM, [email protected] wrote:

I couldn’t find anything on this, so sorry if it’s there. The sampledata for Alaska and hawaii have some weird county locations

Here is alaska:

from bokeh.sampledata.us_counties import data as counties2

countysource = {‘x’:[counties2[k][‘lons’] for k in sorted(counties2.keys()) if k[0]==2],

            'y':[counties2[k]['lats'] for k in sorted(counties2.keys()) if k[0]==2],
            'cty':[k for k in sorted(counties2.keys()) if k[0]==2]}

source = ColumnDataSource(data=countysource)

pusa = figure(tools=“hover,box_zoom,save”) #x_axis_location=None, y_axis_location=None)

pusa.patches(‘x’, ‘y’, source=source,

      line_color="black", line_width=0.05) #,alpha={'field':'missing'}

show(pusa)


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2ed0c126-0163-4e37-86ea-4a6948e110af%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Agreed about documenting, can you make a GitHub issue with this information?

Thanks,

Bryan

···

On Oct 21, 2016, at 11:44 AM, [email protected] wrote:

I understand. It might be good to document the problem or remove those states, as it took me a while to figure out why everything looked so weird. There are county outlines in http://www2.census.gov/geo/tiger/GENZ2010/ i might use instead.
I do not know about their license.
Thanks for the reply.

On Friday, October 21, 2016 at 10:28:41 AM UTC-5, Bryan Van de ven wrote:
Hi,

The counties polygons were just taken from some online Google Fusion table that purported to have them. Unfortunately I can't vouch for the data beyond that. If you know of a more comprehensive or better source for this data with a permissive license to include in the project, we could look at updating things.

Thanks,

Bryan

> On Oct 20, 2016, at 3:20 PM, [email protected] wrote:
>
> I couldn't find anything on this, so sorry if it's there. The sampledata for Alaska and hawaii have some weird county locations
>
> Here is alaska:
>
> from bokeh.sampledata.us_counties import data as counties2
> countysource = {'x':[counties2[k]['lons'] for k in sorted(counties2.keys()) if k[0]==2],
> 'y':[counties2[k]['lats'] for k in sorted(counties2.keys()) if k[0]==2],
> 'cty':[k for k in sorted(counties2.keys()) if k[0]==2]}
>
> source = ColumnDataSource(data=countysource)
> pusa = figure(tools="hover,box_zoom,save") #x_axis_location=None, y_axis_location=None)
> pusa.patches('x', 'y', source=source,
> line_color="black", line_width=0.05) #,alpha={'field':'missing'}
>
> show(pusa)
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2ed0c126-0163-4e37-86ea-4a6948e110af%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/b63971fe-a28a-4c95-a94f-4eb8681e36b9%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

As shown in the above Alaska maps, the issue has to do with projections. The latter shows patches of longitudes and latitudes, while the former figure shows same data projected by Web Mercator.

Bokeh
stated that data placed on Mapplot specified in decimal lat long coordinates e.g. 37.123, -122.404 will be automatically converted into the web mercator projection to display properly over Google maps tiles.

However,
the hover tooltips for $x, $y failed to indicate the lat long coordinates but the transformed mercator projection. Please guide me on how to display the original lat long coordinates on the google map.

Best regards,

Aziz

···

On Thursday, October 20, 2016 at 9:38:28 PM UTC+1, [email protected] wrote:

I couldn’t find anything on this, so sorry if it’s there. The sampledata for Alaska and hawaii have some weird county locations

Here is alaska:

from bokeh.sampledata.us_counties import data as counties2

countysource = {‘x’:[counties2[k][‘lons’] for k in sorted(counties2.keys()) if k[0]==2],

‘y’:[counties2[k][‘lats’] for k in sorted(counties2.keys()) if k[0]==2],

‘cty’:[k for k in sorted(counties2.keys()) if k[0]==2]}

source = ColumnDataSource(data=countysource)

pusa = figure(tools=“hover,box_zoom,save”) #x_axis_location=None, y_axis_location=None)

pusa.patches(‘x’, ‘y’, source=source,

line_color=“black”, line_width=0.05) #,alpha={‘field’:‘missing’}

show(pusa)