POST
|
Hi, I have a problem with applying a custom geographic transformation on shape files. I have shape files from Vietnam that are in a VN200 projection. I was using the "create custum geographical transformation" to build a transformation file. This is working fine, however, I need first to definde the projection of the files as the ArcGIS internal VN-2000 projection. My problem now is that I can apply this transformation only on raster data, but not on shape files. This is a main problem for me, as I need to convert lots of shape files. Thanks and best regards, Corinne Frey
... View more
08-20-2012
06:05 AM
|
0
|
0
|
666
|
POST
|
Thanks for the answers. I'm running Phyton from the ArcGIS installation. I got the access files from somebody else and I don't have influence on their size. I'll try to improve the code now, thanks for you help! Cheers, Corinne
... View more
07-18-2012
10:29 PM
|
0
|
0
|
484
|
POST
|
Hi I'm new to phyton and need to convert a bunch of dababase files to shapefiles. I have a batch processing code which is working fine. However, after a while it gets incredibly slow and takes more than an hour for something it took only 10 minutes at the start. I guess that it's somehow a memory - related problem. Anybody an idea how to clear memory or otherwise fasten the program? Here is the code:
import arcpy
from arcpy import env
import os
# Set the workspace for the ListFiles function
env.workspace = "g:/CAPAS_Data/N50/"
# Use the ListFile function to return a list
ListDatabase = arcpy.ListFiles("*.mdb")
# print ListDatabase
for x in ListDatabase:
env.workspace = "g:/CAPAS_Data/N50/"+x
ListDatasets = arcpy.ListDatasets()
for y in ListDatasets:
env.workspace = "g:/CAPAS_Data/N50/"+x+"/"+y
ListClasses = arcpy.ListFeatureClasses()
for z in ListClasses:
inFeature =
inFeature_str = str(inFeature)
outLocation= "g:/CAPAS_Data/shapefiles/"+inFeature_str[3:-2]+"/"
if not os.path.exists(outLocation):
os.makedirs(outLocation)
arcpy.FeatureClassToShapefile_conversion(inFeature, outLocation)
Thanks for any help! Corinne
... View more
07-18-2012
01:09 AM
|
0
|
5
|
834
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|