Hi
i have a problem when adding a roads shape file a part of the roads appear
on the map the other parts does not unless i change the scale to a small
one.. this only happens with this file all the other layers that i have
are added without any problem.. here is the code that i used and the error
message that i get:
layerprops.put("prettyname","political solid");
layerprops.put("lineColor","000000");
layerprops.put("fillColor","BDDE83");
layerprops.put("shapeFile","C:/Project_lastversio/roads.shp");
layerprops.put("spatialIndex","C:/Project_lastversio/roads.ssx");
layer.setProperties(layerprops);
map_Bean.add(layer);
*** ERROR ***
SpatialIndex.locateRecords: IOException.
*************
java.io.IOException: Invalid polygon record. Expected shape type 5 or
type 3, but found 0
at com.bbn.openmap.layer.shape.ESRIPolygonRecord.<init>(Unknown Source)
at com.bbn.openmap.layer.shape.SpatialIndex.makeESRIRecord(Unknown Source)
at com.bbn.openmap.layer.shape.SpatialIndex.locateRecords(Unknown Source)
at com.bbn.openmap.layer.shape.ShapeLayer.computeGraphics(Unknown Source)
at com.bbn.openmap.layer.shape.ShapeLayer$ShapeWorker.construct(Unknown Source)
at com.bbn.openmap.util.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Thanks
Houda
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager by sending
an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender immediately
and do not disclose the contents to anyone or make copies.
ITS antivirus gateway has scanned this email for viruses, vandals and malicious
content.
**************************************************************************************************
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Sat Mar 8 05:42:26 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT