public static void writeRoadNetwork ( Element xmlNode , RoadNetwork primitive , URL geometryURL , MapMetricProjection mapProjection , URL attributeURL , XMLBuilder builder , PathBuilder pathBuilder , XMLResources resources ) throws IOException { final ContainerWrapper w = new ContainerWrapper ( primitive ) ; w . setElementGeometrySource ( geometryURL , mapProjection ) ; w . setElementAttributeSourceURL ( attributeURL ) ; writeGISElementContainer ( xmlNode , w , NODE_ROAD , builder , pathBuilder , resources ) ; final Rectangle2d bounds = primitive . getBoundingBox ( ) ; if ( bounds != null ) { xmlNode . setAttribute ( ATTR_X , Double . toString ( bounds . getMinX ( ) ) ) ; xmlNode . setAttribute ( ATTR_Y , Double . toString ( bounds . getMinY ( ) ) ) ; xmlNode . setAttribute ( ATTR_WIDTH , Double . toString ( bounds . getWidth ( ) ) ) ; xmlNode . setAttribute ( ATTR_HEIGHT , Double . toString ( bounds . getHeight ( ) ) ) ; } }
Write the XML description for the given container of roads .