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

Add read-only AIVector (Artificial intelligence powered vector) driver #11047

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rouault
Copy link
Member

@rouault rouault commented Oct 18, 2024

With that latest breakthrough, OGR is finally feature complete.

@jratike80
Copy link
Collaborator

jratike80 commented Oct 18, 2024

I think I can still find some test data from my old field survey files in UDF format (stands for Universal Data File). Such format really existed, but despite being universal I don't understand why only one single software, running on Windows CE, ever used that versatile format. Finally a driver that can read my data! Maybe GDAL project could start maintaining Docker images and Python bindings for Windows CE by the same.
When the AIRaster driver appears I can test it with some thermal infrared data encoded in a proprietary, undocumented way and stored on VRC video tapes.

OGRFieldDefn oFieldDefn("name", OFTString);
m_poLayerDefn->AddFieldDefn(&oFieldDefn);
OGRSpatialReference *poSRS = new OGRSpatialReference(
"GEOGCS[\"I don't know\",\n"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjimenezshaw Should we contact the OGC Naming Authority to register this one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"I don't care" 😜

@rouault rouault force-pushed the aivector branch 2 times, most recently from e5f981e to c35b5c3 Compare October 18, 2024 23:28
@rouault
Copy link
Member Author

rouault commented Oct 18, 2024

Vetted by ChatGPT: "The AIVector driver fits within 150 lines of code and introduces no dependencies, making it an excellent fit for GDAL due to its simplicity and low maintenance burden. Its lightweight nature makes it easy to review, integrate, and adopt by the open-source community. Without external dependencies, it avoids licensing and security issues, making it even more appealing. The driver could add valuable AI-powered functionality for automating simple tasks, like feature detection or vector optimization, without disrupting existing workflows. Overall, it would be a flexible, efficient, and community-friendly enhancement."

@jratike80
Copy link
Collaborator

Does it recognize if X or Y comes first?

@rouault
Copy link
Member Author

rouault commented Oct 18, 2024

Does it recognize if X or Y comes first?

ChatGPT: "The AI-powered OGR AIVector driver automatically detects the coordinate axis order by analyzing metadata, such as the CRS, and recognizing common patterns like latitude/longitude in EPSG:4326. If metadata is missing, it infers the order by evaluating the dataset itself, checking value ranges, or spatial relationships. AI handles inconsistencies and adapts to logical outcomes by comparing the data with known geographical features. The driver’s AI capabilities manage these tasks efficiently based on its design. This streamlines axis-order detection without the need for manual intervention."

@rouault
Copy link
Member Author

rouault commented Oct 19, 2024

Seeing https://mastodon.social/@[email protected]/113318258119880494 , I'm wondering if we shouldn't follow in the footsteps of AI tech giants . So maybe this driver should be the only one you can't disable. And perhaps add "phone home" features where we post the content of the datasets it reads to some server under our control? I'm so excited by this bright future.

@dg0yt
Copy link
Contributor

dg0yt commented Oct 19, 2024

No write support? Am I expected to RTFM?

@rouault
Copy link
Member Author

rouault commented Oct 19, 2024

No write support? Am I expected to RTFM?

Indeed https://gdal--11047.org.readthedocs.build/en/11047/drivers/vector/aivector.html mentions "We are open to external investors to develop the write side of the driver."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants