Stefano Gambini wrote:
> Hello,
> First of all thanks for your tips. I've been able to upload my data 
> onto a "local" web page. Now i'm trying to get and visualize the 
> attributes of those features I select by <GetFeatureInfoWSR. I'm using 
> the Mapbuilder Enhanced Map Viewer demo as a reference.
>
> This is the error message I get when I click on a feature using the 
> QueryEnable button (all my data are stored into localhost):
> file:///mapbuilder/server/php/proxy.php?url=http%3A//localhost%3A8080/geoserver/wms%3Ftopp%3AUrbanizzato_areale_poly%26REQUEST%3DGetFeatureInfo%26SERVICE%3DWMS%26VERSION%3D1.0.0%26SRS%3DEPSG%3A4326%26LAYERS%3Dtopp%3AUrbanizzato_areale_poly%26BBOX%3D1509576.380597015%2C5001228.995024876%2C1509701.6940298507%2C5001354.308457712%26WIDTH%3D604%26HEIGHT%3D404%26INFO_FORMAT%3Dapplication/vnd.ogc.gml%26FEATURE_COUNT%3D1%26QUERY_LAYERS%3Dtopp%3AUrbanizzato_areale_poly%26X%3D139%26Y%3D364%26FORMAT%3D

That will not work. proxy.php cannot be parsed by the php parser when 
opened as a file.
>
> Params:
> http://localhost:8080/geoserver/wms?topp:Urbanizzato_areale_poly&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.0.0&SRS=EPSG:4326&LAYERS=topp:Urbanizzato_areale_poly&BBOX=1509576.380597015,5001228.995024876,1509701.6940298507,5001354.308457712&WIDTH=604&HEIGHT=404&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=topp:Urbanizzato_areale_poly&X=139&Y=364&FORMAT=
>
> Response:
> [Exception... "Component returned failure code: 0x80520001 
> (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIXMLHttpRequest.send]" nsresult: 
> "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: 
> javascript: eval(__firebugTemp__); :: anonymous :: line 1" data: no]
>
> How can I sort it out?

If you have geoserver installed, you can also install mapbuilder (if you 
haven't already). And then open your mapbuilder page also from the 
server (i.e. from an url starting with http://localhost), and not from a 
file location (url starting with file:///).

If working from file locations is a requirement, you cannot call http 
urls by default, but need all data (except images) to be local. This is 
due to security restrictions of your browser. Browsers can be set up to 
allow that, but this is not recommended.

Regards,
Andreas.


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

Reply via email to