[Spanish] añadir kml desde localhost

geodesman juavafer at hotmail.com
Thu May 23 02:36:26 PDT 2013


Hola de nuevo!!

Tras varios dias aparcado el tema lo he retomado. he conseguido q mi explorador (mozilla) encuentre y me devuelva el archivo; http://localhost/MisCapas/CofPol.kml

Tras cambiar mi archivo de carpeta lo he conseguido. Ahora mi archivo cuelga de la carpeta htdocs; C:\ms4w\Apache\htdocs\MisCapas\CofPol.kml
y fuera de la carpeta openlayers.

Resuelto esto sigo con el problema en el servidor en si, no me aparece el kml. El explorador me abre perfectamente mi plantilla *.html y puedo ver las restantes capas excepto ésta. Alguna sugerencia del porque?

La he definido asi:

var kml = new OpenLayers.Layer.Vector("KML",{visibility:false}, {strategies: [new OpenLayers.Strategy.Fixed()],
            protocol: new OpenLayers.Protocol.HTTP({url: "http://localhost/MisCapas/CofPol.kml",
            format: new OpenLayers.Format.KML({
            extractStyles: true,
            extractAttributes: true})})
            
            });

.....
map.addLayers([OSMlayer,gmap,wmsicv,kml]);

Date: Sat, 11 May 2013 10:47:25 -0700
From: ml-node+s1560n5052702h32 en n6.nabble.com
To: juavafer en hotmail.com
Subject: Re: añadir kml desde localhost



	

El 11/05/2013 19:05, "geodesman" <[hidden email]> escribió:

>

> no, pero esa es la ruta completa.

>

> Actualmente tengo mi plantilla html en apache: C:\ms4w\Apache\htdocs\ServidorCofrentes

>

> y el kml en:C:\openlayers\MisCapas

>

Copia la carpeta c:\openlayers a  C:\ms4w\Apache\htdocs de forma que cuando escribas en el navegador http://localhost/openlayers/MisCapas/CofPol.kml el archivo esté accesible y openlayers pueda mostrarlo. 





> Date: Sat, 11 May 2013 10:00:54 -0700

> From: [hidden email]

> To: [hidden email]

> Subject: Re: añadir kml desde localhost

>

>

>

>         ¿Está dentro de la carpeta que usa Apache?

> El 11/05/2013 18:58, "geodesman" <[hidden email]> escribió:

>

> ya he instalado apache y mapserver y nada. Sigue sin aparecerme el kml...

>

>

>

> var kml = new OpenLayers.Layer.Vector("KML",{visibility:false}, {strategies: [new OpenLayers.Strategy.Fixed()],

>

>             protocol: new OpenLayers.Protocol.HTTP({url: "http://localhost/openlayers/MisCapas/CofPol.kml",

>

>             format: new OpenLayers.Format.KML({

>

>             extractStyles: true,

>

>             extractAttributes: true})})

>

>

>

>             });

>

>

>

> si pongo en mi explorador: http://localhost/openlayers/MisCapas/CofPol.kml

>

>

>

> me devuleve esto:

>

> Not Found

>

> The requested URL /openlayers/MisCapas/CofPol.kml was not found on this server.

>

>

>

> Date: Sat, 11 May 2013 03:22:22 -0700

>

> From: [hidden email]

>

> To: [hidden email]

>

> Subject: Re: añadir kml desde localhost

>

>

>

>

>

>

>

>         No, lo que necesitas es un servidor HTTP que sirva contenido (apache, nginx, iis, ...)Mapserver es para generar "contenido" como imagenes o datos vectoriales como es tu caso.

>

>

>

> Si poniendo la URL al fichero kml en tu navegador no te devuelve nada, entonces es que no tienes servidor HTTP que pueda servir ese fichero ni a OpenLayers ni a nadie.

>

>

>

>

>

>

>

>

>

> 2013/5/11 geodesman <[hidden email]>

>

>

>

> el hecho de que aun no tenga instalado maspserver influye para q me funcione?

>

>

>

>

>

>

>

> Gracias!!!

>

>

>

>

>

>

>

> Date: Fri, 10 May 2013 16:03:22 -0700

>

>

>

> From: [hidden email]

>

>

>

> To: [hidden email]

>

>

>

> Subject: RE: añadir kml desde localhost

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>         Lo mejor es que uses path relativos como "./mikml.kml".

>

>

>

>

>

>

>

> Fijate que el archivo pueda ser leido por el usuario del servidor http, es muy comun en sistemas basados en linux/unix.

>

>

>

>

>

>

>

>

>

>

>

> SAludos.

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>                 If you reply to this email, your message will be added to the discussion below:

>

>

>

>                 http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052660.html

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>                 To unsubscribe from añadir kml desde localhost, click here.

>

>

>

>

>

>

>

>                 NAML

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

> --

>

>

>

> View this message in context: http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052681.html


>

>

>

>

>

>

> Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.

>

>

>

> _______________________________________________

>

>

>

> Spanish mailing list

>

>

>

> http://lists.osgeo.org/mailman/listinfo/spanish

>

>

>

> http://es.osgeo.org

>

>

>

> http://twitter.com/osgeoes

>

>

>

>

>

>

>

> --

>

> |----------------------------------------------------------------| OpenLayers Cookbook: http://kcy.me/ar2b

>

>

>

> | Web Page: http://www.acuriousanimal.com

>

> | Blog: http://www.acuriousanimal.com/blog

>

> | Twitter: @acanimal

>

>

>

> |----------------------------------------------------------------|   _      __

>

> |  /_)    (_ ` _   _  _)_ o  _   _   _  | / /  o .__) (_( ) ) (_  ( (_( (_( (_) |                                 _)    |----------------------------------------------------------------

>

>

>

>

>

>

>

> _______________________________________________

>

>

>

> Spanish mailing list

>

>

>

> http://lists.osgeo.org/mailman/listinfo/spanish

>

> http://es.osgeo.org

>

> http://twitter.com/osgeoes

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>                 If you reply to this email, your message will be added to the discussion below:

>

>                 http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052682.html

>

>

>

>

>

>

>

>

>                 To unsubscribe from añadir kml desde localhost, click here.

>

>

>

>                 NAML

>

>

>

>

>

>

>

>

>

> --

>

> View this message in context: http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052698.html


>

>

> Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.

>

> _______________________________________________

>

> Spanish mailing list

>

> http://lists.osgeo.org/mailman/listinfo/spanish

>

> http://es.osgeo.org

>

> http://twitter.com/osgeoes

>

>

>

> _______________________________________________

>

> Spanish mailing list

>

> http://lists.osgeo.org/mailman/listinfo/spanish

> http://es.osgeo.org

> http://twitter.com/osgeoes

>

>

>

>

>

>

>

>

>

>

>

>                 If you reply to this email, your message will be added to the discussion below:

>                 http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052699.html

>

>

>

>                 To unsubscribe from añadir kml desde localhost, click here.

>

>                 NAML

>

>

>

>

> --

> View this message in context: http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052700.html


> Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.

> _______________________________________________

> Spanish mailing list

> http://lists.osgeo.org/mailman/listinfo/spanish

> http://es.osgeo.org

> http://twitter.com/osgeoes




_______________________________________________

Spanish mailing list

http://lists.osgeo.org/mailman/listinfo/spanish
http://es.osgeo.org
http://twitter.com/osgeoes


	
	
	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052702.html
	
	
		
		To unsubscribe from añadir kml desde localhost, click here.

		NAML
	 		 	   		  



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5055160.html
Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.


More information about the Spanish mailing list