Updated pom version at 1.1.2 git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/spatial-data/geo-utility@182116 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c511445f50
commit
d84cfefa4f
|
@ -1,16 +1,21 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
<Changeset component="org.gcube.spatial-data.geo-utility.1-1-1"
|
<Changeset
|
||||||
date="2016-04-27">
|
component="org.gcube.spatial-data.geo-utility.1-1-2" date="2019-10-24">
|
||||||
|
<Change>Bug fixing https://support.d4science.org/issues/17831#change-92733</Change>
|
||||||
|
</Changeset>
|
||||||
|
<Changeset
|
||||||
|
component="org.gcube.spatial-data.geo-utility.1-1-1" date="2016-04-27">
|
||||||
<Change>Updated comment in WMSGetStyles class</Change>
|
<Change>Updated comment in WMSGetStyles class</Change>
|
||||||
<Change>Bug fixing for method getValueOfParameter</Change>
|
<Change>Bug fixing for method getValueOfParameter</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.spatial-data.geo-utility.1-1-0"
|
<Changeset
|
||||||
date="2016-02-09">
|
component="org.gcube.spatial-data.geo-utility.1-1-0" date="2016-02-09">
|
||||||
<Change>[Feature #2191] Updated NcWmsGetMetadata to retrieve z-axis
|
<Change>[Feature #2191] Updated NcWmsGetMetadata to retrieve z-axis
|
||||||
property</Change>
|
property
|
||||||
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.spatial-data.geo-utility.1-0-0"
|
<Changeset
|
||||||
date="2016-01-26">
|
component="org.gcube.spatial-data.geo-utility.1-0-0" date="2016-01-26">
|
||||||
<Change>[Feature #2054] First Release</Change>
|
<Change>[Feature #2054] First Release</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
</ReleaseNotes>
|
</ReleaseNotes>
|
2
pom.xml
2
pom.xml
|
@ -11,7 +11,7 @@
|
||||||
<groupId>org.gcube.spatial.data</groupId>
|
<groupId>org.gcube.spatial.data</groupId>
|
||||||
<artifactId>geo-utility</artifactId>
|
<artifactId>geo-utility</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.1.1-SNAPSHOT</version>
|
<version>1.1.2-SNAPSHOT</version>
|
||||||
<name>geo-utility</name>
|
<name>geo-utility</name>
|
||||||
<description>A library with several utility classes to work with geo-spatial data: WmsUrlValidator, GeoGetStyles, etc..</description>
|
<description>A library with several utility classes to work with geo-spatial data: WmsUrlValidator, GeoGetStyles, etc..</description>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.spatial.data.geoutility.wms;
|
package org.gcube.spatial.data.geoutility.wms;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -34,6 +35,7 @@ public class WmsUrlValidator {
|
||||||
*/
|
*/
|
||||||
public WmsUrlValidator(String wmsRequest){
|
public WmsUrlValidator(String wmsRequest){
|
||||||
this.wmsRequest = wmsRequest;
|
this.wmsRequest = wmsRequest;
|
||||||
|
logger.debug("The wms request is: "+wmsRequest);
|
||||||
int indexStart = wmsRequest.indexOf("?");
|
int indexStart = wmsRequest.indexOf("?");
|
||||||
if(indexStart==-1){
|
if(indexStart==-1){
|
||||||
this.baseWmsServiceUrl = wmsRequest;
|
this.baseWmsServiceUrl = wmsRequest;
|
||||||
|
@ -127,12 +129,17 @@ public class WmsUrlValidator {
|
||||||
//CREATING MAP TO RETURN WMS PARAMETERS NOT STANDARD
|
//CREATING MAP TO RETURN WMS PARAMETERS NOT STANDARD
|
||||||
mapWmsNoStandardParams = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER);
|
mapWmsNoStandardParams = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER);
|
||||||
|
|
||||||
|
if(params.length>0) {
|
||||||
|
logger.debug("Params are: "+Arrays.asList(params));
|
||||||
for (String param : params) {
|
for (String param : params) {
|
||||||
|
if(param!=null && !param.isEmpty()) {
|
||||||
int ei = param.indexOf("=");
|
int ei = param.indexOf("=");
|
||||||
String key = param.substring(0, ei);
|
String key = param.substring(0, ei);
|
||||||
String value = param.substring(ei+1, param.length());
|
String value = param.substring(ei+1, param.length());
|
||||||
mapWmsNoStandardParams.put(key, value);
|
mapWmsNoStandardParams.put(key, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//CREATE WMS REQUEST
|
//CREATE WMS REQUEST
|
||||||
for (String key : mapWmsParameters.keySet()) {
|
for (String key : mapWmsParameters.keySet()) {
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<ID></ID>
|
||||||
|
<Type>Library</Type>
|
||||||
|
<Profile>
|
||||||
|
<Description>{description}</Description>
|
||||||
|
<Class>SpatialData</Class>
|
||||||
|
<Name>geo-utility</Name>
|
||||||
|
<Version>1.0.0</Version>
|
||||||
|
<Packages>
|
||||||
|
<Software>
|
||||||
|
<Name>geo-utility</Name>
|
||||||
|
<Version>1.1.1-SNAPSHOT</Version>
|
||||||
|
<MavenCoordinates>
|
||||||
|
<groupId>org.gcube.spatial.data</groupId>
|
||||||
|
<artifactId>geo-utility</artifactId>
|
||||||
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
|
</MavenCoordinates>
|
||||||
|
<Files>
|
||||||
|
<File>geo-utility-1.1.1-SNAPSHOT.jar</File>
|
||||||
|
</Files>
|
||||||
|
</Software>
|
||||||
|
</Packages>
|
||||||
|
</Profile>
|
||||||
|
</Resource>
|
Loading…
Reference in New Issue