POST
|
Thanks Aleta, This is what I achieved till now, I have changed the metadata style to North American profile of ISO 19115 2003 in the Arc catalog. I took one raster file then i opened it in the description tab and started editing the metadata manually wherever i could with the sample.xml. Then I saved the file. Now everything looks ok. But when I export the metadata file back to XML file , the metadata standard shows as ISO 19139 instead of NAP ISO 19115 since there is no translator for NAP ISO 19115 standard and by default it takes 'ESRI_ISO2ISO19139'. Is this ok? or Is there any way to get the metadata standard as NAP ISO 19115 in the final XML file? Also I have attached the the XML file of manually edited for the NAP ISO 19115 standard. Please have a look and advise me.
... View more
08-01-2013
12:12 AM
|
0
|
0
|
842
|
POST
|
I appreciate your help! I did have changed the metadata style to North America profile of ISO 19115 2003 (as exactly given in arccatalog options) If you look into the attached XML file, you will understand the actual problem. When I select this XML in Arccatalog and click on the Description tab , the only thing i can see is "Metadata format:Unknown" and below this line actual xml file will be shown. What i understand is that this metadata file does not contain any of arcgis standard metadata stylesheet (xsl).
... View more
07-30-2013
09:44 AM
|
0
|
0
|
842
|
POST
|
Thanks Aleta, But In the Description tab, i am not getting the export option. Only import option is available. Also one more thing i forgot to mention that the input XML metadata is not an arcgis metadata format file. I have attached a sample of the input XML file. Please have a look into the file and advise me how can i convert this to a NAP 19115 2003 standard metadata document file.
... View more
07-29-2013
11:56 PM
|
0
|
0
|
842
|
POST
|
Dear All, How to convert XML files to North American 2003 ISO 19115 standard metadata files? Regards, Mohan G
... View more
07-28-2013
11:00 PM
|
0
|
6
|
3436
|
POST
|
You can use the append tool. This one i will try... My guess is that since you created the feature class in a folder, it will have a shp extension. This probably would fix it (line 24): outErrPt = outFolder + os.sep + "AttributionError_Points" + ".shp" There's a neat tool in ArcInfo Worsktation that was designed for attribute testing, kind of miss that tool. The currently recommended workflow would be to set up and apply domains in the geodatabase, but that sure seems like a lot of trouble for all your fields. Thank you very much Price, it has worked fine..
... View more
03-21-2013
09:05 PM
|
0
|
0
|
378
|
POST
|
I believe it would be a lot less complex to simply create a layer, build a query string off the data using a Search Cursor, and copy the records using the Copy Features tool. Thanks for reply, But I have 40+ feature classes and i want only three output error files ( point, line and polygon). how can I use copy features tool here, i believe it would overwrite the out file every time or would create many output files. Also I want to know what is causing error in my above script, I tested it and the execution stops exactly at the line where lnsertCursor comes.
... View more
03-21-2013
06:52 AM
|
0
|
0
|
378
|
POST
|
In my below script, i am trying to export features which are having null or 0 values for some particular fields(listed in fieldList) from the GDB.I found that the problem is with update cursor.I tring for long time and still not able to solve. Could someone help me how to do it? import arcpy,os arcpy.env.overwriteOutput = True targetGdb = arcpy.GetParameterAsText(0) workFolder = os.path.dirname(targetGdb) outFolder = workFolder + os.sep + "CheckforErrors" if not arcpy.Exists(outFolder): arcpy.CreateFolder_management(workFolder, "CheckforErrors") attrErrPt = "AttributionError_Points" attrErrL = "AttributionError_Lines" attrErrP = "AttributionError_Polygons" if not arcpy.Exists(attrErrPt): arcpy.CreateFeatureclass_management(outFolder, attrErrPt, "POINT") if not arcpy.Exists(attrErrL): arcpy.CreateFeatureclass_management(outFolder, attrErrL, "POLYLINE") if not arcpy.Exists(attrErrP): arcpy.CreateFeatureclass_management(outFolder, attrErrP, "POLYGON") outErrPt = outFolder + os.sep + "AttributionError_Points" outErrL = outFolder + os.sep + "AttributionError_Lines" outErrP = outFolder + os.sep + "AttributionError_Polygons" fieldList = ['feattype','idarpt','name','source','ZV7','featsource','imagery','status','idthr','Z5M', 'idstd','tdze','tdzslope','brngtrue','brngmag','rwyslope','tora','toda','asda','lda','vasis', 'cat','thrtype','pntsttyp','marking','lighting','radius','height','material','idp','idrwy','idlin', 'color','style','direc','linsttyp','catstop','gsurftyp','idapron','idbase','ident','surftype','frq', 'station','idhot','jetway','surftype','width','length','idrwi','featbase','bridge','plysttyp'] arcpy.env.workspace = targetGdb datasetList = arcpy.ListDatasets('','feature') for dataset in datasetList: fcs = arcpy.ListFeatureClasses('','', dataset) for fc in fcs: desc = arcpy.Describe(fc) fcType = desc.ShapeType arcpy.AddMessage(fc) arcpy.AddMessage(fcType) if fcType == "Point": fields = arcpy.ListFields(fc) for field in fields: fname = field.name arcpy.AddMessage(field.name) if field.name in fieldList: rows = arcpy.SearchCursor(fc) newRows = arcpy.InsertCursor(outErrPt) row = rows.next() while row: rVal = row.getValue(fname) if rVal == None: newRo = newRows.newRow() newRo.shape = row.shape newRows.insertRow(newRo) row = rows.next() del row, rows, newRows elif fcType == "Polyline": fields = arcpy.ListFields(fc) newRows2 = arcpy.InsertCursor(outErrL) for field in fields: fname = field.name arcpy.AddMessage(field.name) if field.name in fieldList: rows = arcpy.SearchCursor(fc) row = rows.next() while row: rVal = row.getValue(fname) if rVal == None: newRow2 = newRows2.newRow() newRow2.shape = row.shape newRows2.insertRow(newRow2) row = rows.next() del row, rows elif fcType == "Polygon": fields = arcpy.ListFields(fc) newRows3 = arcpy.InsertCursor(outErrP) for field in fields: fname = field.name arcpy.AddMessage(field.name) if field.name in fieldList: rows = arcpy.SearchCursor(fc) row = rows.next() while row: rVal = row.getValue(fname) if rVal == None: newRow3 = newRows3.newRow() newRow3.shape = row.shape newRows3.insertRow(newRow3) row = rows.next() del row, rows
... View more
03-19-2013
02:48 AM
|
0
|
5
|
492
|
POST
|
Are you looking to get a shapefile/dwg for each individual TIFF's extent, or one shapefile/dwg for a mosaic of the TIFFs? Thanks Jake. I am looking for shp/dwg of each individual tiff's extent.
... View more
01-02-2013
05:28 AM
|
0
|
0
|
1152
|
POST
|
Hello all, I have around 1800 tiff and tfw files. Is there anyway to batch convert this into layout(outer extents of tiff) shp or dwg file? Thanks...
... View more
01-01-2013
10:59 PM
|
0
|
4
|
4663
|
POST
|
Hello all, I have around 1800 tiff and tfw files. Is there anyway to batch convert this into vector (shp or dwg) files? Thanks... I am adding a point to the above question, here the vector file is nothing but the layout (the outer extents of tiff). Hope it gives better understanding....
... View more
01-01-2013
10:50 PM
|
0
|
0
|
193
|
POST
|
Hello all, I have around 1800 tiff and tfw files. Is there anyway to batch convert this into vector (shp or dwg) files? Thanks...
... View more
01-01-2013
07:04 PM
|
0
|
1
|
1114
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|