Package org.geoscript.js

Examples of org.geoscript.js.GeoObject


     * @param funObj
     * @return
     */
    public static Object write(Context cx, Scriptable thisObj,
            Object[] args, Function funObj) {
        GeoObject geo = null;
        if (args.length == 1) {
            Object geoObj = args[0];
            if (geoObj instanceof GeoObject) {
                geo = (GeoObject) geoObj;
            }
        }
        if (geo == null) {
            throw ScriptRuntime.constructError("Error",
                    "The write function expects a single object argument");
        }
        return geo.getJson();
    }
View Full Code Here

TOP

Related Classes of org.geoscript.js.GeoObject

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.