RPyGeo: merge geoprocessing problems with "field_mappings" option
Dear Gianni, I haven't used the Merge_management tool in ArcGIS, but after having a look at ESRI's documentation... http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Merge_(Data_Management) ...it seems to me that field_mappings is not just a character string but an object of the class "FieldMappings": http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?id=812&pid=785&topicname=FieldMappings_properties This is not something that would be easily addressed from within R, you'd better just use Python directly if you want to automate this with ArcGIS Geoprocessing tools. Cheers Alex
gianni lavaredo wrote:
Hi All
I am testing RPyGeo (old version) developed to Prof. Alexander Brenning. I
wish to merge three points shapefile each with this database: ID, X, Y, V.
The Scripting syntax in Python is "Merge_management (inputs, output,
field_mappings)", where with "field_mappings" (Optional) I can chose the
output shapefile fields. I am trying in R+ RPyGeo with different code but
always I have the right result but with all 4 fields.
rpygeo.geoprocessor("Merge_management",
c("C:\\work\\point1.shp;C:\\work\\point2.shp;C:\\work\\point3.shp","C:\\work\\point_merge.shp"),
"field_mappings:ID;V")
thanks in advance
Gianni
[[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Alexander Brenning brenning at uwaterloo.ca - T +1-519-888-4567 ext 35783 Department of Geography and Environmental Management University of Waterloo 200 University Ave. W - Waterloo, ON - Canada N2L 3G1 http://www.fes.uwaterloo.ca/geography/faculty/brenning/