-
Notifications
You must be signed in to change notification settings - Fork 790
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
Powerlines no longer displayed after refactoring #2702
Comments
Ah, I didn't think anyone (besides the sponsor) was using this feature :) |
This is now fixed. If using a shapefile, you must turn on tower location per point with <infer_tower_locations>true</infer_tower_locations> |
Still not working. |
Only 1 tower and no cables are displayed. |
Thanks. The workaround is to reproject your shapefile data into something like Mercator or UTM. You may also need to use a simplify filter if your data has too many points along the lines: <OGRFeatures name="power-lines" url="sourcedata.shp">
<filters>
<simplify tolerance="100m" preserve_all_features="true"/>
</filters>
</OGRFeatures> |
Since you extracted this from OSM data there is a And, yes. When inferring tower locations you are going to get a tower at every vertex in the source data. |
It is ok to have at every vertex. For the cables... i think there is an issue... |
You can override the cable expression with <num_cables>6</num_cables> or any javascript expression, like <num_cables> feature.properties.cables </num_cables> |
It seems there is always a problem. |
osgEarth Version (required): 3.7.1 build 167
Description of the problem:
With the refactoring of the powerline layer, the powerlines are no longer displayed with OGRFeature. The error displayed is
[osgearth warning] ASSERTION FAILURE (createFeatureCursor @ FeatureSource.cpp:374) !query.buffer().isSet() ...Buffer not supported for non-tilekey queries; ignoring
What you have tried:
The text was updated successfully, but these errors were encountered: