El 12/05/2013 18:11, "geodesman" <[email protected]> escribió: > > Hola!!!
Hola > 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. > > Mi estructura de servidor es esta: > > -Openlayers: C:\ms4w\Apache\htdocs\openlayers > > -Plantilla Cofrentes.html; C:\ms4w\Apache\htdocs\SCofr\Cofrentes.html > > -Capa CofPol.kml; C:\ms4w\Apache\htdocs\openlayers\capa\CofPol.kml > > > 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. > > 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? > > Ahora bien: > - si abro desde el explorador (mozilla) mi plantilla; file:///C:/ms4w/Apache/htdocs/SCofr/Cofrentes.html- FUNCIONA mi servidor pero NO aparece el kml > > -si al explorador le digo: http://localhost/SCofr/Cofrentes.html-FUNCIONA mi > servidor pero NO aparece el kml Eso de htdocs me suena raro, debería ser un www o algo así, pero tampoco conozco Apache en Windows. ¿Te da un error 404? ¿Que te dice? Comprueba que el fichero tiene los permisos necesarios para que Apache pueda leerlo. Cuando esto te funcione, funcionará todo lo demás. Centrate aquí. > > -si al explorador le digo: http://84.126.127.237/SCofr/Cofrentes.html -NO FUNCIONA me aparece: > La conexión ha caducado > Eso será porque tu router no tiene configurado ese puerto. Usa localhost hasta que todo funcione bien. > > El servidor 84.126.127.237 está tardando demasiado en responder. > > > El sitio podría estar no disponible temporalmente o > demasiado ocupado. Vuelva a intentarlo en unos momentos. > Si no puede cargar ninguna página, compruebe la conexión > de red de su equipo. > Si su equipo o red están protegidos por un cortafuegos > o proxy, asegúrese de que Firefox tiene permiso para > acceder a la web. > > > he obtenido mi IP en: http://www.cualesmiip.com/ > > --si al explorador le digo que me busque/muestre el archivo: http://localhost/openlayers/capa/CofPol.kml - NO me devuelve nada, me dice que NO encuentra el archivo. > > The requested URL /openlayers/capa/CofPol.kml was not found on this server. > > Esto si me resulta curioso porque si apache esa bien instalado y funciona deberia devolverme el archivo con las opciones de abrir o descargarlo. > > Gracias de nuevo!!!! > > > Date: Sat, 11 May 2013 10:47:25 -0700 > From: [email protected] > To: [email protected] > 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-tp5052506p5052748.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
