[OpenMap Users] saving filled polygons to shapfiles

From: serrotam <serrotam_at_yahoo.com>
Date: Thu, 1 Jul 2004 15:49:22 -0700 (PDT)

 Again experimenting with ExampleApplication.java to
create shaded polygons with OM and saving them to
shapefiles. This time the filled polygon is drawn to
the EsriLayer correctly and displayed/painted
correctly. I can save this layer to shapefiles using
the code below:

  File file = fileChooser.getSelectedFile();
  String path = file.getCanonicalPath();
  EsriGraphicList list = layer.getEsriGraphicList();
  ShpOutputStream pos = new ShpOutputStream(
FileOutputStream(path + ".shp"));
  int[][] indexData = pos.writeGeometry(list);

   ShxOutputStream xos = new ShxOutputStream(
FileOutputStream(path + ".shx"));
   xos.writeIndex(indexData, list.getType(),

   DbfOutputStream dos = new DbfOutputStream(
FileOutputStream(path + ".dbf"));

PROBLEM is that when I re-read these shapefiles I only
get polygon outline but the filled in color is not
showing up. Where are the filled in properties of the
polygon saved to? Shouldn't fill-in descriptions be
also saved into the shapefiles or is this a
properties file responsability?

I've have searchd the FM to no avail.



Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
[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 Thu Jul 01 2004 - 18:57:39 EDT

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