MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Question about SDTS format

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102897] Re: [mg102882] Question about SDTS format
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Wed, 2 Sep 2009 03:59:14 -0400 (EDT)
  • References: <200908311033.GAA06953@smc.vnet.net>

Hi,

don't unpack the tar.gz files. Just do something like

Import["blub.tar.gz", {"SDTS", "Graphics"}]

Cheers
Patrick

On Tue, 2009-09-01 at 03:52 -0400, Elton Kurt TeKolste wrote:
> The files on the US Government website nationalatlas.gov
> (http://nationalatlas.gov/mld/statesp.html) claims to have files in SDTS
> format.
> 
> In particular, I have downloaded and decompressed the files for the
> state data, but Mathematica cannot import them.
> 
> For example, after downloading:
> 
> In[519]:= Import["Z:\BIGSIGMAA\Data\STAPAPPC.DDF"]
> 
> During evaluation of In[519]:= Import::fmterr: Cannot import data as
> SDTSDEM format. >>
> 
> Out[519]= $Failed
> 
> It will read the "Element" field:
> 
> In[533]:= elements = 
>  Import["Z:\BIGSIGMAA\Data\STAPAPPC.DDF", "Elements"]
> 
> Out[533]= {"Centering", "CentralScaleFactor", "CoordinateSystem", \
> "CoordinateSystemInformation", "Data", "DataFormat", "Datum", \
> "ElevationRange", "Graphics", "GridOrigin", "InverseFlattening", \
> "LinearUnits", "Projection", "ProjectionName", "RasterSize", \
> "ReferenceModel", "SemimajorAxis", "SemiminorAxis", "SpatialRange", \
> "SpatialResolution", "StandardParallels"}
> 
> But not any of the elements
> 
> In[534]:= map = 
>  Import["Z:\BIGSIGMAA\Data\STAPAPPC.DDF", #] & /@ elements
> 
> During evaluation of In[534]:= Import::fmterr: Cannot import data as
> SDTSDEM format. >>
> 
> During evaluation of In[534]:= Import::fmterr: Cannot import data as
> SDTSDEM format. >>
> 
> During evaluation of In[534]:= Import::fmterr: Cannot import data as
> SDTSDEM format. >>
> 
> During evaluation of In[534]:= General::stop: Further output of
> Import::fmterr will be suppressed during this calculation. >>
> 
> Out[534]= {$Failed, $Failed, $Failed, $Failed, $Failed, $Failed, \
> $Failed, $Failed, $Failed, $Failed, $Failed, $Failed, $Failed, \
> $Failed, $Failed, $Failed, $Failed, $Failed, $Failed, $Failed, \
> $Failed}
> 
> I can think of three possiblities:
> 1) I ammisusing Mathematica
> 2) Mathematica does not actually import SDTS files as advertised
> 3) The government did not publish this data in SDTS format despite the
> data suffix.
> 
> Does anyone have any hints as to how to import SDTS data or information
> about the formats used by the government?'
> 
> Regards,
> Kurt Tekolste
> 
> 



  • Prev by Date: Re: Replace in operators
  • Next by Date: Re: Faster alternative to AppendTo?
  • Previous by thread: Question about SDTS format
  • Next by thread: Re: Question about SDTS format