added <dependency>
<groupId>org.json</groupId> <artifactId>json</artifactId> <version>20140107</version> <scope>compile</scope> </dependency> removed gisinterface json dependency git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer@114795 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a0072e1a56
commit
5762aa9c80
6
pom.xml
6
pom.xml
|
@ -94,6 +94,12 @@
|
|||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20140107</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- LOGGER -->
|
||||
<dependency>
|
||||
|
|
|
@ -16,13 +16,13 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
|||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.gcube.common.geoserverinterface.json.JSONArray;
|
||||
import org.gcube.common.geoserverinterface.json.JSONException;
|
||||
import org.gcube.common.geoserverinterface.json.JSONObject;
|
||||
import org.gcube.portlets.user.gisviewer.client.Constants;
|
||||
import org.gcube.portlets.user.gisviewer.client.commons.beans.LayerItem;
|
||||
import org.gcube.portlets.user.gisviewer.client.commons.beans.WfsTable;
|
||||
import org.gcube.portlets.user.gisviewer.client.commons.utils.URLMakers;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import com.extjs.gxt.ui.client.data.BaseModel;
|
||||
|
@ -135,6 +135,7 @@ public class FeatureParser {
|
|||
* @param layerItem
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private static WfsTable getTableFromJson(LayerItem layerItem, String bbox, int maxWFSFeature) {
|
||||
final WfsTable table = new WfsTable();
|
||||
table.setTitle(layerItem.getName());
|
||||
|
@ -166,6 +167,7 @@ public class FeatureParser {
|
|||
|
||||
// iterate properties
|
||||
JSONObject properties = ((JSONObject)features.get(i)).getJSONObject("properties");
|
||||
@SuppressWarnings("unchecked")
|
||||
Iterator<String> ii = properties.keys();
|
||||
while (ii.hasNext()) {
|
||||
String key = ii.next();
|
||||
|
|
Loading…
Reference in New Issue