I'm trying to implement a demo webgis on my website. I have downloaded Apache
Tomcat 5.5, added Geoserver and Mapbuilder into weapps folder, uploaded my data
(as shapefiles) into geoserver via http://localhost:8080/geoserver and prepared
all files (html, config and xml context files).
Everything works except for my data: they can't be loaded into the web
application.
I am very confused on the proper <OnlineResource xlink:href="..."> to give to
<Server > in the <Layer > tag within the xml context file.
This is what i get from the wms file for one of my data (notice the <Server >
tag is missing and the only <OnlineResource xlink:href > refers to LegendURL
and points to http://localhost:8080)
<Layer queryable="1">
<Name>topp:monumenti_Villa</Name>
<Title>monumenti_Villa_Type</Title>
<Abstract>Generated from monumenti</Abstract>
<KeywordList>
<Keyword>monumenti_Villa monumenti</Keyword>
</KeywordList>
<SRS>EPSG:4326</SRS>
<!--WKT definition of this CRS:
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]-->
<LatLonBoundingBox minx="2575650.253431585" miny="4228483.677545252"
maxx="2576136.695580336" maxy="4230534.7147345655"/>
<BoundingBox SRS="EPSG:4326" minx="2575650.253431585"
miny="4228483.677545252" maxx="2576136.695580336" maxy="4230534.7147345655"/>
<Style>
<Name>poi</Name>
<Title>Default Styler</Title>
<Abstract/>
<LegendURL width="20" height="20">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://localhost:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:monumenti_Villa"/>
</LegendURL>
</Style>
</Layer>
To try and solve the issue i downloaded the whole Tomcat to my website
(www.geosisconsulting.eu). Again the wms file gives the same infos as above,
except for xlink:href in LegendURL, now pointing to
http://www.geosisconsulting.eu:80:
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
xlink:href="http://www.geosisconsulting.eu:80/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:monumenti_Villa"/>
You can give a look to the "not working" application at (i've added the demis
map):
http://www.geosisconsulting.eu/Tomcat%205.5/webapps/mapbuilder/demo/villa/index.html
I think i'm messing up with the OnlineResource href, and maybe also with
something else.
Many thanks for your help,
Stefano
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users