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

Anthro and RCAT geometry type warnings #991

Open
philipbaileynar opened this issue Aug 20, 2024 · 2 comments
Open

Anthro and RCAT geometry type warnings #991

philipbaileynar opened this issue Aug 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request pkg:Anthro Anthro project type

Comments

@philipbaileynar
Copy link
Contributor

Reviewing this Anthro project I notice that there are some geometry type warnings that should be easy to fix. Looks like some single geoemetries just need to be packaged as multipart geometries.

Screenshot 2024-08-20 at 1 17 11 PM
2024-08-20 18:50:32,555 WARNING  [GDALError      ] ERR# 1 -- A geometry of type POINT is inserted into layer IGOGeometry of geometry type MULTIPOINT, which is not normally allowed by the GeoPackage specification, but the driver will however do it. To create a conformant GeoPackage, if using ogr2ogr, the -nlt option can be used to override the layer geometry type. This warning will no longer be emitted for this combination of layer and feature geometry type.
2024-08-20 18:50:35,231 INFO     [Processing points] Completed 10,801 operations.  Total Time: 2.0 seconds     

2024-08-20 18:50:35,442 INFO     [Copy Features  ] Copying features from flowlines with specified attributes into project
2024-08-20 18:50:35,462 WARNING  [GDALError      ] ERR# 1 -- A geometry of type LINESTRING is inserted into layer ReachGeometry of geometry type MULTILINESTRING, which is not normally allowed by the GeoPackage specification, but the driver will however do it. To create a conformant GeoPackage, if using ogr2ogr, the -nlt option can be used to override the layer geometry type. This warning will no longer be emitted for this combination of layer and feature geometry type.
2024-08-20 18:50:42,129 INFO     [Processing points] Completed 6,988 operations.  Total Time: 6.0 seconds     
@philipbaileynar philipbaileynar added enhancement New feature or request pkg:Anthro Anthro project type labels Aug 20, 2024
@philipbaileynar philipbaileynar changed the title Anthro geometry type warnings Anthro and RCAT geometry type warnings Aug 20, 2024
@philipbaileynar
Copy link
Contributor Author

RCAT has several of these warnings too.

FWIW Postgres has a helpful method called "MakeMultiPart" that performs the conversion for you. Perhaps OGR has something similar?

Screenshot 2024-08-20 at 1 41 04 PM

@jtgilbert
Copy link
Contributor

From some brief research on this, I think it's beyond what we want to deal with for running the tools right now.

@jtgilbert jtgilbert added this to the Someday milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:Anthro Anthro project type
Projects
None yet
Development

No branches or pull requests

2 participants