Skip to content

API documentation?

5 messages · Roger Bivand, David Hugh-Jones, tom sgouros

#
On Mon, 30 Jun 2008, David Hugh-Jones wrote:

            
This is an inherent (and perhaps ugly) characteristic of the S4 
object/class structure as you suggest below. New style classes are not as 
well integrated into the documentation as straight functions are. Here, 
coerce is as(), but the issue of how to improve documentation is not 
resolved.
No, because the underlying understanding of dp and other methods for 
thinning is that the objects implement an arc-node topological model, so 
that each arc can be thinned without different thinning happening on 
otherwise identical boundaries of neighbouring polygons. But we do not 
have an arc-node representation, so there cannot be line thinning for 
polygon boundaries in a spaghetti world.
You need to build topology first, so if need be take the data out to a GIS 
that does topology properly, do the arc line thinning there, and bring it 
back in. Building topology from a stream of straight line segments is a 
serious challenge, especially if you want to retain the association with 
attribute data.

Roger

  
    
#
Roger

Thanks for that tip. As it happens, what I am doing is quick and dirty
enough that it doesn't matter, but it could have bitten me fairly
badly.

David Hugh-Jones
PhD Candidate
Essex University Department of Government
http://davidhughjones.googlepages.com


2008/7/1 Roger Bivand <Roger.Bivand at nhh.no>:
#
Yes, and a list of links to external tools would be great also.

Work so far is at
http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data . It's
very incomplete so please feel free to improve!

David Hugh-Jones
PhD Candidate
Essex University Department of Government
http://davidhughjones.googlepages.com


2008/7/1 tom sgouros <tomfool at as220.org>:
#
David Hugh-Jones <dhughj at essex.ac.uk> wrote:

            
Since mine is the perspective of a rank beginning, the only improvement
I'm qualified to make is to add the questions that confounded me last
winter.  So I just did that, adding a section called "when to use", and
apologize to all who click there expecting to find answers.  But my hope
is that answers will be forthcoming from some kind wiki-editor.

 -tom