-
Notifications
You must be signed in to change notification settings - Fork 157
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
[Bug]Loading base maps #2450
Comments
Hi @LorenzEh, I doubt it could be a projection issue. Is it possible to share your data with me, so I can replicate it on my side? (xunli at uchicago dot edu)Thanks! |
Thanks for your answer. I also think, that it´s an projection issue. I tried various settings, but none seem to work. I sent you the data frame per mail. Many thanks! |
Thanks for sharing the data, @LorenzEh! I took a quick look and noticed the coordinates in the geojson file are not latitudes and longitudes:
From the crs code in your geojson file: To fix this projection issue, I think you can try to reproject the original raw geometires (if you have) to WGS84 EPSG::4326 (https://epsg.io/4326). E.g. you can use ogr2ogr to do reprojection: |
@LorenzEh The projection looks right, but I doubt the coordinates are not correctly projected. You can check the latitudes and longitudes in the geojson file, and e.g. compare them to a valid US geojson file like https://geodacenter.github.io/data-and-lab/data/natregimes.geojson For example, the first geometry in your geojson is
If the coordinates in your geojson are very different, then you need to find a good source of the geometries and replace the ones in your geojson file. You can use geopandas to replace the geom column with another geom column based on e.g FIPS id |
@LorenzEh Just noticed the map boundary in your screenshots looks not correct: It should be close to the range: |
Many thanks for your answers. I thought that GeoPandas could adjust the geo column correctly with Best wishes, |
Hello,
I´m struggeling with using a base map on a geojson dataframe of contiguous USA (polygons of the counties). None of the base maps seem to load. Also, the map window gets zoomed out if I try to load a base map and I can´t zoom in again. I tried adjusting my Firewall, as suggested in a previous post. All other operations with the data frame work perfectly fine (eg. creating weights). Im using Windows 10 Pro, version 22H2.
The text was updated successfully, but these errors were encountered: