<p dir="ltr"><br>
El 12/05/2013 18:11, "geodesman" <<a href="mailto:juavafer@hotmail.com">juavafer@hotmail.com</a>> escribió:<br>
><br>
> Hola!!!</p>
<p dir="ltr">Hola</p>
<p dir="ltr">> Voy a intentar explicar que es lo que tengo para ver si asi alguien ve el fallo, porque yo no lo veo y ya no se que probar.<br>
><br>
> Mi estructura de servidor es esta:<br>
><br>
> -Openlayers: C:\ms4w\Apache\htdocs\openlayers<br>
><br>
> -Plantilla Cofrentes.html; C:\ms4w\Apache\htdocs\SCofr\Cofrentes.html<br>
><br>
> -Capa CofPol.kml; C:\ms4w\Apache\htdocs\openlayers\capa\CofPol.kml<br>
><br>
><br>
> En mi plantilla he configurado 4 capas; 2 conexiones wms en Base layer y otra en Overlays y que funcionan perfectamente. Una cuarta capa *.kml en Overlays que es la que no aparece en mi mapa pero si en el árbol de capas.<br>
><br>
> El Mapserver se me instaló bien, sin problemas. Cada vez q enciendo el pc le doy a: MS4W-Apache-Start y durante un par de segundos me aparece una consola con fondo negro, debe ser asi?<br>
><br>
> Ahora bien:<br>
> - si abro desde el explorador (mozilla) mi plantilla; file:///C:/ms4w/Apache/htdocs/SCofr/Cofrentes.html- FUNCIONA mi servidor pero NO aparece el kml<br>
><br>
> -si al explorador le digo: <a href="http://localhost/SCofr/Cofrentes.html-">http://localhost/SCofr/Cofrentes.html-</a> FUNCIONA mi servidor pero NO aparece el kml</p>
<p dir="ltr">Eso de htdocs me suena raro, debería ser un www o algo así, pero tampoco conozco Apache en Windows.</p>
<p dir="ltr">¿Te da un error 404? ¿Que te dice? Comprueba que el fichero tiene los permisos necesarios para que Apache pueda leerlo.</p>
<p dir="ltr">Cuando esto te funcione, funcionará todo lo demás. Centrate aquí.</p>
<p dir="ltr">><br>
> -si al explorador le digo: <a href="http://84.126.127.237/SCofr/Cofrentes.html">http://84.126.127.237/SCofr/Cofrentes.html</a> -NO FUNCIONA me aparece:<br>
> La conexión ha caducado<br>
></p>
<p dir="ltr">Eso será porque tu router no tiene configurado ese puerto. Usa localhost hasta que todo funcione bien. </p>
<p dir="ltr">><br>
> El servidor 84.126.127.237 está tardando demasiado en responder.<br>
><br>
><br>
> El sitio podría estar no disponible temporalmente o<br>
> demasiado ocupado. Vuelva a intentarlo en unos momentos.<br>
> Si no puede cargar ninguna página, compruebe la conexión<br>
> de red de su equipo.<br>
> Si su equipo o red están protegidos por un cortafuegos<br>
> o proxy, asegúrese de que Firefox tiene permiso para<br>
> acceder a la web.<br>
><br>
><br>
> he obtenido mi IP en: <a href="http://www.cualesmiip.com/">http://www.cualesmiip.com/</a><br>
><br>
> --si al explorador le digo que me busque/muestre el archivo: <a href="http://localhost/openlayers/capa/CofPol.kml">http://localhost/openlayers/capa/CofPol.kml</a> - NO me devuelve nada, me dice que NO encuentra el archivo.<br>
><br>
> The requested URL /openlayers/capa/CofPol.kml was not found on this server.<br>
><br>
> Esto si me resulta curioso porque si apache esa bien instalado y funciona deberia devolverme el archivo con las opciones de abrir o descargarlo.<br>
><br>
> Gracias de nuevo!!!!<br>
><br>
><br>
> Date: Sat, 11 May 2013 10:47:25 -0700<br>
> From: <a href="mailto:ml-node%2Bs1560n5052702h32@n6.nabble.com">ml-node+s1560n5052702h32@n6.nabble.com</a><br>
> To: <a href="mailto:juavafer@hotmail.com">juavafer@hotmail.com</a><br>
> Subject: Re: añadir kml desde localhost<br>
><br>
><br>
><br>
><br>
><br>
> El 11/05/2013 19:05, "geodesman" <[hidden email]> escribió:<br>
><br>
> ><br>
><br>
> > no, pero esa es la ruta completa.<br>
><br>
> ><br>
><br>
> > Actualmente tengo mi plantilla html en apache: C:\ms4w\Apache\htdocs\ServidorCofrentes<br>
><br>
> ><br>
><br>
> > y el kml en:C:\openlayers\MisCapas<br>
><br>
> ><br>
> Copia la carpeta c:\openlayers a C:\ms4w\Apache\htdocs de forma que cuando escribas en el navegador <a href="http://localhost/openlayers/MisCapas/CofPol.kml">http://localhost/openlayers/MisCapas/CofPol.kml</a> el archivo esté accesible y openlayers pueda mostrarlo.<br>
><br>
><br>
><br>
><br>
> > Date: Sat, 11 May 2013 10:00:54 -0700<br>
><br>
> > From: [hidden email]<br>
><br>
> > To: [hidden email]<br>
><br>
> > Subject: Re: añadir kml desde localhost<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > ¿Está dentro de la carpeta que usa Apache?<br>
><br>
> > El 11/05/2013 18:58, "geodesman" <[hidden email]> escribió:<br>
><br>
> ><br>
><br>
> > ya he instalado apache y mapserver y nada. Sigue sin aparecerme el kml...<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > var kml = new OpenLayers.Layer.Vector("KML",{visibility:false}, {strategies: [new OpenLayers.Strategy.Fixed()],<br>
><br>
> ><br>
><br>
> > protocol: new OpenLayers.Protocol.HTTP({url: "<a href="http://localhost/openlayers/MisCapas/CofPol.kml">http://localhost/openlayers/MisCapas/CofPol.kml</a>",<br>
><br>
> ><br>
><br>
> > format: new OpenLayers.Format.KML({<br>
><br>
> ><br>
><br>
> > extractStyles: true,<br>
><br>
> ><br>
><br>
> > extractAttributes: true})})<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > });<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > si pongo en mi explorador: <a href="http://localhost/openlayers/MisCapas/CofPol.kml">http://localhost/openlayers/MisCapas/CofPol.kml</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > me devuleve esto:<br>
><br>
> ><br>
><br>
> > Not Found<br>
><br>
> ><br>
><br>
> > The requested URL /openlayers/MisCapas/CofPol.kml was not found on this server.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Date: Sat, 11 May 2013 03:22:22 -0700<br>
><br>
> ><br>
><br>
> > From: [hidden email]<br>
><br>
> ><br>
><br>
> > To: [hidden email]<br>
><br>
> ><br>
><br>
> > Subject: Re: añadir kml desde localhost<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > 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.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > 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.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > 2013/5/11 geodesman <[hidden email]><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > el hecho de que aun no tenga instalado maspserver influye para q me funcione?<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Gracias!!!<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Date: Fri, 10 May 2013 16:03:22 -0700<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > From: [hidden email]<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > To: [hidden email]<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Subject: RE: añadir kml desde localhost<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Lo mejor es que uses path relativos como "./mikml.kml".<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Fijate que el archivo pueda ser leido por el usuario del servidor http, es muy comun en sistemas basados en linux/unix.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > SAludos.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > If you reply to this email, your message will be added to the discussion below:<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052660.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052660.html</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > To unsubscribe from añadir kml desde localhost, click here.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > NAML<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > --<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052681.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052681.html</a><br>
><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > _______________________________________________<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Spanish mailing list<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > --<br>
><br>
> ><br>
><br>
> > |----------------------------------------------------------------| OpenLayers Cookbook: <a href="http://kcy.me/ar2b">http://kcy.me/ar2b</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > | Web Page: <a href="http://www.acuriousanimal.com">http://www.acuriousanimal.com</a><br>
><br>
> ><br>
><br>
> > | Blog: <a href="http://www.acuriousanimal.com/blog">http://www.acuriousanimal.com/blog</a><br>
><br>
> ><br>
><br>
> > | Twitter: @acanimal<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > |----------------------------------------------------------------| _ __<br>
><br>
> ><br>
><br>
> > | /_) (_ ` _ _ _)_ o _ _ _ | / / o .__) (_( ) ) (_ ( (_( (_( (_) | _) |----------------------------------------------------------------<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > _______________________________________________<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Spanish mailing list<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
><br>
> ><br>
><br>
> > <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
><br>
> ><br>
><br>
> > <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > If you reply to this email, your message will be added to the discussion below:<br>
><br>
> ><br>
><br>
> > <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052682.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052682.html</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > To unsubscribe from añadir kml desde localhost, click here.<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > NAML<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > --<br>
><br>
> ><br>
><br>
> > View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052698.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052698.html</a><br>
><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
><br>
> ><br>
><br>
> > _______________________________________________<br>
><br>
> ><br>
><br>
> > Spanish mailing list<br>
><br>
> ><br>
><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
><br>
> ><br>
><br>
> > <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
><br>
> ><br>
><br>
> > <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > _______________________________________________<br>
><br>
> ><br>
><br>
> > Spanish mailing list<br>
><br>
> ><br>
><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
><br>
> > <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
><br>
> > <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > If you reply to this email, your message will be added to the discussion below:<br>
><br>
> > <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052699.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052699.html</a><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > To unsubscribe from añadir kml desde localhost, click here.<br>
><br>
> ><br>
><br>
> > NAML<br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> ><br>
><br>
> > --<br>
><br>
> > View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052700.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052700.html</a><br>
><br>
><br>
> > Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
><br>
> > _______________________________________________<br>
><br>
> > Spanish mailing list<br>
><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
><br>
> > <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
><br>
> > <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
><br>
> Spanish mailing list<br>
><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
> <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
> <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> If you reply to this email, your message will be added to the discussion below:<br>
> <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052702.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052702.html</a><br>
><br>
><br>
><br>
> To unsubscribe from añadir kml desde localhost, click here.<br>
><br>
> NAML<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052748.html">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052748.html</a><br>
> Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Spanish mailing list<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
> <a href="http://es.osgeo.org">http://es.osgeo.org</a><br>
> <a href="http://twitter.com/osgeoes">http://twitter.com/osgeoes</a><br>
</p>