Skip to content

Fix st_reproject throws on encountering null value in column#548

Merged
metasim merged 1 commit intolocationtech:developfrom
netanel246:fix_st_reproject_null_bug
Apr 26, 2021
Merged

Fix st_reproject throws on encountering null value in column#548
metasim merged 1 commit intolocationtech:developfrom
netanel246:fix_st_reproject_null_bug

Conversation

@netanel246
Copy link
Contributor

Author: Netanel Malka netanel246@gmail.com

st_reproject throws on encountering null value in the column - #501

Added null check on ReprojectGeometry
Added test for that

Signed-off-by: Netanel Malka netanel246@gmail.com

val geom = JTSTypes.GeometryTypeInstance.deserialize(geometry.eval(input))
JTSTypes.GeometryTypeInstance.serialize(reproject(geom, src, dst))
}
null
Copy link
Member

Choose a reason for hiding this comment

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

Why do you always evaluate to null here... should this be in an else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. you're right.
Fix that

Author: Netanel Malka <netanel246@gmail.com>

st_reproject throws on encountering null value in column - locationtech#501

Added null check on ReprojectGeometry

Signed-off-by: Netanel Malka <netanel246@gmail.com>
@netanel246 netanel246 force-pushed the fix_st_reproject_null_bug branch from 0fbcad7 to 05877c7 Compare March 10, 2021 18:00
@netanel246 netanel246 requested a review from metasim March 11, 2021 09:41
@metasim metasim merged commit f5ab30b into locationtech:develop Apr 26, 2021
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.

2 participants