[Qgis-user] Vortex coordinates
Dear all I've got a limited protection zone around a city witch is a poligonon and i need to know pease if its possible to make a excel sheet with the vortexes coordinates i kwon that with the fild calculator i can know the nr of vortices is it possible to add theur coordinates automaticly??! Thanks in advanced!!! All the best ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Vortex coordinates
You can extract the vertexes of your polygon as a new layer. You can do it with a tool that you can find under the Vector menu and/or Processing QGIS algorithms, I don't remember exactly and I don't have a PC right now. Then you can use the Field Calculator to create two new columns on your point layer using the $x and $y expressions. I. e. open the attribute table, toggle on editing, and open the Field Calculator. Set the new field as Double (decimal) and choose a meaningful precision. Write in the expression $x. This will populate thw new column with the X coordinates of your points. Do the same for Y. Then you can save the point layer as CSV, that you can open in a spreadsheet editor like Excel. giovanni Il 27/lug/2014 17:18 daniel pinto daniel.ar.pi...@gmail.com ha scritto: Dear all I've got a limited protection zone around a city witch is a poligonon and i need to know pease if its possible to make a excel sheet with the vortexes coordinates i kwon that with the fild calculator i can know the nr of vortices is it possible to add theur coordinates automaticly??! Thanks in advanced!!! All the best ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Vortex coordinates
Polygon to points: Vector - Geometry Tools - Nodes extraction Il 27/lug/2014 19:46 daniel pinto daniel.ar.pi...@gmail.com ha scritto: Thank you!!! I will try it as soon as i arrive home!! Alll the best!!! Em 27/07/2014 16:30, G. Allegri gioha...@gmail.com escreveu: You can extract the vertexes of your polygon as a new layer. You can do it with a tool that you can find under the Vector menu and/or Processing QGIS algorithms, I don't remember exactly and I don't have a PC right now. Then you can use the Field Calculator to create two new columns on your point layer using the $x and $y expressions. I. e. open the attribute table, toggle on editing, and open the Field Calculator. Set the new field as Double (decimal) and choose a meaningful precision. Write in the expression $x. This will populate thw new column with the X coordinates of your points. Do the same for Y. Then you can save the point layer as CSV, that you can open in a spreadsheet editor like Excel. giovanni Il 27/lug/2014 17:18 daniel pinto daniel.ar.pi...@gmail.com ha scritto: Dear all I've got a limited protection zone around a city witch is a poligonon and i need to know pease if its possible to make a excel sheet with the vortexes coordinates i kwon that with the fild calculator i can know the nr of vortices is it possible to add theur coordinates automaticly??! Thanks in advanced!!! All the best ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Vortex coordinates
You can use QGIS to save your dataset as GMT (Generic Mapping Tools) format, this is a text file format with x y coordinates for each feature. Below is an example, the lines prefixed with # character contain metadata feature attribute information, each feature is separated in the file by a - you should only have one feature? In this case each feature has an integer attribute called id the first and only feature in this file has attribute data (#@D1) comprising the value 1 it is a polygon with no holes This is a very useful format for those needing to provide text lists of coordinates for non-gis tools (like spreadsheets). If you are using Linux (or install the grep tool for Windows, see: Grep for Windows) you can manipulate such text files very easily, for example, under Windows you can remove all the lines starting with a # to just get the coordinate listed by opening a windows terminal typing: type file.gmt | grep -v #* file_coords.csv (if you use Linux I shouldn't need to explain :-) this copies the file to the grep program, which filters any lines containing a # followed by other characters and writes other lines to the file file_coords.csv. While the field separator is a space, this is easily fixed in any text editor if you require a comma, or you can use Linux commands like sed or tr to do this. HTH, Brent Wood Grep for Windows grep {whatisit} View on gnuwin32.sourceforge.net Preview by Yahoo # @VGMT1.0 @GPOLYGON # @R174.141609641/174.204830925/-35.2151100415/-35.1341867981 # @Je4326 # @Jp+proj=longlat +datum=WGS84 +no_defs # @JwGEOGCS[\WGS 84\,DATUM[\WGS_1984\,SPHEROID[\WGS 84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9122\]],AUTHORITY[\EPSG\,\4326\]] # @Nid # @Tinteger # FEATURE_DATA # @D1 # @P 174.147173114256418 -35.134186798137137 174.204830925137514 -35.136715649491563 174.203313614324856 -35.211063879311915 174.141609641276659 -35.215110041479008 174.147173114256418 -35.134186798137137 Subject: Re: [Qgis-user] Vortex coordinates I've got a limited protection zone around a city witch is a poligonon and i need to know pease if its possible to make a excel sheet with the vortexes coordinates i kwon that with the fild calculator i can know the nr of vortices is it possible to add theur coordinates automaticly??! Thanks in advanced!!! All the best ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user