Hi Ben,
I have a problem with .shp and .shx file.When I
am adding my own .shp files and .shx files as shown in
the below code ,I am getting an error. here is the
code that i used and the error I got
layerprops.put("prettyname","political solid");
layerprops.put("lineColor","000000");
layerprops.put("fillColor","BDDE83");
layerprops.put("shapeFile","Ci10de03.shp");
layerprops.put("spatialIndex","ci10de03.ssx");
layer.setProperties(layerprops);
map_Bean.add(layer);
*** ERROR ***
SpatialIndex.locateRecords: IOException.
*************
java.io.IOException: Invalid polygon record. Expected
shape type 1 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:534)
-----------------------
I have set the Classpath correctly..
thanks,
Vinod.
=====
>>>>>>>>>>>>>>*******************************************<<<<<<<<<<<<<<<<<<<<
Action speaks louder than words
>>>>>>>>>>>>>>>*******************************************<<<<<<<<<<<<<<<<<<<<<
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
[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 - 14:26:39 EDT