keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.39k stars 1.74k forks source link

Kepler.gl not mapping co-ordinates properly #1183

Closed simeon9696 closed 4 years ago

simeon9696 commented 4 years ago

I'm using the data from the repository COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. Usually the data points get mapped correctly but recently they haven't. They seem to be offset and end up improperly placed on the map (but just with respect to location, see image)

Steps to reproduce the behavior:

Settings:

  1. After import, select Add Layer
  2. Layer type : Hexbin Lat: Lat Lon: Long Radius: 35km Height: Elevation Scale 100 Height: Height based on 7/9/2020

Expected behavior The co-ordinates in the file get mapped to the proper cities etc on the map.

Screenshots image

Desktop (please complete the following information):

heshan0131 commented 4 years ago

hi please send a snippet of the data when you create a bug. Likely the coordinate is not in mercator lat lng format

simeon9696 commented 4 years ago

hi please send a snippet of the data when you create a bug. Likely the coordinate is not in mercator lat lng format

@heshan0131 Apologies, please see the attached image. Is there a difference betweeen mercator lat long and just lat lng?

image

heshan0131 commented 4 years ago

The lat lng value looks correct. Can you confirm the wrong project only happens in hexbin layer, not point layer?

Could you send a link to the dataset you are using?

simeon9696 commented 4 years ago

@heshan0131 Can confirm it occurs with the point layer as well. Here's the link to the dataset https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv

image

simeon9696 commented 4 years ago

@heshan0131 Can confirm it occurs with the point layer as well. Here's the link to the dataset https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv

image

Hi @heshan0131 any update?

heshan0131 commented 4 years ago

@simeon9696 I wasn't able to reproduce this error. Are you using http://kepler.gl/demo ? Here is what I did

  1. Go to https://kepler.gl/demo
  2. Select 'Load Map using URL' Screen Shot 2020-07-30 at 2 24 41 PM
  3. Enter

https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv

  1. Create a point Layer: Screen Shot 2020-07-30 at 2 25 48 PM

I put up an my map here, let me know if you are seeing the same thing https://kepler.gl/demo/map?mapUrl=https://dl.dropboxusercontent.com/s/mz50g5dc5c7gpow/keplergl_jiqdmlq.json

simeon9696 commented 4 years ago

@heshan0131 not entirely sure why it didn't work in the first place but it's back to normal. Even the hexbin layer. Thanks for looking into it and getting back to me!

rkoten commented 7 months ago

To anyone who runs into this and finds this thread: your coordinates are probably flipped and you're using lats as lons and vice versa.