RE: [OpenMap Users] Determining Shapefile contents

From: Zacker, Jeremy <Jeremy.Zacker_at_ngc.com>
Date: Fri, 22 Oct 2004 09:54:03 -0400

I ended up writing a method that would only read the file header and return the constant of which you speak. For a JFileChooser, I didn't want to construct an entire ShapeLayer just to get the icon.

--------------------------------
Jeremy Zacker
Northrop Grumman
(732) 530-5063
jeremy.zacker_at_ngc.com


-----Original Message-----
From: Don Dietrick [mailto:dietrick_at_bbn.com]
Sent: Thursday, October 21, 2004 10:16 PM
To: Zacker, Jeremy
Cc: openmap-users_at_bbn.com
Subject: Re: [OpenMap Users] Determining Shapefile contents


You can get ShapeLayer -> ShapeFile.getShapeType(), and the integer
definitions for shape types is in
com.bbn.openmap.dataAccess.shape.ShapeConstants.

- Don

On Oct 20, 2004, at 5:10 PM, Zacker, Jeremy wrote:

> This question is related to ESRI Shapefiles.
>  
> When accessing a list of shapefiles from an ESRI product such as
> ArcView, the browser is able to display different icons for different
> files indicating the type of data contained within.  For example, if a
> shapefile contains area data, a small 'area' icon is displayed next to
> the file name. 
>  
> Is there a way to determine the type of file contents using ShapeLayer
> (or associated classes)?  I would like my file browser to display a
> similar icon so that my user will know what type of data to expect. 
> Also, for areas, I will give them a choice of fill color.
>  
>  
> --------------------------------
> Jeremy Zacker
> Northrop Grumman
> (732) 530-5063
> jeremy.zacker_at_ngc.com
>  
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Oct 22 2004 - 09:56:01 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT