comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java @ 585:2e690cb2247c

Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client. gnv/trunk@736 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 05 Mar 2010 09:33:30 +0000
parents 2f3d885fed09
children 5f5f273c8566
comparison
equal deleted inserted replaced
584:b31e81f35b64 585:2e690cb2247c
786 throw new ArtifactDatabaseClientException(message); 786 throw new ArtifactDatabaseClientException(message);
787 } 787 }
788 788
789 } 789 }
790 790
791 public String publishWMS(ArtifactObject factory, ArtifactObject artifact) { 791 public Document publishWMS(ArtifactObject factory, ArtifactObject artifact) {
792 log.debug("Start wms publishing..."); 792 log.debug("Start wms publishing...");
793 793
794 String target = "wms"; 794 String target = "wms";
795 String requestURL = getArtifactUrl(factory, artifact) + "/" + target; 795 String requestURL = getArtifactUrl(factory, artifact) + "/" + target;
796 Document request = createOutRequestBody( 796 Document request = createOutRequestBody(
797 artifact, target, "", "text/xml", null); 797 artifact, target, "", "text/xml", null);
798 try { 798 try {
799 InputStream input = doPostRequest(requestURL, request); 799 InputStream input = doPostRequest(requestURL, request);
800 Document result = XMLUtils.readDocument(input); 800 Document result = XMLUtils.readDocument(input);
801
802 return result;
801 } 803 }
802 catch (IOException ioe) { 804 catch (IOException ioe) {
803 log.error(ioe, ioe); 805 log.error(ioe, ioe);
804 return null; 806 return null;
805 } 807 }
806
807 // TODO Return URL to WMS service
808 return null;
809 } 808 }
810 809
811 public Collection<ArtifactStatisticsSet> calculateStatistics( 810 public Collection<ArtifactStatisticsSet> calculateStatistics(
812 ArtifactObject artifactFactory, 811 ArtifactObject artifactFactory,
813 ArtifactObject currentArtifact) 812 ArtifactObject currentArtifact)

http://dive4elements.wald.intevation.org