The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
The piece that is missing here is map projections. Your points don’t match up with the tiles because they are not scaled to the same projection as the bokeh map tiles, which use Web Mercator projection. Pyproj is a simple but, effective module for working with different projections. You’ll need to know the ESPG codes of the projections you converting your coordinates to and from, they can often be found by googling “espg [projection name]”; here is what I found looking for Web Mercator and longitude and latitude.
The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
–
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].
Big thanks, Tyler! I’m almost there - is there any documentation on what the EPSG code of the Stamen and CartoDB tiles are? I can’t seem to find them even via Google.
···
Sent from Nylas Mail, the best free email app for work
On Feb 10 2017, at 12:01 am, Tyler Nickerson <[email protected]> wrote:
The piece that is missing here is map projections. Your points don’t match up with the tiles because they are not scaled to the same projection as the bokeh map tiles, which use Web Mercator projection. Pyproj is a simple but, effective module for working with different projections. You’ll need to know the ESPG codes of the projections you converting your coordinates to and from, they can often be found by googling “espg [projection name]”; here is what I found looking for Web Mercator and longitude and latitude.
The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
–
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].
Big thanks, Tyler! I’m almost there - is there any documentation on what the EPSG code of the Stamen and CartoDB tiles are? I can’t seem to find them even via Google.
Sent from Nylas Mail, the best free email app for work
On Feb 10 2017, at 12:01 am, Tyler Nickerson <[email protected]> wrote:
The piece that is missing here is map projections. Your points don’t match up with the tiles because they are not scaled to the same projection as the bokeh map tiles, which use Web Mercator projection. Pyproj is a simple but, effective module for working with different projections. You’ll need to know the ESPG codes of the projections you converting your coordinates to and from, they can often be found by googling “espg [projection name]”; here is what I found looking for Web Mercator and longitude and latitude.
The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
–
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].
Hmm… this is interesting. I tried the Web Mercator projection, which supposedly is the correct coordinate system for the Stamen maps, but my transformed coordinates are still incorrect.
The Boston dataset’s EPSG code is EPSG:2249 (I checked with the City of Boston). Are the Stamen tiles definitely EPSG:3857?
···
Sent from Nylas Mail, the best free email app for work
Big thanks, Tyler! I’m almost there - is there any documentation on what the EPSG code of the Stamen and CartoDB tiles are? I can’t seem to find them even via Google.
Sent from Nylas Mail, the best free email app for work
On Feb 10 2017, at 12:01 am, Tyler Nickerson <[email protected]> wrote:
The piece that is missing here is map projections. Your points don’t match up with the tiles because they are not scaled to the same projection as the bokeh map tiles, which use Web Mercator projection. Pyproj is a simple but, effective module for working with different projections. You’ll need to know the ESPG codes of the projections you converting your coordinates to and from, they can often be found by googling “espg [projection name]”; here is what I found looking for Web Mercator and longitude and latitude.
The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
–
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].
Hmm… this is interesting. I tried the Web Mercator projection, which supposedly is the correct coordinate system for the Stamen maps, but my transformed coordinates are still incorrect.
The Boston dataset’s EPSG code is EPSG:2249 (I checked with the City of Boston). Are the Stamen tiles definitely EPSG:3857?
Sent from Nylas Mail, the best free email app for work
Big thanks, Tyler! I’m almost there - is there any documentation on what the EPSG code of the Stamen and CartoDB tiles are? I can’t seem to find them even via Google.
Sent from Nylas Mail, the best free email app for work
On Feb 10 2017, at 12:01 am, Tyler Nickerson <[email protected]> wrote:
The piece that is missing here is map projections. Your points don’t match up with the tiles because they are not scaled to the same projection as the bokeh map tiles, which use Web Mercator projection. Pyproj is a simple but, effective module for working with different projections. You’ll need to know the ESPG codes of the projections you converting your coordinates to and from, they can often be found by googling “espg [projection name]”; here is what I found looking for Web Mercator and longitude and latitude.
The data points are not aligned on the correct portion of the map; they all show up near the equator, near a “null island”. These are all data points from Boston, so I though they would automatically line up on Boston when I add the stamen toner tile, but I must be missing something here.
If I take out x_range and y_range from the figure constructor, then the STAMEN_TONER tile doesn’t show up on the figure. I can clearly see that the data points are plotted correctly relative to one another.
I think I might need some educating here - what’s missing from my mental model of Bokeh’s underpinnings? Also, what’s the right thing to do to get the data points mapped onto Boston?
–
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].