Skip to content
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

Symbology: import from and export to other systems #24

Open
tjasz opened this issue Mar 7, 2023 · 3 comments
Open

Symbology: import from and export to other systems #24

tjasz opened this issue Mar 7, 2023 · 3 comments
Labels
enhancement New feature or request import/export

Comments

@tjasz
Copy link
Owner

tjasz commented Mar 7, 2023

While one of the primary differentiators for geotab is its ability to define the symbology of map features by sets of rules based on multiple feature properties, it is also useful to export the calculated symbology to other systems in a way that they understand. The calculated symbology should be included during export (when exporting to non-geotab formats). The export options need to include the symbology format (or maybe it's part of the file format).

For example, caltopo appears to use SimpleStyle, where a handful of style properties are included in the GeoJSON features' properties. It may be slightly different though, as its not made explicit. Export several examples of points, lines, and polygons with various styles to be sure.

GeoJSON+CSS has a style attribute in the feature objects.

GPX also has extensions for symbology.

KML also defines display properties.

@tjasz tjasz added the enhancement New feature or request label Mar 7, 2023
@tjasz
Copy link
Owner Author

tjasz commented Jun 13, 2024

CalTopo mostly seems to use SimpleStyle, but additionally has a "pattern" property to specify the SVG used for the line strings.

@tjasz
Copy link
Owner Author

tjasz commented Jun 14, 2024

Somewhat useful note while working this issue: here are the SVG path style options available on vector layers.

@tjasz tjasz changed the title Export symbology to other systems Symbology: import from and export to other systems Jun 14, 2024
@tjasz
Copy link
Owner Author

tjasz commented Jun 14, 2024

For import: I suppose styles from GPX and KML should be converted to simple style. Then, if simple style, CalTopo patterns, or GeoJSON+CSS are defined and geotab symbology is not, the styles defined by those specs should be used.

Question: even if geotab symbology is defined, should simple style and GeoJSON+CSS override it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request import/export
Projects
None yet
Development

No branches or pull requests

1 participant