Package com.bbn.openmap.dataAccess.shape

Examples of com.bbn.openmap.dataAccess.shape.EsriPointList


     */
    public EsriPlugIn(String name, int type, int columnCount) throws Exception {

        switch (type) {
        case SHAPE_TYPE_POINT:
            _list = new EsriPointList();
            break;
        case SHAPE_TYPE_POLYGON:
            _list = new EsriPolygonList();
            break;
        case SHAPE_TYPE_POLYLINE:
View Full Code Here


     *         created by iterating through this input stream *
     * @deprecated not used.
     */
    public EsriGraphicList getPointGeometry(int[][] indexData) throws Exception {

        EsriGraphicList list = new EsriPointList();
        int numShapes = indexData[1].length;

        EsriPoint point;
        for (int i = 0; i < numShapes; i++) {
            int shpRecord = _leis.readInt();
            /* int shpContentLength = */_leis.readInt();
            int shpType = _leis.readLEInt();
            if (shpType != SHAPE_TYPE_NULL) {

                double lambda = _leis.readLEDouble();
                double phi = _leis.readLEDouble();

                float f1 = (float) lambda;
                float f2 = (float) phi;

                point = new EsriPoint(f2, f1);
                point.putAttribute(SHAPE_INDEX_ATTRIBUTE,
                        new Integer(shpRecord));
                if (drawingAttributes != null) {
                    drawingAttributes.setTo(point);
                } else {
                    DrawingAttributes.DEFAULT.setTo(point);
                }
                list.add(point);
            }
        }
        return list;
    }
View Full Code Here

    public EsriLayer(String name, int type, int columnCount) throws Exception {
        setName(name);

        switch (type) {
        case SHAPE_TYPE_POINT:
            setList(new EsriPointList());
            break;
        case SHAPE_TYPE_POLYGON:
            setList(new EsriPolygonList());
            break;
        case SHAPE_TYPE_POLYLINE:
View Full Code Here

TOP

Related Classes of com.bbn.openmap.dataAccess.shape.EsriPointList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.