Hi Bob

I dont know the esri command and how it works, but to get that kind of 
metadata out of an translation / ffs file you can use a strategi like this

1. set up an tcl array in the global namespace whith the information you ar 
interrested in
2. run the translation
3. write a tcl function to populate the arrray with a description off your 
data
4. at the end of the translation dump the array to a textfile
5. if you dont want to export the data to somthing just write it to null

Attatched is a mapping file and a tcl script illustrating how I use this 
teknik, to crreate a repport on a translation describing the input/ outpupt 
parameters and a count of the featurcodes, and the featurtypes , the result 
you can se in the .rap file

Peter Laulund
Natioanl survey and Cadastre, Denmark




>From: "Rice, Bob" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: RE: [fme] FFS Dump
>Date: Wed, 21 Sep 2005 09:33:13 -0600
>
>Hi Mark,
>
>What I hoping to find was something on the order of
>the ESRI shpinfo command which gives a great deal
>of information about a shapefile structure, parameters, attributes
>without dumping actual feature data.
>
>Bob
>
>
>--------------------------------------
>L. Robert Rice
>P2 Energy Solutions
>1625 Broadway Suite 500
>Denver Co 80202
>Office: 720-493-6663
>Fax: 720-493-6681
>
>-----Original Message-----
>From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Mark
>Ireland
>Sent: Wednesday, September 21, 2005 9:25 AM
>To: [email protected]
>Subject: RE: [fme] FFS Dump
>
>
>Hi Bob,
>There's not much you can do to output spatial data to a text file. If
>you're looking for differences in the data then run them through
>ChangeDetectors or a CRCCalculator/Matcher.
>
>If you can narrow it down to one or two features then open it in the
>Viewer and copy/paste the coords from the right-hand pane.
>
>It is possible to create a text file of coords. The CSV writer would
>probably be best.
>Chop the data into points, use a CoordinateFetcher to retrieve the X/Y
>of each and write is to a CSV.
>
>Hope this helps
>
>Mark
>
>Mark Ireland, Product Support Engineer
>Safe Software Inc. Surrey, BC, CANADA
>[EMAIL PROTECTED] http://www.safe.com
>Solutions for Spatial Data Translation, Distribution and Access
>
>-----Original Message-----
>From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
>Rice, Bob
>Sent: Monday, 19 September 2005 08:33 AM
>To: [email protected]
>Subject: [fme] FFS Dump
>
>Good Morning,
>
>Does any know/have a tool that can dump a FFS file to a text file?
>
>My problem - I have two different Oracle Spatial reader scripts which
>produce 2 different FFS files for the same input data set. Later
>processing fails on 1 of the FFS files. I can see nothing different
>using the Viewer.
>
>Thanks
>
>Bob
>
>
>--------------------------------------
>L. Robert Rice
>P2 Energy Solutions
>1625 Broadway Suite 500
>Denver Co 80202
>Office: 720-493-6663
>Fax: 720-493-6681
>
>
>
>
>Get the maximum benefit from your FME, FME Objects, or SpatialDirect via
>our Professional Services team.  Visit www.safe.com/services for
>details.
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>Get the maximum benefit from your FME, FME Objects, or SpatialDirect via 
>our Professional Services team.  Visit www.safe.com/services for details.
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
>Get the maximum benefit from your FME, FME Objects, or SpatialDirect via 
>our Professional Services team.  Visit www.safe.com/services for details.
>Yahoo! Groups Links
>
>
>
>
>
>
<BR><HR>FREE Spam Protection! <A 
HREF="http://www.spamextract.com/download.php";>Click 
Here.</A><BR>SpamExtract Blocks Spam.<br><br>

_________________________________________________________________
Del din verden med MSN Spaces http://spaces.msn.com


Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our 
Professional Services team.  Visit www.safe.com/services for details. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Attachment: log2rap.tcl
Description: Binary data

Attachment: util.tcl
Description: Binary data

/* ============================================================================

  Navn          : Peter Laulund, KMS

  Oprettet dato : 28 oktober 2004
                  20 maj     2005 Version 2

  Beskrivelse   : samlet udgave for alle formater
                  tilføjet header med version, adressse samt de vigtigste
                  parametre

  Problemer     :


============================================================================*/

# ============================================================================= # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Tcl2 source [regsub -all -- {\\} {$(FME_MF_DIR)} {/}]../TCL/log2rap.tcl
Tcl2 array set countKode {}
Tcl2 array set countBesk {}
Tcl2 array set countFeature {}

Tcl2 array set param { Source     $(SourceFormat)        \
                      Format     $(DestFormat)          \
                      InProj     $(SourceCoordSys)      \
                      OutProj    $(DestCoordSys)        \
                      SourceDim  $(SourceDim)           \
                      DestDim    $(DestDim)             \
                    }

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FACTORY_DEF * TeeFactory \ FACTORY_NAME "GENKA LOG: Tæl alle objekter" \ INPUT FEATURE_TYPE * \ OUTPUT FEATURE_TYPE * \
    @Tcl2( "countType $(DestFormat)" )

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FACTORY_DEF * CreationFactory \ FACTORY_NAME "GENKA LOG: Get Count" \ CREATE_AT_END \ NUMBER_TO_CREATE 1 \
 OUTPUT FEATURE_TYPE CountDummy

FACTORY_DEF * TeeFactory \ FACTORY_NAME "GENKA LOG: Write2Log" \ INPUT FEATURE_TYPE CountDummy \
    @Tcl2( "printCount {$(DestDataset)\$(DestFormat)}")

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # =============================================================================

Attachment: THY.RAP
Description: Binary data

Reply via email to