[Mapbender-users] BBOX problem
Victor Moral
vmoral at fundacionchile.cl
Thu May 22 14:20:21 EDT 2008
Hi Michael,
thanks for your advise.
But... i'm still having trouble with setting up the initial extent.
I'm not using the set_ScaleHint module and disabled the Set_Background.
But.. still the same problem.
I've checked the extents in the mapfile (generated with AmeIN! ) without
any success.
Is there any "nasty" way to emulate the set_BBOX funcionality invoking,
for example, a JavaScript code?
I'll attach the mapfile (just in case).
Thanks a lot!
vm
Víctor Moral M.
Ingeniero de Proyectos
Area Medio Ambiente y Energía
Fundación Chile
Avda. Parque Antonio Rabat Sur 6165 - Vitacura
Tel: 56-2-2400648
www.fundacionchile.cl
Michael Schulz wrote:
> Hi Victor,
>
> from what i can see in your gui, there is definitely a problem wih
> your extent, as when the gui is loaded the first time you can examine
> the coordinates and find rather dd units looking values of
> coordinates, after hitting the zoomtofullextent button you find more
> utm looking coordinates. At the moment i have no clue, could you try
> to disable the module set_Background as it looks you're not using it.
> Did you set a min/maxscale for the gui with the setScaleHint module?
> If so, please disable it.
>
> Cheers, Michael
>
>
> 2008/5/9 Victor Moral <vmoral at fundacionchile.cl>:
>
>> Thx for your answer Michael!
>> but....
>> - The "base" layer is the first on the gui (with id 0) but it doesn't
>> start within this extent
>> - I've had also tried including
>> "mb_myBBOX=160016,6708673,666976,7226699" in the url without results.
>> - The element set_BBOX is also activated in the GUI.
>>
>> What is missing? Do you want to log into the admin gui?
>>
>> vm
>>
>> Víctor Moral M.
>> Ingeniero de Proyectos
>> Area Medio Ambiente y Energía
>> Fundación Chile
>> Avda. Parque Antonio Rabat Sur 6165 - Vitacura
>> Tel: 56-2-2400648
>> www.fundacionchile.cl
>>
>>
>>
>> Michael Schulz wrote:
>>
>>> Hi Victor,
>>>
>>> in order to start a gui with a certain bbox (different from the extent
>>> of the first wms in the gui, that's the default extent) you need the
>>> additional starturl parameter mb_myBBOX=xmin,ymin,xmax,ymax and you
>>> need to activate the module set_bbox1 for this gui.
>>>
>>> HTH, Michael
>>>
>>>
>>> 2008/5/8 Victor Moral <vmoral at fundacionchile.cl>:
>>>
>>>
>>>> Hi there!
>>>> i'm working on my first deployment of mapbender over mapserver/postgis.
>>>> Everything works great and i'm getting a superb performance from mapbender.
>>>>
>>>> The only problem i got is trying to set the initial BBOX for mapbender
>>>> after the login. I've tried everything that i found published about this
>>>> functionality, but i spend too much time without results.
>>>>
>>>> This test deployment, based on the gui2 shipped example, is running at :
>>>>
>>>> http://200.75.22.90/mapbender/frames/login.php?name=toresa&password=toresalink
>>>>
>>>> I need MB to start "zoomed at" the "base" layer.
>>>>
>>>> Any clues?
>>>>
>>>> Thx !
>>>>
>>>> vm
>>>>
>>>> --
>>>> Víctor Moral M.
>>>> Ingeniero de Proyectos
>>>> Area Medio Ambiente y Energía
>>>> Fundación Chile
>>>> Avda. Parque Antonio Rabat Sur 6165 - Vitacura
>>>> Tel: 56-2-2400648
>>>> www.fundacionchile.cl
>>>>
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> Mapbender_users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>>
>>>
>>>
>>>
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>
>
>
>
>
-------------- next part --------------
#
#Start of map file, created by AmeiN! for ArcGis 24-04-2008, 11:24:14
#
#
MAP
NAME 'elevacion'
STATUS ON
PROJECTION
'init=epsg:32719'
END
SIZE 450 300
EXTENT 160016.043779857 6708673.51639253 666976.435415836 7226699.89202056
UNITS dd
SHAPEPATH '../baseshape/'
SYMBOLSET 'salvadorsymbset.sym'
FONTSET '/mapserver/mapas/fonts.fnt'
IMAGECOLOR 255 255 255
#
#Start of web interface definition
#
WEB
LOG '../dsal.log'
TEMPLATE ''
IMAGEPATH '/tmp/'
IMAGEURL ''
METADATA
WMS_ONLINERESOURCE 'http://www.toresa.cl/cgi-bin/mapserv?map=/mapserver/mapas/dsal/basemap/elevacion.map'
WMS_SRS 'epsg:32719'
WMS_ACCESSCONSTRAINTS 'none'
WMS_TITLE 'base'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
WMS_ABSTRACT 'WMSmetatext'
END #METADATA
END #HEADER
#
# Start of querymap
#
QUERYMAP
SIZE 200 200
STATUS ON
STYLE NORMAL
COLOR 255 0 0
End
#
#Start of reference map
#
REFERENCE
STATUS ON
IMAGE refmap.jpg
SIZE 80 120
EXTENT 160016.043779857 6708673.51639253 666976.435415836 7226699.89202056
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END #REFERENCE
#
#Start of legend
#
LEGEND
STATUS ON
KEYSIZE 25 25
TEMPLATE 'legend.html'
LABEL
COLOR 0 0 0
TYPE TRUETYPE
FONT arial
SIZE 8
END # ENDE LABEL
END #LEGEND
#
# Start of scalebar
#
SCALEBAR
STATUS EMBED
POSITION LL
STYLE 1
INTERVALS 4
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END #ENDE LABEL
SIZE 200 3
OUTLINECOLOR 0 0 0
COLOR 0 0 0
BACKGROUNDCOLOR 255 255 255
UNITS KILOMETERS
END #SCALEBAR
#
# Start of layer definitions #
#
LAYER
NAME 'altitud'
TEMPLATE 'altitud_query.html'
DATA 'altitud'
STATUS on
TYPE Polygon
TRANSPARENCY 100
TOLERANCE 7
TOLERANCEUNITS pixels
METADATA
WMS_SRS 'epsg:32719'
WMS_TITLE 'base'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END #METADATA
PROJECTION
'init=epsg:32719'
END
CLASSITEM 'ALTITUD'
CLASS
NAME '0-1200'
EXPRESSION ('[ALTITUD]' eq '0-1200')
STYLE
COLOR 112 153 89
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '1200-2200'
EXPRESSION ('[ALTITUD]' eq '1200-2200')
STYLE
COLOR 142 173 106
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '2200-3400'
EXPRESSION ('[ALTITUD]' eq '2200-3400')
STYLE
COLOR 176 196 124
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '3000-3200'
EXPRESSION ('[ALTITUD]' eq '3000-3200')
STYLE
COLOR 210 219 143
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '3400-4000'
EXPRESSION ('[ALTITUD]' eq '3400-4000')
STYLE
COLOR 242 238 162
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4000-4200'
EXPRESSION ('[ALTITUD]' eq '4000-4200')
STYLE
COLOR 242 231 157
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4200-4400'
EXPRESSION ('[ALTITUD]' eq '4200-4400')
STYLE
COLOR 242 224 150
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4400-4600'
EXPRESSION ('[ALTITUD]' eq '4400-4600')
STYLE
COLOR 242 216 143
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4600-4800'
EXPRESSION ('[ALTITUD]' eq '4600-4800')
STYLE
COLOR 242 206 133
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4800-5000'
EXPRESSION ('[ALTITUD]' eq '4800-5000')
STYLE
COLOR 230 186 133
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '5000-5200'
EXPRESSION ('[ALTITUD]' eq '5000-5200')
STYLE
COLOR 217 169 130
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '5200-5400'
EXPRESSION ('[ALTITUD]' eq '5200-5400')
STYLE
COLOR 204 152 126
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '5400-5600'
EXPRESSION ('[ALTITUD]' eq '5400-5600')
STYLE
COLOR 194 140 124
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '5600-5800'
EXPRESSION ('[ALTITUD]' eq '5600-5800')
STYLE
COLOR 214 162 161
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '5800-6000'
EXPRESSION ('[ALTITUD]' eq '5800-6000')
STYLE
COLOR 227 184 193
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '6000-6200'
EXPRESSION ('[ALTITUD]' eq '6000-6200')
STYLE
COLOR 240 211 226
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '>6200'
EXPRESSION ('[ALTITUD]' eq '>6200')
STYLE
COLOR 255 242 255
OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
END #LAYER
END #End of Mapfile
More information about the Mapbender_users
mailing list