GenericMappingTools / GenericMappingTools/gmt
Let GMT honor/check the geometries passed via GMT/OGR or shapefiles
- Dominant language
- C
- Stars
- 979
- Forks
- 414
- Avg merge
- 17h 26m
- Merged PRs (30d)
- 54
Description
**Description of the desired feature**
See this PyGMT [post](https://github.com/GenericMappingTools/pygmt/issues/1373#issuecomment-896705337) for details.
Having thought about this some more, it seems reasonable that a dataset that has proper metadata that says the coordinates are points should not default to plotting lines. There is a differences between a plain text file with coordinates (which can mean points, lines or polygons) and a shapefile that says "I am a polygon".
Currently **plot** and **plot3d** do not care, but my proposal is that we do a check on geometry and
1. Change the default from line to point if given points
2. Give error if user tries to plot points as polygon or line explicitly.
This may affect a few more modules that read table data and expects points.
Contributor guide
Assessment
This issue has not been assessed yet.