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:
Francesco Mangiacrapa 2015-05-19 13:37:31 +00:00
parent a0072e1a56
commit 5762aa9c80
2 changed files with 11 additions and 3 deletions

View File

@ -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>

View File

@ -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();