PageRenderTime 77ms CodeModel.GetById 42ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/util/GeoJSONUtilities.java

http://alageospatialportal.googlecode.com/
Java | 41 lines | 20 code | 10 blank | 11 comment | 0 complexity | 443c02c9d4f1b435b18464afe89b2fd4 MD5 | raw file
 1/*
 2 * Interface for GeoJSONUtilities
 3 *
 4 * used to parse the geojson and extract some
 5 * metadata about the layer
 6 */
 7package au.org.emii.portal.util;
 8
 9import au.org.emii.portal.net.HttpConnection;
10import net.sf.json.JSONObject;
11
12/**
13 *
14 * @author brendon
15 */
16public interface GeoJSONUtilities {
17
18    //possible feature types
19    public static final int FEATURE = 0;
20    public static final int FEATURECOLLECTION = 1;
21    public static final int POINT = 2;
22    public static final int LINESTRING = 3;
23    public static final int POLYGON = 4;
24    public static final int MULTIPOINT = 5;
25    public static final int MULTILINESTRING = 6;
26    public static final int MULTIPOLYGON = 7;
27    public static final int GEOMETRYCOLLECTION = 8;
28
29
30    public HttpConnection getHttpConnection();
31
32    public void setHttpConnection(HttpConnection httpConnection);
33
34    public int getFirstFeatureType(JSONObject obj);
35
36    public String getFirstFeatureValue(JSONObject obj, String key);
37
38    public String getJson(String url);
39
40    public int type(String type);
41}