-
Notifications
You must be signed in to change notification settings - Fork 367
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
Let GMT honor/check the geometries passed via GMT/OGR or shapefiles #5629
Comments
For dataset that has a POINT geometry, if the default is points, how can users explicitly plot the data as lines or polygons? |
If we want users to have the ability to override the dataset's geometry, then we would have to have a way for them to say so. Maybe something like -S/ could mean "line symbol" (i.e., no symbol, draw lines). Does other software allow points to be plotted as lines, e.g., if arcGIS or QGIS reads a points file, is it even possible to draw a polygon? I just wonder if the expectation here is to completely honor the geometry if one is given. If the user wants those points to be plotted as polygons then perhaps g |
I have no idea about this. Ping @weiji14 and @yohaimagen for comments. |
I think Points/MultiPoints are always plotted as points in most GIS software. One would usually need to convert a Point layer explicitly into a Line or Polygon type to plot them as such. |
It normally should not make much sense to plot Points as lines, but it's not up to GMT to censor it. Datasets may have inherited the Points/multiPoints geometry from a lost ancestrality. |
In Qgis it automatically opens the file as the specified geometry, without the option to specify other geometry. if no geometry is specified it plotting points. I believe the same is for arcGIS. |
That is what I would expect; otherwise what is the point of keeping geometry as an attribute. So the question then is should GMT start to enforce this behavior when the geometry is known (i.e., via the shapefile, OGR files)? Or is a warning for now adequate? |
Description of the desired feature
See this PyGMT post 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
This may affect a few more modules that read table data and expects points.
The text was updated successfully, but these errors were encountered: