View Full Version : Translating only parts of a shape file
Rick_Parkhurst
25-05-2006, 02:35 AM
Is it possible to translate only selected part(s) of a shapefile by attribute data ? IE I only wish to translate the parts where the attribe data is of ( in my case ) SubtypeCD is equal to 4 ?
Thankyou
GuthCAD Software Support
25-05-2006, 03:25 AM
Rick,
Yes, no problem, it can be done by:
1. Create Color Ranges or Layer Ranges to match the values that you are interested in (in your case just the single value)
2. Check the option 'Don't translate entities outside of Ranges.'
So you would for example:
- go to the Colors dialog
- select 'Colors linked to feature'
Classification field = SubtypeCD
Range type = Quantile or Equal Interval
Number of Classes = 1
- double click on the displayed single range and in the 'Edit Range' dialog set both the Low and High values to be 4
- Check the option 'Don't translate entities outside of Ranges.'
Click OK,OK and do the translation.
For detailed instructions refer to the Help topic:
- Miscellaneous Notes
- How to Translate Just Part of a Shapefile
best regards
Paul G
Rick_Parkhurst
25-05-2006, 05:56 AM
Thank you !
Can that be done in batch mode from the command line ?
I have a couple hundred files to translate.
GuthCAD Software Support
26-05-2006, 01:34 AM
Rick,
Can that be done in batch mode from the command line ?
I have a couple hundred files to translate.Yes.
1. Save the Color or Layer range settings to a .LGD file. E.g. following on from the example in the previous post, click the 'Save' button in the 'Colors' dialog. Save as say 'Type4.lgd'.
2. Specify the .LGD file using the /RC command line switch. You need to combine it with the 'Colors linked to feature' switch (/C0=0), and the name of the features field. So:
/C0=0 /CFN=SubtypeCD /RC=c:\myfiles\type4.lgd c:\myfiles\myshapefile.shp
3. To translate multiple files create a batch command file with the above command repeated 1 per file. e.g.
/LOG=3
/C0=0 /CFN=SubtypeCD /RC=c:\myfiles\type4.lgd c:\myfiles\file1.shp
/C0=0 /CFN=SubtypeCD /RC=c:\myfiles\type4.lgd c:\myfiles\file2.shp
/C0=0 /CFN=SubtypeCD /RC=c:\myfiles\type4.lgd c:\myfiles\file3.shp
...
(/LOG=3 is used to suppress the warning that some shapes were skipped.)
regards
Paul G
Rick_Parkhurst
02-06-2006, 05:04 AM
I have been unable to make this work, it says it is skipping x number of records, but is still importing features from all of the classes ?
Could I send you my lgd file, and a shp file to check ?
Thank you
Rick
GuthCAD Software Support
02-06-2006, 05:41 AM
Rick,
Yes, sure.
When sending the shapefile please send .SHP + .SHX + .DBF files.
thanks
Paul G
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.