|
"http://000.000.000.000:8888/geoserver/GSWaterS_K/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=GSWaterS_K:Layer1" |
3) GeoServer에서 보내온 WFS의 GML로 객체를 생성함
private function createGeometry( graphic :Graphic, geometry :XMLList, query :WFSQuery, spatialReference :SpatialReference ) :void { for each( var shape :XML in geometry ) { var shapeType :String = shape.name(); var typeElements :Array = shapeType.split( "::" ); var type :String = typeElements[typeElements.length - 1]; if( type == "Point" ) { graphic.geometry = createPoint( shape, query.swapCoordinates, spatialReference ); } else if( type == "Polygon" || type == "Surface" ) { graphic.geometry = createPolygon( shape, query.swapCoordinates, spatialReference ); } else if( type == "LineString" || type == "Curve" ) { graphic.geometry = createLine( shape, query.swapCoordinates, spatialReference ); } else if( type == "MultiSurface" || type == "MultiPolygon") { graphic.geometry = createMultiPolygon( shape, query.swapCoordinates, spatialReference ); } else if( type == "MultiCurve" || type == "MultiLineString" ) { graphic.geometry = createMultiLine( shape, query.swapCoordinates, spatialReference ); } } } |
|