What is the format used in then Texas unemployment example?

Hey folks,

I have Ben trying to build from the Texas unemployment example in the gallery, but I can't seem to infer what is the format of the counties boarders. I've seen that the it is an XML that you call geometry in the loading code.

Hi,

The data format for the "patches" glyph that is used to draw that example, is that "x" and "y" should each both be a "list of lists". Each sublist should give all the x- or y-coordinates for one patch, e.g.:

  xs = [ [x-coords for patch1], [x-coords for patch2], ... ]
        ys = [ [y-coords for patch1], [y-coords for patch2], ... ]

  p.patches(xs=xs, ys=ys, ...)

Bokeh could probably use some convenience methods to help convert other common GIS formats to/from this "list of lists" format. But GIS is not really my area, so I'd want to get some user input from users who are, before embarking on adding anything. Please feel free to open a GH issue to discuss that, if you like.

Thanks,

Bryan

ยทยทยท

On Jun 29, 2017, at 08:26, [email protected] wrote:

Hey folks,

I have Ben trying to build from the Texas unemployment example in the gallery, but I can't seem to infer what is the format of the counties boarders. I've seen that the it is an XML that you call geometry in the loading code.

--
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/4f306df0-e169-44e6-a527-fcfbf9abd6e5%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.