Skip to content

Commit

Permalink
Merge pull request #18 from deegree/master
Browse files Browse the repository at this point in the history
Merging deegree master into csw-sorting-bug
  • Loading branch information
aerben committed Mar 27, 2013
2 parents 374d618 + 543600a commit 91e5cc9
Show file tree
Hide file tree
Showing 260 changed files with 3,451 additions and 2,921 deletions.
2 changes: 1 addition & 1 deletion deegree-client/deegree-jsf-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,12 @@ public List<ResourceManagerMetadata2> getProcessManagers() {
public List<ResourceManagerMetadata2> getConnectionManagers() {
return getResourceManagers( "connection" );
}

public List<ResourceManagerMetadata2> getResourceManagers( String category ) {
List<ResourceManagerMetadata2> rmMetadata = new ArrayList<ResourceManagerMetadata2>();
if ( getServiceWorkspace() == null ) {
return rmMetadata;
}
for ( ResourceManager mgr : getServiceWorkspace().getResourceManagers() ) {
ResourceManagerMetadata2 md = ResourceManagerMetadata2.getMetadata( mgr );
if ( md != null && category.equals( md.getCategory() ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,15 @@ public class WorkspaceBean implements Serializable {

public static final String WS_UPLOAD_VIEW = "/console/workspace/upload";

private static final String WS_DOWNLOAD_BASE_URL = "http://download.deegree.org/deegree3/workspaces/workspaces-";
// private static final String WS_DOWNLOAD_BASE_URL = "http://download.deegree.org/deegree3/workspaces/workspaces-";

private static final String[] WS_DOWNLOAD_URLS = { "http://download.occamlabs.de/workspaces/occamlabs-workspaces" };

// only used when no build (Maven) module version information is available
private static final String DEFAULT_VERSION = "3.2-pre11-SNAPSHOT";
private static final String DEFAULT_VERSION = "3.2-rc2";

private static final String[] WS_LIST = { "deegree-workspace-csw", "deegree-workspace-inspire",
"deegree-workspace-utah", "deegree-workspace-wps" };

private final HashMap<String, String> workspaceLocations = new HashMap<String, String>();

Expand Down Expand Up @@ -164,9 +167,9 @@ public static String getWsUploadView() {
return WS_UPLOAD_VIEW;
}

public static String getWsDownloadBaseUrl() {
return WS_DOWNLOAD_BASE_URL;
}
// public static String getWsDownloadBaseUrl() {
// return WS_DOWNLOAD_BASE_URL;
// }

public static String[] getWsDownloadUrls() {
return WS_DOWNLOAD_URLS;
Expand Down Expand Up @@ -375,15 +378,20 @@ public List<String> downloadWorkspaceList( String url ) {

public List<String> getRemoteWorkspaces() {
workspaceLocations.clear();
List<String> list = downloadWorkspaceList( getDownloadBaseUrl() );
for ( String url : WS_DOWNLOAD_URLS ) {
list.addAll( downloadWorkspaceList( url ) );
List<String> list = new ArrayList<String>();
for ( String wsArtifactName : WS_LIST ) {
addWorkspaceLocation( wsArtifactName, list );
}
return list;
}

private String getDownloadBaseUrl() {
return WS_DOWNLOAD_BASE_URL + getVersion();
private void addWorkspaceLocation( String wsArtifactName, List<String> list ) {
String repo = getVersion().endsWith( "SNAPSHOT" ) ? "snapshots" : "releases";
String version = getVersion().endsWith( "SNAPSHOT" ) ? "LATEST" : getVersion();
String url = "http://repo.deegree.org/service/local/artifact/maven/redirect?r=" + repo + "&g=org.deegree&a="
+ wsArtifactName + "&v=" + version + "&e=deegree-workspace";
workspaceLocations.put( wsArtifactName, url );
list.add( wsArtifactName );
}

private String getVersion() {
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-jsf-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-sos-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-wps-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-wpsprinter-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-3d/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.deegree.filter.Expression;
import org.deegree.filter.FilterEvaluationException;
import org.deegree.filter.XPathEvaluator;
import org.deegree.geometry.Envelope;
import org.deegree.geometry.Geometry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -86,15 +87,26 @@ public <T> boolean evaluate( T obj, XPathEvaluator<T> xpathEvaluator )
} else if ( obj instanceof Feature ) {
// handle the case where the property name is empty
Feature f = (Feature) obj;
boolean foundGeom = false;
for ( Property prop : f.getProperties() ) {
if ( prop.getValue() instanceof Geometry ) {
foundGeom = true;
Geometry geom = (Geometry) prop.getValue();
Geometry transformedGeom = getCompatibleGeometry( geometry, geom );
if ( transformedGeom.intersects( geometry ) ) {
return true;
}
}
}
if ( !foundGeom ) {
Envelope env = f.getEnvelope();
if ( env != null ) {
Geometry g = getCompatibleGeometry( geometry, env );
if ( g.intersects( geometry ) ) {
return true;
}
}
}
if ( f.getExtraProperties() != null ) {
for ( Property prop : f.getExtraProperties().getProperties() ) {
if ( prop.getValue() instanceof Geometry ) {
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.2-pre16-SNAPSHOT</version>
<version>3.3-pre1-SNAPSHOT</version>
</parent>

<repositories>
Expand Down

This file was deleted.

Loading

0 comments on commit 91e5cc9

Please sign in to comment.