Revision 784

View differences:

org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/gvsig.java
108 108
    }
109 109

  
110 110
    /**
111
     * Create a new shape with the specified parameters. If filename is not established, a temp filename will be set.
112
     * If CRS is None, it will be created with the CRS of the current view.
113
     *
114
     * Example:
115
     *     schema = createSchema()
116
     *     schema.append("ID", "INTEGER", 10)
117
     *     schema.append("GEOMETRY", "GEOMETRY")
118
     *     schema.get("GEOMETRY").setGeometryType(POINT, D2)
119
     *     newshape = createShape(schema, prefixname="newshape")
120
     *
121
     *
122
     * @param schema
123
     * @param filename, string, optional
124
     * @param geometryType, optional, integer, established in the schema
125
     * @param CRS, optional, string epsg code
126
     * @param prefixname, optional, string layer name with a prefix if filename is not established
127
     * @return
128
     */
129
    public static FLayer createShape(FeatureType schema, Object... parameters) {
130
        return null;
131
    }
132

  
133
    /**
134
     * Create a new table with the specified parameters.
135
     *
136
     * Use as default serverType the "FilesystemExplorer".
137
     *
138
     * @param schema
139
     * @param servertype
140
     * @param layerType
141
     * @param parameters
142
     * @return
143
     */
144
    public static FLayer createTable(FeatureType schema, String servertype, String layerType, Object... parameters) {
145
        return null;
146
    }
147

  
148
     * Create a new table with the specified parameters. If DbfFile is not established, a temp filename will be set.
149
     *
150
     * Example:
151
     *     schema = createSchema()
152
     *     schema.append("ID", "INTEGER", 10)
153
     *     newdbf = createDBF(schema, prefixname="newshape")
154
     *
155
     *
156
     * @param schema
157
     * @param DbfFile, optional, string
158
     * @param prefixname, optional, string layer name with a prefix if filename is not established
159
     * @return
160
     */
161
    public static FLayer createDBF(FeatureType schema, Object... parameters) {
162
        return null;
163
    }
164

  
165
    /**
166
     * Load an existing table file.
167
     *
168
     * @param dbffile, string, path to the table file to load
169
     * @return
170
     *
171
     */
172
    public static FLayer loadDBF(String dbffile) {
173
        return null;
174
    }
175

  
176
     /**
177
     * Load an existing table file.
178
     *
179
     * Example:
180
     *       table = loadTable(format="DBF",DbfFile=dbffile)
181
     *
182
     * @param format, string
183
     * @param path, string, path to the table file to load
184
     * @return
185
     *
186
     */
187
    public static FLayer loadTable(String format, Object... parameters) {
188
        return null;
189
    }
190

  
191
    /**
111 192
     * Load an existing shape file in the current view.
112 193
     *
113 194
     * @param path path to the shape file to load
......
133 214
    }
134 215

  
135 216
    /**
217
     * Load an existing raster file in the current view.
218
     *
219
     * @param path path to the raster file to load
220
     * @param projection to use to load the raster file
221
     * @return
222
     *
223
     */
224
    public static FLayer loadRasterFile(String path, String projection) {
225
        return null;
226
    }
227

  
228
    /**
229
     * Load an existing raster file in the current view.
230
     *
231
     * Use as default projection "CRS:84"
232
     *
233
     * @param path path to the raster file to load
234
     * @return
235
     *
236
     */
237
    public static FLayer loadRasterFile(String path) {
238
        return null;
239
    }
240

  
241
    /**
136 242
     * Load an existing layer and return it.
137 243
     *
138 244
     * Valid values of layer type are: 
......
164 270
     * </ul>
165 271
     *
166 272
     * @param msg to send to log
167
     * @param mode message type, is optional with defaul of LOGGER_INFO.
273
     * @param mode message type, is optional with default of LOGGER_INFO.
168 274
     * @param exception an exception to log, is optional.
169 275
     */
170 276
    public static void logger(String msg, int mode, Throwable exception) {

Also available in: Unified diff