[Gvsig_english] computing X,Y coordinates

Sergio Clark sergio.clark at iver.es
Tue Feb 24 09:34:04 CET 2009


Yes, 'x' and 'y' will be plane coordinates or geographic lat/long, 
depending of the CRS of your View. If you're working with a geographic 
CRS, then these functions get the lat/long of your points, expressed as 
degree and decimal part of degree.

Regards,
Sergio.



Nik Go escribió:
> 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
>   


-- 

Sergio Clark
Equipo gvSIG
IVER T.I., S.A.
www.iver.es
www.gvsig.com


Este mensaje y sus archivos son confidenciales. No está permitida su reproducción o distribución sin la autorización expresa de "IVER Tecnologías de la Información". Si usted no es el destinatario previsto, queda desautorizado cualquier uso, acceso o copia de este mensaje. Si ha recibido este mensaje por error, por favor bórrelo e infórmenos por esta misma vía.




More information about the Gvsig_internacional mailing list