[Qgis-developer] Full geometry of a point

Martin Dobias wonder.sk at gmail.com
Sat Apr 4 19:37:25 EDT 2009


On Fri, Apr 3, 2009 at 10:47 PM, Matthew Vavrek <mattvavrek at hotmail.com> wrote:
> I made up a python plugin a while ago that mostly works to convert a point
> layer (or selected points) into a .gpx file to make it easier to select a
> bunch of points to put on a GPS unit. We wanted it for when we are
> prospecting for new fossil sites so that we don't visit old sites,
> especially as we have up to 20 people in the field at once. The problem is I
> need resolution less than 10 metres, but I can't figure out how to retrieve
> the full data for a point using QgsFeature.geometry(). From what I can see,
> python (or something) rounds the points off to 6 digits, which means
> something like 106.23245 degrees W becomes 106.232 degrees W (around 40
> metres or so; a fair bit when some sites are around only 1 square metre). I
> know the data is there, because the original layer shows the finer scale
> resolution, and if I select and copy the points from the original layer and
> then paste into a text document, it shows the full point location.

Hi Matthew,

please can you provide us with a sample python script (and gpx file)
that shows this problem? That would help us to find out root of the
problem. There should be no rounding of the coordinates...

Martin


More information about the Qgis-developer mailing list