Skip to main content
Question

How to convert the origin point of a raster into a vector point?

  • February 3, 2020
  • 3 replies
  • 12 views

nicholas
Contributor
Forum|alt.badge.img+14

Hello all,

 

I want to generate a vector point from the origin point of a raster.

My raster is an ecw (version 2) format.

I can expose the coordinate values of the origin point by using RasterPropertyExtractor

But, I fail to create the vector point with VertexCreator. I assume this is because the raster still exists and I cannot add a vector point to a raster feature. If I could replace the raster with the vector point, this would work for me.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nicholas
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 116 replies
  • February 3, 2020

I thought I might be able to the RasterSubsetter to grab just the top-left pixel and then use RasterCellCoercer to convert that pixel into a point.

This works, but I'm not happy with the result. There is a small shift in the coordinates of the output point.

coordinate units is metres. Coordinate system is GDA-94 Zone 56

The origin point of the original raster

_origin_x : 466000

_origin_y : 6972000

coordinates of output point

x : 466000.14999999997

y : 6971999.850000001

So there is a very small shift in the coordinate that I want to avoid.


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • February 3, 2020

Hi @nicholas Use a VertexCreator to make the point from the _origin_x and _origin_y attribute values.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • February 3, 2020

The vertex creator should work as long as you have mode set to "Replace with point"