|
Re: Importing and Handling DXF Map files in R: msg#00045lang.r.geo
No know GRASS or wanting to struggle with getting it onto my (ugh!) windows machine--the old terminal emulation bugaboo--I tackled this problem in a low tech manner by running my dxf (ascii!) thru DXF2XYZ. Info on DXF2XYZ can now be found at http://www.brightergraphics.co.uk/guthrie/dxf2xyz.htm I do not know if this is new code or a modernization of the old (US) BLM code dxf2xyz.c for DOS. But it does the job nicely. Quoting the developers: "DXF2XYZ 2.0 converts a DXF file to an XYZ file, ie a comma delimited text file containing just xyz coordinates. It can be useful for extracting the raw XYZ coordinates from a DXF file containing say contours or other elevation entities. ... (1) This utility is under development, and capabilities are fairly limited, but will improve with time. The current version will extract the XYZ coordinates from the following DXF entity types: POINT, LINE, POLYLINE / VERTEX, LWPOLYLINE (2) Although the software is not officially supported, you are welcome to direct any queries/suggestions to Paul Guthrie pguthrie@xxxxxxxxxxxxxx " So it does not get everything but you do get the map. I all found that had to do a little post processing of the DXF2XYZ output to get polygons to close up in R. Its been a couple of years but, if I remember right, the DXF2XYZ output numbers the entities its translates. So I just read thru the output lines by line checking the and by entity and if an entity needed closing up I did so by adding another line segment connecting the last point with the first point. I can not remember if I did this in R, BASIC, or FORTRAN but it was straight-forward. It has worked very nicely. HTH Regards, Michael Grant PS Then there is the time I just went looking for points in a dxf...cut and paste the whole thing into EXCEL, sorted, ... I can't remember why I had to do it that way... it was a horrible experience :O). --- Francisco Javier Aguirre Navarro <FAGUIRRN@xxxxxxxxxxxxxxxx> wrote: > > > Hello, I am a newby in the filed of spatial data analysis, could you please > point me to the right libraries/functions in R that allow me to import DXF > maps and analize spatial data related to these maps ? > I would appreciaiate any internet references or books that may give a good > hands-on introduction to spatial data analysis, I have good knowledge of > classical statistical methods. > I need to analyze about 75000 data points scattered on a map area and I'd > like to construct a "density" map of my variable of interest and eventually > see how these densities change in time. > > Thank you very much for your help. > > Francisco J. Aguirre > Bavaria, Bogota - Colombia. > > > > > NOTA CONFIDENCIAL: > La informacion contenida en este correo-electronico y cualquier archivo > adjunto son originados por SABMIller o alguna de sus compañias subsidiarias; > es de uso privilegiado y/o confidencial y solo puede ser utilizada por la > persona, entidad o compañia a la cual esta dirigido. Si usted ha recibido > este mensaje por error favor destruirlo y avisar al remitente. Si usted no es > el destinatario no debera revelar, copiar o distribuir o tomar cualquier > accion basado en los contenidos del mensaje. Cualquier retencion, > diseminacion o distribucion total o parcial no autorizada de este mensaje > esta estrictamente prohibida y sancionada por la ley. > Las observaciones y opiniones expresadas en este mensaje de correo > electronico pueden no necesariamente ser aquellos de la Administracion o > Directivos de SabMiller. > > CONFIDENTIAL NOTE: > The information in this E-mail and any attachments transmitted are originated > by SABMiller or any of its subsidiaries companies, is intended to be > privileged and/or confidential and only for use of the individual, entity or > company to whom it is addressed. If you have received this e-mail in error > please destroy it and contact the sender. If you are not the addressee you > may not disclose, copy, distribute or take any action based on the contents > hereof. Any total o partial unauthorized retention, dissemination, > distribution or copying of this message is strictly prohibited and sanctioned > by law. > The views and opinions expressed in this e-mail message may ...{{dropped}} > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@xxxxxxxxxxxxxxxxx > https://stat.ethz.ch/mailman/listinfo/r-sig-geo >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Fast calculation of block-block covariance, Christoph Hofer |
|---|---|
| Next by Date: | GSTAT fit.variogram method, Zev Ross |
| Previous by Thread: | Re: Importing and Handling DXF Map files in R, Roger Bivand |
| Next by Thread: | bubble vs plot.map -- gstat, maptools, Zev Ross |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |