RE: [OpenMap Users] Determining Shapefile contents

From: Zacker, Jeremy <>
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

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

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

- 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

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
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