[Spanish] añadir kml desde localhost

Juan Luis Rodríguez Ponce jlrodriguez at emergya.com
Sat May 11 10:46:31 PDT 2013


El 11/05/2013 19:05, "geodesman" <juavafer en hotmail.com> 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: ml-node+s1560n5052699h39 en n6.nabble.com
> To: juavafer en hotmail.com
> 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
------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.osgeo.org/pipermail/spanish/attachments/20130511/1928add8/attachment.html>


More information about the Spanish mailing list