-
Notifications
You must be signed in to change notification settings - Fork 1
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
Leaflet cannot render geometry for NHD HUC8 02080201 #24
Comments
The above didn't actually work when migrated to live. But downloading and exporting the original shape as WKT then pasting into the drupal feature edit window did.
|
wget https://github.com/jalbertbowden/us-data/raw/master/shapefiles/huc/huc-08-usa/huc-08-usa.zip |
Leaflet would cause the whole page to crash when rendering the poygon outline for this watershed, but containment querie with postgis were fine, and mapserver could render the outline no problem.
Eliminated the crash by simplify(), but the geometry doesn't show up in the leaflet map (grey) but at least the page continues. Not a good long-term solution:
update field_data_dh_geofield set dh_geofield_geom =
st_setsrid(st_multi(st_simplify(dh_geofield_geom,0.005)),4326) where entity_type = 'dh_feature' and entity_id = 74553;
The text was updated successfully, but these errors were encountered: