[mapserver-users] Query in frame with mapserv-demo doesn't work
Begoña Gonzalez
begodom at gmail.com
Thu Feb 14 00:02:33 PST 2008
hello david
This is my map file, I send you only one layer but the others are similars:
MAP
NAME EIEL
STATUS ON
SIZE 600 600
IMAGETYPE PNG
IMAGECOLOR 249 249 249
EXTENT 643925 4192100 645075 4197000
TEMPLATEPATTERN "eiel"
UNITS METERS
IMAGETYPE PNG
SHAPEPATH "datos"
SYMBOLSET "c:/ms4w/apps/eiel2/etc/symbols.sym"
FONTSET "c:/ms4w/apps/eiel2/etc/fonts.txt"
WEB
HEADER templates/header.html
TEMPLATE "/ms4w/apps/eiel2/plantilla.html"
FOOTER templates/footer.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
EMPTY "/eiel/VACIO.html"
END
LAYER
NAME "ABASTECIMIENTO_A"
STATUS ON
TYPE POINT
CONNECTIONTYPE oraclespatial
CONNECTION "***/***@bbdd"
DATA "GEOLOC FROM ***.**** USING UNIQUE MI_PRINX SRID 82337"
CLASS
STYLE
SYMBOL "rechteck-hoch"
COLOR 150 0 0
SIZE 15
OUTLINECOLOR 150 0 0
END
TEMPLATE "templates/ABASTECIMIENTO_A.html"
END
END
#I have more layers but similars than previous....
SCALEBAR
IMAGECOLOR 249 249 249
STATUS ON
LABEL
COLOR 0 0 0
ANTIALIAS ON
SIZE TINY
END
UNITS METERS
POSITION LR
SIZE 150 3
INTERVALS 3
TRANSPARENT TRUE
STYLE 1
END
REFERENCE
STATUS ON
IMAGE "ref/carto.gif"
SIZE 160 110
EXTENT 644125 4192100 647275 4199000
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MINBOXSIZE 5
MARKERSIZE 8
MARKER 'star'
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
END
END
Thanks
On Wed, Feb 13, 2008 at 9:10 PM, Fawcett, David
<David.Fawcett at state.mn.us> wrote:
> Please include the text of your map file.
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Begoña Gonzalez
> Sent: Wednesday, February 13, 2008 2:00 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work
>
>
> I already have my layers definition with template...
>
>
> from Oscar ^_^ <oscarfbh at gmail.com> hide details 7:57 pm (58 minutes ago)
> to Begoña Gonzalez <begodom at gmail.com>
> date Feb 13, 2008 7:57 PM
> subject Re: [mapserver-users] Query in frame with mapserv-demo doesn't work mailed-by gmail.com
>
>
> Hello Begoña, to do a query in a layer You must put it queryable. Configure a TEMPLATE in your layer definition to make your layer queryable.
>
>
> 2008/2/13, Begoña Gonzalez <begodom at gmail.com>:
> >
> >
> > - Hide quoted text -
> > Hello All
> > I´m new with MapServer.I´m trying to build my aplication based in
> > mapserv-demo. All the examples of mapserv-demo works fine. I´ve made a
> > copy of all the files and rename the aplication. I want to have the
> > same results as Adds dhtml rubber-band box. I´ve adapted the
> > index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and
> > itasca.map (renamed eielmap.) In itasca_adds_dhtml.html and itasca.map
> > I just changed regarding the layers and the map coordinates and size.
> > The index.html file I have adapted in this way, to have my starup file
> > and not having to choose the template in the select:
> >
> > <form method=GET action="frames_dhtml.html">
> >
> > <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
> > <input type="hidden" name="template" value="plantilla.html">
> > <input type="hidden" name="zoomsize" value=2>
> > <input type="hidden" name="map" value="/ms4w/apps/eiel2/eielmap.map">
> > <input type="hidden" name="root" value="/eiel2/">
> > <input type="hidden" name="map_web" value="IMAGEPATH
> > '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' TEMPLATE '/ms4w/apps/eiel2/plantilla.html'">
> > </form>
> >
> > All works fine, the zoom bottons, the layers... except the query.
> >
> > When I do a query,into the bottom frame not show me anything, there is
> > no error message of mapserver. The browser shows a message error: "no
> > se puede encontrar la pagina web" "the web page is not found...", the
> > url command is that this seems to be well:
> > http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/e
> > ielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=3
> > 17+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS
> >
> >
> > Thanks in advance and sorry form my english.
> >
> > Begoña
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list