Hi Christian
Apologies for the delay getting back to you, I have been working on
something else.
When I step through the GeoTools code (StreamingRenderer) I notice that the
method 'isFeatureTypeStyleActive' returns false when I'm trying to use a
PregeneralizedDataStore. I believe this results in the data store not being
displayed. The parameters that get passed in to the method look like this:
ftype: SimpleFeatureTypeImpl GenRoads
identified(the_geom:MultiLineString,FNODE_:FNODE_,TNODE_:TNODE_,LPOLY_:LPOLY_,RPOLY_:RPOLY_,LENGTH:LENGTH,ROAD_:ROAD_,ROAD_ID:ROAD_ID,FCODE:FCODE,GENCODE:GENCODE,FEATURE:FEATURE,Shape_len:Shape_len)
fts: FeatureTypeStyleImpl[ name=name, [Feature], rules=<1>(<RuleImpl> null
<LineSymbolizerImp property=null uom=null
stroke=org.geotools.styling.StrokeImpl:
Color java.awt.Color[r=0,g=0,b=255]
Width 1
Opacity 1.0
LineCap butt
LineJoin miter
Dash Array null
Dash Offset 0.0
Fill Graphic null
Stroke Graphic null>
)]
The method 'FeatureTypes.isDecendedFrom returns false because there are no
ancestors.
When I attempt to load a pregeneralized shape file directly using a
FileDataStore I see the following values of the parameters to the
'isFeatureTypeStyleActive' method:
ftype: SimpleFeatureTypeImpl http://www.opengis.net/gml:roads50 identified
extends
lineFeature(the_geom:MultiLineString,FNODE_:FNODE_,TNODE_:TNODE_,LPOLY_:LPOLY_,RPOLY_:RPOLY_,LENGTH:LENGTH,ROAD_:ROAD_,ROAD_ID:ROAD_ID,FCODE:FCODE,GENCODE:GENCODE,FEATURE:FEATURE,Shape_len:Shape_len)
fts: FeatureTypeStyleImpl[ name=name, [Feature], rules=<1>(<RuleImpl> null
<LineSymbolizerImp property=null uom=null
stroke=org.geotools.styling.StrokeImpl:
Color java.awt.Color[r=0,g=0,b=255]
Width 1
Opacity 1.0
LineCap butt
LineJoin miter
Dash Array null
Dash Offset 0.0
Fill Graphic null
Stroke Graphic null>
)]
The method 'FeatureTypes.isDecendedFrom returns true in this case.
I am not very experienced with shape files so I'm not sure if this is an
issue that I can fix by modifying my GeneralizationInfos xml file. Any
assistance with this would be greatly appreciated.
Thanks,
Richard
--
View this message in context:
http://n2.nabble.com/Shapefile-pregeneralization-tp4867089p4925607.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users