[Gvsig_english] computing X,Y coordinates
Javier Galán
galan_javsan at gva.es
Tue Feb 24 09:36:53 CET 2009
Hi Nik,
Maybe what you could do is to export your polygon shape to an annotation
shape, opening it as an shp, you'll get a point shp. Calculate its X Y
with the field calculator. About that, if you are working with a
geodetic projection (long/lat) the X/Y will be longitude and latitude.
Then join both tables.
Regards.
Javier
Nik Go wrote:
> I'm sorry if my original post was not clear on this but x,y in that
> post meant lat/long coordinates for me. So does this produce the
> lat/long coordinates, similar to what the link I made does in AV?
>
>
> On Mon, Feb 23, 2009 at 5:11 PM, Benjamin Ducke
> <benjamin.ducke at oxfordarch.co.uk
> <mailto:benjamin.ducke at oxfordarch.co.uk>> wrote:
>
> It should also be able to "misuse" an annotation layer for that
> purpose.
> You should be able to create an annotation layer from your polygon
> file.
> This will be a simple points file with a centroid for each polygon
> where
> the annotation is supposed to go. Simply load that new layer back into
> your project as a regular Shapefile, then use the field calculator
> to get the X/Y coordinates.
>
> Ben
>
>
> Sergio Clark wrote:
>
> Hi Nik,
>
> It's possible to get X and Y coordinates of a shape, if it is
> type point. You can do this by using the Field Calculator in
> gvSIG. First, 'start editing' your shp, then open its table
> and add numeric fields for X and Y values. With this field
> selected in the table click 'Field calculator' and use
> functions 'x' and 'y' to get these values.
>
> But if you mean getting the X,Y coordinates of a centroid (for
> a polygon shape), you should write a jython script and then
> use the 'Advanced' label of the Field Calculator in order to
> load and use it (I don't know the exact code for this script now).
>
>
> Hope it helps,
> Regards
>
> Sergio.
>
>
>
>
> Nik Go escribió:
>
> Hi everyone.
>
> I'm trying to find out if I can retrieve the X,Y
> coordinates of my shape features (perhaps, it's center?)
> Arcview can do something like this: HowTo: Calculate
> Latitude and Longitude values using the Field Calculator
> <http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=31863
> <http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=31863>>.
>
>
> Is it possible to do something similar in gvSIG? I've been
> trying to twist my head on this problem for a few days now.
>
> I'm running gvSIG 1.1 and 1.9a on Ubuntu 8.10.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> <mailto:Gvsig_internacional at runas.cap.gva.es>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
>
>
>
>
>
> --
> Benjamin Ducke
> Senior Applications Support and Development Officer
>
> Oxford Archaeology Ltd
> Janus House
> Osney Mead
> OX2 0ES
> Oxford, U.K.
>
> Tel: +44 (0)1865 263 800 (switchboard)
> Tel: +44 (0)1865 980 758 (direct)
> Fax :+44 (0)1865 793 496
> benjamin.ducke at oxfordarch.co.uk
> <mailto:benjamin.ducke at oxfordarch.co.uk>
>
>
>
>
> ------
> Files attached to this email may be in ISO 26300 format (OASIS
> Open Document Format). If you have difficulty opening them, please
> visit http://iso26300.info for more information.
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> <mailto:Gvsig_internacional at runas.cap.gva.es>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
--
Javier Galán Sánchez
Proyecto gvSIG
Consellería de Infraestructuras y Transportes (GVA)
Valencia (España)
More information about the Gvsig_internacional
mailing list