-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[delimiter text] Add Point{Z,M,ZM} geometry support (fixes #25645) #31595
Conversation
@3nids , thanks for the quick review, that'll be my last feature pushed prior to freeze :) |
isNull = false; | ||
QgsPointXY pt; | ||
bool ok = QgsDelimitedTextProvider::pointFromXY( sX, sY, pt, mSource->mDecimalPoint, mSource->mXyDms ); | ||
QgsPoint *pt = new QgsPoint(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QgsPoint *pt = new QgsPoint(); | |
std::unique_ptr<QgsPoint> pt = qgis::make_unique<QgsPoint>(); |
for good practice and so on ;)
I'm tempted to almost call it a fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, feel free to merge and followup with RAII later on
@m-kuhn , cheers, I'll follow up tomorrow when I get to my workstation. |
Description
This PR implements Point{Z,M,ZM} geometry support to our delimiter text provider.
![Screenshot from 2019-09-06 17-55-49](https://user-images.githubusercontent.com/1728657/64422989-96e66500-d0cf-11e9-914a-90ba1c99fb74.png)
Checklist
Fixes #11111
at the bottom of the commit messagescripts/prepare-commit.sh
script before each commit