pmapper-users Mailing List for p.mapper (Page 195)
Brought to you by:
arminburger
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(41) |
Nov
(124) |
Dec
(80) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(56) |
Feb
(51) |
Mar
(155) |
Apr
(58) |
May
(67) |
Jun
(83) |
Jul
(76) |
Aug
(32) |
Sep
(58) |
Oct
(113) |
Nov
(63) |
Dec
(83) |
2008 |
Jan
(31) |
Feb
(34) |
Mar
(69) |
Apr
(30) |
May
(87) |
Jun
(64) |
Jul
(47) |
Aug
(18) |
Sep
(35) |
Oct
(53) |
Nov
(37) |
Dec
(31) |
2009 |
Jan
(23) |
Feb
(40) |
Mar
(65) |
Apr
(54) |
May
(92) |
Jun
(55) |
Jul
(87) |
Aug
(27) |
Sep
(81) |
Oct
(32) |
Nov
(77) |
Dec
(51) |
2010 |
Jan
(44) |
Feb
(59) |
Mar
(77) |
Apr
(54) |
May
(36) |
Jun
(36) |
Jul
(52) |
Aug
(62) |
Sep
(68) |
Oct
(58) |
Nov
(72) |
Dec
(27) |
2011 |
Jan
(15) |
Feb
(42) |
Mar
(37) |
Apr
(55) |
May
(84) |
Jun
(27) |
Jul
(27) |
Aug
(42) |
Sep
(42) |
Oct
(18) |
Nov
(83) |
Dec
(71) |
2012 |
Jan
(50) |
Feb
(75) |
Mar
(79) |
Apr
(43) |
May
(18) |
Jun
(22) |
Jul
(20) |
Aug
(13) |
Sep
(26) |
Oct
(30) |
Nov
(21) |
Dec
(30) |
2013 |
Jan
(57) |
Feb
(63) |
Mar
(53) |
Apr
(40) |
May
(39) |
Jun
(16) |
Jul
(43) |
Aug
(16) |
Sep
(37) |
Oct
(64) |
Nov
(31) |
Dec
(7) |
2014 |
Jan
(14) |
Feb
(6) |
Mar
(2) |
Apr
(9) |
May
(1) |
Jun
(18) |
Jul
(95) |
Aug
(6) |
Sep
(25) |
Oct
(33) |
Nov
(29) |
Dec
(30) |
2015 |
Jan
(16) |
Feb
(3) |
Mar
(4) |
Apr
(9) |
May
(19) |
Jun
|
Jul
(11) |
Aug
(3) |
Sep
(9) |
Oct
(11) |
Nov
(4) |
Dec
(9) |
2016 |
Jan
(21) |
Feb
(9) |
Mar
(6) |
Apr
(13) |
May
(21) |
Jun
(4) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2017 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
(3) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Armin B. <arm...@gm...> - 2006-11-02 09:31:30
|
Gabe I've never tested the use of p.mapper inside an Iframe. From a principal point of view I would expect every references inside the Iframe should work as normal, but this seems not to be the case. Trying to use the page from the Iframe outside of it works fine. My problem is that I do not get any Javascript errors (neither Firefox nor IE), even if it is clear that there are many since a lot of functions related to update etc. do not work. I'm wondering how you were able to see the JS errors. I don't know if a workaround like putting the application into a parent DIV, setting absolute positioning top/left/width/height as required, is feasible for you. I'm not sure, however, if this works then perfectly with regard to all repositioning... I'm working on a modified general layout with predefined zones where one can set them visible or invisible and place the typical elements where desired. This is just at a stage of general test, it's not working already flawlessly together with all the map elements. armin Gabe wrote: > Hi > > I have a project for which I am embedding pmapper 2.1.1 into an iframe > that is within a webapp (called shirt) implemented with the google web > toolkit. > > I have a few issues that i have been trying to solve for a few days > now. I have searched the list to no avail. I would love to here from > anyone that has experience in embedding pmapper into other webapps. > > the url for shirt is: > > http://agtrix.no-ip.info/Shirt/ > > You will have to log in (user pmapper, pw pmapper) > > The url for the pmapper webapp that is being wrapped is (this works fine): > > http://agtrix.no-ip.info/mapper/ > > the url that shirt loads into the iframe is: > > http://agtrix.no-ip.info/mapper/map.phtml?dg=Frame,Vegetation,Waterbodies,Topography,Localities,Transport,Vehicles,Hazards,Blocks&me=153.39004735,-29.0381921166,153.459723709,-28.9800605735&language=en&config=shirt > > > > my issues are: > > 1. the slider works but has the wrong initial position, it generates the error: > Error: [Exception... "'Permission denied to get property > Window.myslider' when calling method: > [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e > (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] > > 2. Some of my layers dont show even though i can search for them, see > the layer 'Blocks' (search for grower 'rose'). > > 3. the autorefresh doesnt work - generates a javascript error as well. > > 4. the zoomextent (&me=.....) only works sometimes. > > 5. the mutual disable list generates a php error but it is commented out. > [02-Nov-2006 17:27:28] P.MAPPER-ERROR: Layer/Group '' not existing. > Check '/config/config.ini' file definition for section > 'mutualDisableList'. > > below are my mapfile, config and custom files > > config_shirt.ini: > ;********************************************************************************* > ; Copyright (c) 2003-2006 Armin Burger > ; > ; Permission is hereby granted, free of charge, to any person obtaining > ; a copy of this software and associated documentation files (the "Software"), > ; to deal in the Software without restriction, including without limitation > ; the rights to use, copy, modify, merge, publish, distribute, sublicense, > ; and/or sell copies of the Software, and to permit persons to whom > the Software > ; is furnished to do so, subject to the following conditions: > ; > ; The above copyright notice and this permission notice shall be included > ; in all copies or substantial portions of the Software. > ; > ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > MERCHANTABILITY, FITNESS > ; FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR > ; COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER > ; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN > ; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. > ;********************************************************************************** > > > ;************************************************; > ; CONFIGURATION FILE FOR MAPSERVER APPLICATION ; > ; Is read by init.php and startup_config.php ; > ; Change according to application ; > ; Comments are semicolons ; ; > ;************************************************; > > > [GENERAL] > > ; p.mapper version > pmapper = 2.1.1 > > > ;==================================================== > ; MapServer Version > ; necessary only if extension dl() function is used > ; corresponding to naming of php_mapscript_xx.dll/.so > ; e.g. for php_mapscript_44.dll set > ; msVersion = 44 > ; === MANDATORY === > ;---------------------------------------------------- > msVersion = 48 > > > ;======================================= > ; Configuration directory for > ; js_config.php & php_config.php > ; without slashes or backslashes > ; === OPTIONAL === > ;--------------------------------------- > pm_config_location = shirt > > > ;================================= > ; WEB LOCATION for INCPHP dir > ; === OPTIONAL === > ;--------------------------------- > ;pm_incphp_location = ../../pmapper2lib/incphp > > > ;================================= > ; WEB LOCATION for JAVASCRIPT dir > ; === OPTIONAL === > ;--------------------------------- > ;pm_javascript_location = ../../pmapper2lib/javascript > > > ;================================================================== > ; MAP FILE > ; absolute path in file system or filename in 'pm_config_location' > ; Use slashes (/), no backslashes (\) > ; === MANDATORY === > ;------------------------------------------------------------------ > > mapFile = default.map > > > ;================================= > ; DEFAULT LANGUAGE > ;--------------------------------- > pm_default_language = en > > > > ;=============================== > ; Character encoding settings > > ; Default character set > ; UTF-8 > ;------------------------ > defCharset = UTF-8 > > ; if map file contains non-ASCII characters > ; eg for layer DESCRIPTION or CLASS names, set value to 1 > ;---------------------------------------------------------- > map2unicode = 1 > > > > ;========================================================================== > ; > ; LAYERS/GROUPS DEFINED MANUALLY > ; > ;========================================================================== > > ; ALL groups displayed in TOC in this order > ; - without definition, the order from map file will be taken. > ; - separated with commas > ; === MANDATORY === > ;----------------------------------------------------------- > ;allGroups = countries, cities, corine, dem, rivers, jpl_wms_global_mosaic > allGroups = Frame, Vegetation, Waterbodies, Localities, Topography, > Transport, Vehicles, Hazards, Blocks > > ; Default Groups (visible at start) > ; === RECOMMENDED === > ;---------------------------------- > defGroups = Frame, Vegetation, Waterbodies, Localities, Topography, > Transport, Vehicles, Hazards, Blocks > > ; Groups/Layers that shall be mutually disabled > ; if one is clicked, the other ones will be disabled > ;------------------------------------------------------------- > ;mutualDisableList = > > > ; Automatically refresh map when selection of > ; layers/grouops has changed in TOC > ;-------------------------------------------- > layerAutoRefresh = 1 > > > > ;========================================================================== > ; > ; SETTINGS FOR IDENTIFY/SEARCH/SELECT > ; > ;-------------------------------------------------------------------------- > > ; Limit for results of selection with select tool or search > ;---------------------------------------------------------- > limitResult = 300 > > ; Highlight color for identify/search zoom in > ; RGB values, separated with commas > ;--------------------------------------------- > highlightColor = 0, 255, 255 > > ; Defines if SELECT function causes feature highlight > ;----------------------------------------------------- > highlightSelected = off > > ; AUTOZOOM: zoom in automatically after results are displayed > ; possible values: off search nquery (= select) > ;------------------------------------------------------------- > autoZoom = search > > ; Add button 'zoom to All Features' to result table > ; - possible values: off search nquery (= select) > ;--------------------------------------------------- > zoomAll = search nquery > > > ; WINDOW DESIGN: > ; Query results (identify/search) in separate WINDOW or FRAME > ;------------------------------------------------------------- > infoWin = window > ;infoWin = frame > > > ; Automatically align column contents of result tables of queries > ; with regard to data type (default, numeric, currency, etc) > ; algorithm in 'sorttable.js', function 'ts_alignCols(table)' > ;----------------------------------------------------------------- > alignQueryResults = 1 > > > ; Extent buffer for zoom extent for point layers in queries > ;----------------------------------------------------------------- > pointBuffer = 0.1 > > > ;======================================================================== > ; LEGEND: ICONS SIZE AND FORMAT, LEGEND STYLE > ;------------------------------------------------------------------------ > > ; Categories Style: > ; - tree or flat > ;----------------------------------------- > catStyle = tree > ;catStyle = flat > > ; Group/Layer Style: > ; - tree or flat > ;----------------------------------------- > grpStyle = tree > ;grpStyle = flat > > ; Legend Style: > ; - attached: together with TOC > ; - swap: swapping with TOC > ; - popup: separate popup over map > ;----------------------------------------- > legStyle = attached > ;legStyle = swap > ;legStyle = popup ;;;; experimental ;;;; > > > ; Use categories to thematically group layers > ; categories defined in incphp/custom.php > ; works for TOC setting 'flat' and 'tree' > ; 1 = yes, 0 = no > ;-------------------------------------------- > useCategories = 1 > > > ; Layer list (TOC) automatically updated according to scale > ;----------------------------------------------------------- > scaleLayers = 1 > > ; Icon Width in pixels > ;---------------------- > icoW = 30 > > ; Icon Height in pixels > ;----------------------- > icoH = 18 > > > ;==================================================================== > ; IMAGE FORMATS > ; Image format for map and legend icons > ; - possible values: png jpeg gif > ;-------------------------------------------------------------------- > ;imgFormat = jpeg > imgFormat = png > > ; alternative Image format for map > ; useful eg. for imagery data > ; - possible values: png jpeg gif > altImgFormat = jpeg > > ; layer list (comma separated) that shall activate alternative > ; image format when one of these layers has status ON > altImgFormatLayers = > > > > ;============================================================= > ; DEFINE START AND END SCALE FOR ZOOM SLIDER > ; => Adapt to specific extents of the datasets > ; or use 'max' for automatically calculate from map file > ; -> in file 'map.phtml' > ;------------------------------------------------------------- > ;sliderMax = 40000000 > sliderMax = max > sliderMin = 10000 > > > > ;============================================================= > ; TOOLBAR ORIENTATION > ; - vertical or horizontal (horizontal currently not working) > ;------------------------------------------------------------- > toolBarOrientation = vertical > ;toolBarOrientation = horizontal > > > ;============================================================== > ; PDF PRINT RESOLUTION > ; - Factor to increase resolution for better image quality > ;-------------------------------------------------------------- > pdfres = 2 > > > ;============================================================== > ; DPI levels for map download > ; - used in downloaddlg.phtml > ;-------------------------------------------------------------- > dpiLevels = 150, 200, 300 > > > > ;============================================================== > ; Enable pan mode if right mouse button is pressed > ; independent of selected tool > ;-------------------------------------------------------------- > enableRightMousePan = 1 > > excerpt from php_config.php: > > $categories['Base'] = array("Frame", "Vegetation", "Waterbodies", > "Topography"); > $categories['Infrastructure'] = array("Localities", "Transport"); > $categories['Shirt'] = array("Vehicles", "Blocks", "Hazards"); > > $_SESSION['categories'] = $categories; > > > excerpt from js_config.php: > > > searchList['Vehicles'] = new Array('<?php echo _("Multi")?>', > '#c_org_truck_id', '<?php echo _("Multi ID") ?>','f.v_truck_geom'); > searchList['Blocks'] = new Array('<?php echo _("Grower")?>', > '#c_grower_name', '<?php echo _("Growers name") ?>','f.v_block_geom'); > > default.map: > > MAP > NAME "Test_01" > STATUS ON > EXTENT 112.883330 -44.000000 154.000000 -9.000000 > SIZE 1100 900 > SHAPEPATH "/var/www/GA250K" > SYMBOLSET "/var/www/htdocs/symbols/symbol.sym" > FONTSET "/var/www/htdocs/fonts/fonts.inc" > IMAGETYPE PNG > RESOLUTION 96 > IMAGECOLOR 160 200 255 > UNITS DD > DEBUG ON > > OUTPUTFORMAT > NAME png > MIMETYPE "image/png" > DRIVER "GD/PNG" > FORMATOPTION "INTERLACE=OFF" > END > > WEB > IMAGEPATH "/var/www/htdocs/images.tmp/" > IMAGEURL "/images.tmp/" > LOG "/var/www/htdocs/images.tmp/log.txt" > END # WEB > > REFERENCE > STATUS ON > IMAGE "reference_aust.png" > SIZE 170 146 > EXTENT 112.883330 -44.000000 154.000000 -9.000000 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END #REFERENCE > > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 255 0 > STYLE SELECTED > END > > SCALEBAR > STATUS ON > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > IMAGECOLOR 255 255 255 > TRANSPARENT OFF > UNITS KILOMETERS > INTERVALS 5 > SIZE 180 6 > STYLE 0 > LABEL > SIZE TINY > OFFSET 0 0 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > END > END > # # # # # > # Start of layer definitions > > # R 1 > LAYER > GROUP "Frame" > NAME "frame" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Frame_Regions.TAB" > CLASSITEM "FEAT_CODE" > LABELITEM "NAME" > LABELMAXSCALE 10000000 > LABELMINSCALE 10000 > CLASS > EXPRESSION "mainland" > NAME "Mainland" > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 8 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > COLOR 255 255 204 > END > END > CLASS > EXPRESSION "sea" > NAME "Sea" > LABEL > TYPE truetype > FONT "Vera" > MINDISTANCE 400 > SIZE 9 > POSITION CR > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > COLOR 160 200 255 > END > END > CLASS > EXPRESSION "island" > NAME "Island" > LABEL > TYPE truetype > FONT "Vera" > MINDISTANCE 400 > SIZE 7 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > COLOR 255 255 204 > END > END > METADATA > "DESCRIPTION" "Frame" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END # Frame_Regions > > # R 2 > LAYER > NAME "vegetation" > GROUP "Vegetation" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Vege_Vegetation_Regions.TAB" > CLASSITEM "FEAT_CODE" > CLASS > NAME "Forest" > EXPRESSION "forest" > STYLE > COLOR 146 226 146 > END > END > CLASS > NAME "Mangrove" > EXPRESSION "mangrove" > STYLE > COLOR 179 255 198 > END > END > CLASS > NAME "Orchard" > EXPRESSION "orchard" > STYLE > COLOR 52 197 52 > END > END > CLASS > NAME "Pine" > EXPRESSION "pine" > STYLE > COLOR 125 255 182 > END > END > CLASS > NAME "Rainforest" > EXPRESSION "rainforest" > STYLE > COLOR 167 255 138 > END > END > METADATA > "DESCRIPTION" "Vegetation" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END # end Vegetation > > # R 3 > LAYER > NAME "Res_ReservedAreas" > GROUP "Vegetation" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Res_ReservedAreas.TAB" > LABELITEM "NAME" > LABELMAXSCALE 400000 > CLASS > NAME "Reserved areas" > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 6 > POSITION cc > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > OUTLINECOLOR 0 214 104 > END > END > METADATA > "DESCRIPTION" "Vegetation" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > # R 5 > LAYER > NAME "waterbodies" > GROUP "Waterbodies" > STATUS ON > MAXSCALE 600000 > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Hydro_Waterbodies_Regions.TAB" > CLASSITEM "FEAT_CODE" > LABELITEM "NAME" > CLASS > NAME "Lake" > EXPRESSION "lake" > STYLE > COLOR 160 200 255 > END > END > CLASS > NAME "River" > EXPRESSION "watercours_a" > STYLE > COLOR 160 200 255 > END > END > CLASS > NAME "Flood prone" > EXPRESSION "sub_to_inund" > STYLE > COLOR 210 210 210 > END > END > CLASS > NAME "Swamp" > EXPRESSION "swamp" > STYLE > COLOR 151 204 204 > END > END > CLASS > NAME "Sewerage pond" > EXPRESSION "sew_pond" > STYLE > COLOR 84 212 148 > END > END > METADATA > "DESCRIPTION" "Waterbodies" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > > # R 6 > LAYER > NAME "localities" > GROUP "Localities" > STATUS ON > MAXSCALE 2000000 > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Infra_Localities_Regions.TAB" > CLASSITEM "FEAT_CODE" > LABELITEM "NAME" > LABELMAXSCALE 1000000 > LABELMINSCALE 10000 > CLASS > NAME "Prohibited" > EXPRESSION "proh_a" > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 6 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > COLOR 192 192 192 > END > END > METADATA > "DESCRIPTION" "Localities" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > > # R 7 > LAYER > NAME "Infra_BuiltUpAreas_Regions" > GROUP "Localities" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "Infra_BuiltUpAreas_Regions.TAB" > CLASSITEM "FEAT_CODE" > LABELITEM "NAME" > LABELMAXSCALE 10000000 > METADATA > "DESCRIPTION" "Localities" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > TOLERANCE 10 > TOLERANCEUNITS pixels > CLASS > NAME "Urban area" > EXPRESSION "builtup_a" > STYLE > COLOR 255 204 230 > END > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 8 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > END > CLASS > NAME "Park" > EXPRESSION "park" > STYLE > COLOR 122 255 156 > # OUTLINECOLOR 0 0 0 > END > # LABEL > # MINDISTANCE 400 > # TYPE truetype > # FONT "Vera" > # SIZE 6 > # POSITION AUTO > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # PARTIALS FALSE > # END > END > CLASS > NAME "Cemetery" > EXPRESSION "cemetery" > STYLE > COLOR 40 40 40 > # OUTLINECOLOR 0 0 0 > END > # LABEL > # MINDISTANCE 400 > # TYPE truetype > # FONT "Vera" > # SIZE 6 > # POSITION AUTO > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # PARTIALS FALSE > # END > END > END > > # R > LAYER > NAME "Blocks" > STATUS ON > MAXSCALE 2000000 > TYPE POLYGON > CONNECTIONTYPE postgis > CONNECTION "connection string" > DATA "the_geom from r.v_block_geom" > LABELITEM "c_grower_name" > TOLERANCE 10 > TOLERANCEUNITS pixels > LABELMAXSCALE 100000 > LABELMINSCALE 1000 > TEMPLATE "void" > CLASS > NAME "Block" > STYLE > SYMBOL "stippled" > COLOR 0 128 0 > OUTLINECOLOR 255 255 0 > END > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 6 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > END > METADATA > "DESCRIPTION" "Blocks" > "RESULT_FIELDS" "i_base_id,c_rotation_order,c_org_farm_id,c_grower_name" > "RESULT_HEADERS" "Base,Order,Farm ID,Grower" > END # Metadata > END > > # L 1 > # LAYER > # GROUP "frame" > # NAME "Frame_Lines" > # STATUS DEFAULT > # TYPE LINE > # CONNECTIONTYPE OGR > # CONNECTION "Frame_Lines.TAB" > # CLASSITEM "FEAT_CODE" > # CLASS > # NAME "State Border" > # EXPRESSION "state_border" > # STYLE > # SYMBOL "dashed_long" > # SIZE 1 > # COLOR 0 0 0 > # END > # END > # END > > # L 3 > LAYER > NAME "topography" > GROUP "Topography" > STATUS ON > MAXSCALE 250000 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "Relief_Contours_Lines.TAB" > CLASSITEM "FEAT_CODE" > CLASS > NAME "50m Contours" > EXPRESSION "contour" > STYLE > COLOR 180 180 0 > END > END > METADATA > "DESCRIPTION" "Topography" > END # Metadata > END > > > # L 3B > LAYER > NAME "Relief_SandRidges_Lines" > GROUP "Topography" > STATUS ON > TYPE LINE > MAXSCALE 250000 > CONNECTIONTYPE OGR > CONNECTION "Relief_SandRidges_Lines.TAB" > CLASSITEM "FEAT_CODE" > CLASS > NAME "Sand ridge" > EXPRESSION "sand_ridge" > STYLE > COLOR 255 199 143 > END > END > METADATA > "DESCRIPTION" "Topography" > END # Metadata > END > > # L 5 > LAYER > NAME "Hydro_Drainage_Lines" > GROUP "Waterbodies" > STATUS ON > MAXSCALE 500000 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "Hydro_Drainage_Lines.TAB" > CLASSITEM "FEAT_CODE" > LABELITEM "NAME" > CLASS > NAME "Canal" > EXPRESSION "canal" > STYLE > COLOR 153 255 255 > END > END > CLASS > NAME "connector" > EXPRESSION "connector" > STYLE > COLOR 160 200 255 > END > END > CLASS > NAME "Rapids" > EXPRESSION "rapid_l" > STYLE > COLOR 153 255 255 > END > END > CLASS > NAME "Spillway" > EXPRESSION "spillway" > STYLE > COLOR 160 200 255 > END > END > CLASS > NAME "Watercourse" > EXPRESSION "watercours_l" > STYLE > COLOR 160 200 255 > END > END > METADATA > "DESCRIPTION" "Waterbodies" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > > # R 1 > #LAYER > # NAME "jpl_wms_global_mosaic" > # GROUP "Satelite" > # TYPE RASTER > # STATUS ON > # CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" > # CONNECTIONTYPE WMS > # PROJECTION > # "init=epsg:4326" > # END > # METADATA > # "DESCRIPTION" "JPL Global Mosaic (WMS)" > # "wms_name" "global_mosaic_base" > # "wms_style" "visual" > # "wms_server_version" "1.1.1" > # "wms_format" "image/jpeg" > # END > #END > > > # L 7 > LAYER > NAME "transport" > GROUP "Transport" > STATUS ON > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "Infra_RoadTransport_Lines.TAB" > CLASSITEM "CLASS" > METADATA > "wms_title" "Infra_RoadTransport_Lines" > END > CLASS > NAME "unsealed road" > EXPRESSION "5" > MAXSCALE 200000 > STYLE > SYMBOL "dotted" > COLOR 128 64 0 > END > END > CLASS > NAME "minor road" > EXPRESSION "4" > MAXSCALE 750000 > STYLE > COLOR 128 64 0 > END > END > CLASS > NAME "major road" > EXPRESSION "3" > MAXSCALE 1500000 > STYLE > COLOR 0 0 0 > END > END > CLASS > NAME "highway" > EXPRESSION "2" > MAXSCALE 2000000 > STYLE > SYMBOL "double_line" > COLOR 0 0 0 > END > END > CLASS > NAME "freeway" > EXPRESSION "1" > STYLE > SYMBOL "thick_line" > COLOR 45 134 45 > END > END > METADATA > "DESCRIPTION" "Transport" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > > LAYER > NAME "Hazards" > STATUS ON > MAXSCALE 2000000 > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION "connection string" > DATA "the_geom from r.v_hazard_geom" > CLASSITEM "c_type" > CLASS > EXPRESSION "Low Powerline" > NAME "Low Powerline" > MAXSCALE 2000000 > STYLE > SYMBOL "double_line" > COLOR 255 0 0 > END > END > METADATA > "DESCRIPTION" "Hazards" > END # Metadata > END > > # P 3 > LAYER > NAME "Infra_Buildings_Points" > GROUP "Localities" > STATUS ON > MAXSCALE 200000 > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "Infra_Buildings_Points.TAB" > CLASS > NAME "Building" > STYLE > SYMBOL "square" > COLOR 0 0 0 > END > END > METADATA > "DESCRIPTION" "Localities" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > END > > # P 4 > LAYER > NAME "Infra_Localities_Points" > GROUP "Localities" > TYPE POINT > STATUS ON > MAXSCALE 400000 > CONNECTIONTYPE OGR > CONNECTION "Infra_Localities_Points.TAB" > LABELITEM "NAME" > METADATA > "DESCRIPTION" "Localities" > "RESULT_FIELDS" "NAME,FEAT_CODE" > "RESULT_HEADERS" "Name,Type" > END # Metadata > TOLERANCE 10 > TOLERANCEUNITS pixels > CLASS > NAME "Locality" > LABEL > MINDISTANCE 400 > TYPE truetype > FONT "Vera" > SIZE 6 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > STYLE > SYMBOL "circle" > COLOR 255 50 100 > OUTLINECOLOR 0 0 0 > SIZE 4 > END > END > END > > # P 8 > # LAYER > # NAME "Pads" > # GROUP "Pads" > # STATUS ON > # TYPE POINT > # CONNECTIONTYPE postgis > # CONNECTION "user=simplot password=qwerty123 dbname=webfred host=localhost" > # DATA "the_geom from t_destinations" > # LABELITEM "c_site_name" > # TOLERANCE 3 > # TOLERANCEUNITS pixels > # METADATA > # "RESULT_FIELDS" "i_site_id,c_site_name" > # "RESULT_HEADERS" "Site ID,Name" > # END # Metadata > # CLASS > # NAME "Pad" > # LABEL > # TYPE truetype > # FONT "VeraBold" > # SIZE 7 > # POSITION ur > # OFFSET 0 0 > # BUFFER 4 > # COLOR 128 0 0 > # OUTLINECOLOR 255 255 255 > # ANTIALIAS TRUE > # END > # STYLE > # SYMBOL "tree" > # COLOR 255 50 100 > # OUTLINECOLOR 0 0 0 > # SIZE 6 > # END > # TEMPLATE "void" > # END > # END > > > # P 9 > LAYER > NAME "Vehicles" > GROUP "Vehicles" > STATUS ON > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "connection string" > DATA "the_geom from f.v_truck_geom" > LABELITEM "c_org_truck_id" > TOLERANCE 30 > TOLERANCEUNITS pixels > CLASS > NAME "Truck" > LABEL > TYPE truetype > FONT "VeraBold" > SIZE 7 > POSITION uc > OFFSET 0 -10 > BUFFER 4 > COLOR 128 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS TRUE > END > STYLE > SYMBOL "truck" > COLOR 255 50 100 > OUTLINECOLOR 0 0 0 > END > TEMPLATE "void" > END > METADATA > "DESCRIPTION" "Vehicles" > "RESULT_FIELDS" "c_org_truck_id,i_speed,i_bearing,d_timestamp" > "RESULT_HEADERS" "Multi #,Speed,Bearing,Time" > END # Metadata > END > > > > END > > > sorry for such a long message and thanks in advance > > Gabriel > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > |
From: Gabe <ga...@ag...> - 2006-11-02 07:08:15
|
Hi I have a project for which I am embedding pmapper 2.1.1 into an iframe that is within a webapp (called shirt) implemented with the google web toolkit. I have a few issues that i have been trying to solve for a few days now. I have searched the list to no avail. I would love to here from anyone that has experience in embedding pmapper into other webapps. the url for shirt is: http://agtrix.no-ip.info/Shirt/ You will have to log in (user pmapper, pw pmapper) The url for the pmapper webapp that is being wrapped is (this works fine): http://agtrix.no-ip.info/mapper/ the url that shirt loads into the iframe is: http://agtrix.no-ip.info/mapper/map.phtml?dg=Frame,Vegetation,Waterbodies,Topography,Localities,Transport,Vehicles,Hazards,Blocks&me=153.39004735,-29.0381921166,153.459723709,-28.9800605735&language=en&config=shirt my issues are: 1. the slider works but has the wrong initial position, it generates the error: Error: [Exception... "'Permission denied to get property Window.myslider' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] 2. Some of my layers dont show even though i can search for them, see the layer 'Blocks' (search for grower 'rose'). 3. the autorefresh doesnt work - generates a javascript error as well. 4. the zoomextent (&me=.....) only works sometimes. 5. the mutual disable list generates a php error but it is commented out. [02-Nov-2006 17:27:28] P.MAPPER-ERROR: Layer/Group '' not existing. Check '/config/config.ini' file definition for section 'mutualDisableList'. below are my mapfile, config and custom files config_shirt.ini: ;********************************************************************************* ; Copyright (c) 2003-2006 Armin Burger ; ; Permission is hereby granted, free of charge, to any person obtaining ; a copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation ; the rights to use, copy, modify, merge, publish, distribute, sublicense, ; and/or sell copies of the Software, and to permit persons to whom the Software ; is furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included ; in all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS ; FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR ; COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER ; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ;********************************************************************************** ;************************************************; ; CONFIGURATION FILE FOR MAPSERVER APPLICATION ; ; Is read by init.php and startup_config.php ; ; Change according to application ; ; Comments are semicolons ; ; ;************************************************; [GENERAL] ; p.mapper version pmapper = 2.1.1 ;==================================================== ; MapServer Version ; necessary only if extension dl() function is used ; corresponding to naming of php_mapscript_xx.dll/.so ; e.g. for php_mapscript_44.dll set ; msVersion = 44 ; === MANDATORY === ;---------------------------------------------------- msVersion = 48 ;======================================= ; Configuration directory for ; js_config.php & php_config.php ; without slashes or backslashes ; === OPTIONAL === ;--------------------------------------- pm_config_location = shirt ;================================= ; WEB LOCATION for INCPHP dir ; === OPTIONAL === ;--------------------------------- ;pm_incphp_location = ../../pmapper2lib/incphp ;================================= ; WEB LOCATION for JAVASCRIPT dir ; === OPTIONAL === ;--------------------------------- ;pm_javascript_location = ../../pmapper2lib/javascript ;================================================================== ; MAP FILE ; absolute path in file system or filename in 'pm_config_location' ; Use slashes (/), no backslashes (\) ; === MANDATORY === ;------------------------------------------------------------------ mapFile = default.map ;================================= ; DEFAULT LANGUAGE ;--------------------------------- pm_default_language = en ;=============================== ; Character encoding settings ; Default character set ; UTF-8 ;------------------------ defCharset = UTF-8 ; if map file contains non-ASCII characters ; eg for layer DESCRIPTION or CLASS names, set value to 1 ;---------------------------------------------------------- map2unicode = 1 ;========================================================================== ; ; LAYERS/GROUPS DEFINED MANUALLY ; ;========================================================================== ; ALL groups displayed in TOC in this order ; - without definition, the order from map file will be taken. ; - separated with commas ; === MANDATORY === ;----------------------------------------------------------- ;allGroups = countries, cities, corine, dem, rivers, jpl_wms_global_mosaic allGroups = Frame, Vegetation, Waterbodies, Localities, Topography, Transport, Vehicles, Hazards, Blocks ; Default Groups (visible at start) ; === RECOMMENDED === ;---------------------------------- defGroups = Frame, Vegetation, Waterbodies, Localities, Topography, Transport, Vehicles, Hazards, Blocks ; Groups/Layers that shall be mutually disabled ; if one is clicked, the other ones will be disabled ;------------------------------------------------------------- ;mutualDisableList = ; Automatically refresh map when selection of ; layers/grouops has changed in TOC ;-------------------------------------------- layerAutoRefresh = 1 ;========================================================================== ; ; SETTINGS FOR IDENTIFY/SEARCH/SELECT ; ;-------------------------------------------------------------------------- ; Limit for results of selection with select tool or search ;---------------------------------------------------------- limitResult = 300 ; Highlight color for identify/search zoom in ; RGB values, separated with commas ;--------------------------------------------- highlightColor = 0, 255, 255 ; Defines if SELECT function causes feature highlight ;----------------------------------------------------- highlightSelected = off ; AUTOZOOM: zoom in automatically after results are displayed ; possible values: off search nquery (= select) ;------------------------------------------------------------- autoZoom = search ; Add button 'zoom to All Features' to result table ; - possible values: off search nquery (= select) ;--------------------------------------------------- zoomAll = search nquery ; WINDOW DESIGN: ; Query results (identify/search) in separate WINDOW or FRAME ;------------------------------------------------------------- infoWin = window ;infoWin = frame ; Automatically align column contents of result tables of queries ; with regard to data type (default, numeric, currency, etc) ; algorithm in 'sorttable.js', function 'ts_alignCols(table)' ;----------------------------------------------------------------- alignQueryResults = 1 ; Extent buffer for zoom extent for point layers in queries ;----------------------------------------------------------------- pointBuffer = 0.1 ;======================================================================== ; LEGEND: ICONS SIZE AND FORMAT, LEGEND STYLE ;------------------------------------------------------------------------ ; Categories Style: ; - tree or flat ;----------------------------------------- catStyle = tree ;catStyle = flat ; Group/Layer Style: ; - tree or flat ;----------------------------------------- grpStyle = tree ;grpStyle = flat ; Legend Style: ; - attached: together with TOC ; - swap: swapping with TOC ; - popup: separate popup over map ;----------------------------------------- legStyle = attached ;legStyle = swap ;legStyle = popup ;;;; experimental ;;;; ; Use categories to thematically group layers ; categories defined in incphp/custom.php ; works for TOC setting 'flat' and 'tree' ; 1 = yes, 0 = no ;-------------------------------------------- useCategories = 1 ; Layer list (TOC) automatically updated according to scale ;----------------------------------------------------------- scaleLayers = 1 ; Icon Width in pixels ;---------------------- icoW = 30 ; Icon Height in pixels ;----------------------- icoH = 18 ;==================================================================== ; IMAGE FORMATS ; Image format for map and legend icons ; - possible values: png jpeg gif ;-------------------------------------------------------------------- ;imgFormat = jpeg imgFormat = png ; alternative Image format for map ; useful eg. for imagery data ; - possible values: png jpeg gif altImgFormat = jpeg ; layer list (comma separated) that shall activate alternative ; image format when one of these layers has status ON altImgFormatLayers = ;============================================================= ; DEFINE START AND END SCALE FOR ZOOM SLIDER ; => Adapt to specific extents of the datasets ; or use 'max' for automatically calculate from map file ; -> in file 'map.phtml' ;------------------------------------------------------------- ;sliderMax = 40000000 sliderMax = max sliderMin = 10000 ;============================================================= ; TOOLBAR ORIENTATION ; - vertical or horizontal (horizontal currently not working) ;------------------------------------------------------------- toolBarOrientation = vertical ;toolBarOrientation = horizontal ;============================================================== ; PDF PRINT RESOLUTION ; - Factor to increase resolution for better image quality ;-------------------------------------------------------------- pdfres = 2 ;============================================================== ; DPI levels for map download ; - used in downloaddlg.phtml ;-------------------------------------------------------------- dpiLevels = 150, 200, 300 ;============================================================== ; Enable pan mode if right mouse button is pressed ; independent of selected tool ;-------------------------------------------------------------- enableRightMousePan = 1 excerpt from php_config.php: $categories['Base'] = array("Frame", "Vegetation", "Waterbodies", "Topography"); $categories['Infrastructure'] = array("Localities", "Transport"); $categories['Shirt'] = array("Vehicles", "Blocks", "Hazards"); $_SESSION['categories'] = $categories; excerpt from js_config.php: searchList['Vehicles'] = new Array('<?php echo _("Multi")?>', '#c_org_truck_id', '<?php echo _("Multi ID") ?>','f.v_truck_geom'); searchList['Blocks'] = new Array('<?php echo _("Grower")?>', '#c_grower_name', '<?php echo _("Growers name") ?>','f.v_block_geom'); default.map: MAP NAME "Test_01" STATUS ON EXTENT 112.883330 -44.000000 154.000000 -9.000000 SIZE 1100 900 SHAPEPATH "/var/www/GA250K" SYMBOLSET "/var/www/htdocs/symbols/symbol.sym" FONTSET "/var/www/htdocs/fonts/fonts.inc" IMAGETYPE PNG RESOLUTION 96 IMAGECOLOR 160 200 255 UNITS DD DEBUG ON OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" FORMATOPTION "INTERLACE=OFF" END WEB IMAGEPATH "/var/www/htdocs/images.tmp/" IMAGEURL "/images.tmp/" LOG "/var/www/htdocs/images.tmp/log.txt" END # WEB REFERENCE STATUS ON IMAGE "reference_aust.png" SIZE 170 146 EXTENT 112.883330 -44.000000 154.000000 -9.000000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 255 0 STYLE SELECTED END SCALEBAR STATUS ON COLOR 0 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS KILOMETERS INTERVALS 5 SIZE 180 6 STYLE 0 LABEL SIZE TINY OFFSET 0 0 COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END # # # # # # Start of layer definitions # R 1 LAYER GROUP "Frame" NAME "frame" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Frame_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 10000000 LABELMINSCALE 10000 CLASS EXPRESSION "mainland" NAME "Mainland" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 255 255 204 END END CLASS EXPRESSION "sea" NAME "Sea" LABEL TYPE truetype FONT "Vera" MINDISTANCE 400 SIZE 9 POSITION CR COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 160 200 255 END END CLASS EXPRESSION "island" NAME "Island" LABEL TYPE truetype FONT "Vera" MINDISTANCE 400 SIZE 7 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 255 255 204 END END METADATA "DESCRIPTION" "Frame" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # Frame_Regions # R 2 LAYER NAME "vegetation" GROUP "Vegetation" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Vege_Vegetation_Regions.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "Forest" EXPRESSION "forest" STYLE COLOR 146 226 146 END END CLASS NAME "Mangrove" EXPRESSION "mangrove" STYLE COLOR 179 255 198 END END CLASS NAME "Orchard" EXPRESSION "orchard" STYLE COLOR 52 197 52 END END CLASS NAME "Pine" EXPRESSION "pine" STYLE COLOR 125 255 182 END END CLASS NAME "Rainforest" EXPRESSION "rainforest" STYLE COLOR 167 255 138 END END METADATA "DESCRIPTION" "Vegetation" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # end Vegetation # R 3 LAYER NAME "Res_ReservedAreas" GROUP "Vegetation" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Res_ReservedAreas.TAB" LABELITEM "NAME" LABELMAXSCALE 400000 CLASS NAME "Reserved areas" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION cc COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE OUTLINECOLOR 0 214 104 END END METADATA "DESCRIPTION" "Vegetation" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 5 LAYER NAME "waterbodies" GROUP "Waterbodies" STATUS ON MAXSCALE 600000 TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Hydro_Waterbodies_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" CLASS NAME "Lake" EXPRESSION "lake" STYLE COLOR 160 200 255 END END CLASS NAME "River" EXPRESSION "watercours_a" STYLE COLOR 160 200 255 END END CLASS NAME "Flood prone" EXPRESSION "sub_to_inund" STYLE COLOR 210 210 210 END END CLASS NAME "Swamp" EXPRESSION "swamp" STYLE COLOR 151 204 204 END END CLASS NAME "Sewerage pond" EXPRESSION "sew_pond" STYLE COLOR 84 212 148 END END METADATA "DESCRIPTION" "Waterbodies" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 6 LAYER NAME "localities" GROUP "Localities" STATUS ON MAXSCALE 2000000 TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Infra_Localities_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 1000000 LABELMINSCALE 10000 CLASS NAME "Prohibited" EXPRESSION "proh_a" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 192 192 192 END END METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 7 LAYER NAME "Infra_BuiltUpAreas_Regions" GROUP "Localities" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Infra_BuiltUpAreas_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 10000000 METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata TOLERANCE 10 TOLERANCEUNITS pixels CLASS NAME "Urban area" EXPRESSION "builtup_a" STYLE COLOR 255 204 230 END LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END END CLASS NAME "Park" EXPRESSION "park" STYLE COLOR 122 255 156 # OUTLINECOLOR 0 0 0 END # LABEL # MINDISTANCE 400 # TYPE truetype # FONT "Vera" # SIZE 6 # POSITION AUTO # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # PARTIALS FALSE # END END CLASS NAME "Cemetery" EXPRESSION "cemetery" STYLE COLOR 40 40 40 # OUTLINECOLOR 0 0 0 END # LABEL # MINDISTANCE 400 # TYPE truetype # FONT "Vera" # SIZE 6 # POSITION AUTO # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # PARTIALS FALSE # END END END # R LAYER NAME "Blocks" STATUS ON MAXSCALE 2000000 TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from r.v_block_geom" LABELITEM "c_grower_name" TOLERANCE 10 TOLERANCEUNITS pixels LABELMAXSCALE 100000 LABELMINSCALE 1000 TEMPLATE "void" CLASS NAME "Block" STYLE SYMBOL "stippled" COLOR 0 128 0 OUTLINECOLOR 255 255 0 END LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END END METADATA "DESCRIPTION" "Blocks" "RESULT_FIELDS" "i_base_id,c_rotation_order,c_org_farm_id,c_grower_name" "RESULT_HEADERS" "Base,Order,Farm ID,Grower" END # Metadata END # L 1 # LAYER # GROUP "frame" # NAME "Frame_Lines" # STATUS DEFAULT # TYPE LINE # CONNECTIONTYPE OGR # CONNECTION "Frame_Lines.TAB" # CLASSITEM "FEAT_CODE" # CLASS # NAME "State Border" # EXPRESSION "state_border" # STYLE # SYMBOL "dashed_long" # SIZE 1 # COLOR 0 0 0 # END # END # END # L 3 LAYER NAME "topography" GROUP "Topography" STATUS ON MAXSCALE 250000 TYPE LINE CONNECTIONTYPE OGR CONNECTION "Relief_Contours_Lines.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "50m Contours" EXPRESSION "contour" STYLE COLOR 180 180 0 END END METADATA "DESCRIPTION" "Topography" END # Metadata END # L 3B LAYER NAME "Relief_SandRidges_Lines" GROUP "Topography" STATUS ON TYPE LINE MAXSCALE 250000 CONNECTIONTYPE OGR CONNECTION "Relief_SandRidges_Lines.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "Sand ridge" EXPRESSION "sand_ridge" STYLE COLOR 255 199 143 END END METADATA "DESCRIPTION" "Topography" END # Metadata END # L 5 LAYER NAME "Hydro_Drainage_Lines" GROUP "Waterbodies" STATUS ON MAXSCALE 500000 TYPE LINE CONNECTIONTYPE OGR CONNECTION "Hydro_Drainage_Lines.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" CLASS NAME "Canal" EXPRESSION "canal" STYLE COLOR 153 255 255 END END CLASS NAME "connector" EXPRESSION "connector" STYLE COLOR 160 200 255 END END CLASS NAME "Rapids" EXPRESSION "rapid_l" STYLE COLOR 153 255 255 END END CLASS NAME "Spillway" EXPRESSION "spillway" STYLE COLOR 160 200 255 END END CLASS NAME "Watercourse" EXPRESSION "watercours_l" STYLE COLOR 160 200 255 END END METADATA "DESCRIPTION" "Waterbodies" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 1 #LAYER # NAME "jpl_wms_global_mosaic" # GROUP "Satelite" # TYPE RASTER # STATUS ON # CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" # CONNECTIONTYPE WMS # PROJECTION # "init=epsg:4326" # END # METADATA # "DESCRIPTION" "JPL Global Mosaic (WMS)" # "wms_name" "global_mosaic_base" # "wms_style" "visual" # "wms_server_version" "1.1.1" # "wms_format" "image/jpeg" # END #END # L 7 LAYER NAME "transport" GROUP "Transport" STATUS ON TYPE LINE CONNECTIONTYPE OGR CONNECTION "Infra_RoadTransport_Lines.TAB" CLASSITEM "CLASS" METADATA "wms_title" "Infra_RoadTransport_Lines" END CLASS NAME "unsealed road" EXPRESSION "5" MAXSCALE 200000 STYLE SYMBOL "dotted" COLOR 128 64 0 END END CLASS NAME "minor road" EXPRESSION "4" MAXSCALE 750000 STYLE COLOR 128 64 0 END END CLASS NAME "major road" EXPRESSION "3" MAXSCALE 1500000 STYLE COLOR 0 0 0 END END CLASS NAME "highway" EXPRESSION "2" MAXSCALE 2000000 STYLE SYMBOL "double_line" COLOR 0 0 0 END END CLASS NAME "freeway" EXPRESSION "1" STYLE SYMBOL "thick_line" COLOR 45 134 45 END END METADATA "DESCRIPTION" "Transport" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END LAYER NAME "Hazards" STATUS ON MAXSCALE 2000000 TYPE LINE CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from r.v_hazard_geom" CLASSITEM "c_type" CLASS EXPRESSION "Low Powerline" NAME "Low Powerline" MAXSCALE 2000000 STYLE SYMBOL "double_line" COLOR 255 0 0 END END METADATA "DESCRIPTION" "Hazards" END # Metadata END # P 3 LAYER NAME "Infra_Buildings_Points" GROUP "Localities" STATUS ON MAXSCALE 200000 TYPE POINT CONNECTIONTYPE OGR CONNECTION "Infra_Buildings_Points.TAB" CLASS NAME "Building" STYLE SYMBOL "square" COLOR 0 0 0 END END METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # P 4 LAYER NAME "Infra_Localities_Points" GROUP "Localities" TYPE POINT STATUS ON MAXSCALE 400000 CONNECTIONTYPE OGR CONNECTION "Infra_Localities_Points.TAB" LABELITEM "NAME" METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata TOLERANCE 10 TOLERANCEUNITS pixels CLASS NAME "Locality" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE SYMBOL "circle" COLOR 255 50 100 OUTLINECOLOR 0 0 0 SIZE 4 END END END # P 8 # LAYER # NAME "Pads" # GROUP "Pads" # STATUS ON # TYPE POINT # CONNECTIONTYPE postgis # CONNECTION "user=simplot password=qwerty123 dbname=webfred host=localhost" # DATA "the_geom from t_destinations" # LABELITEM "c_site_name" # TOLERANCE 3 # TOLERANCEUNITS pixels # METADATA # "RESULT_FIELDS" "i_site_id,c_site_name" # "RESULT_HEADERS" "Site ID,Name" # END # Metadata # CLASS # NAME "Pad" # LABEL # TYPE truetype # FONT "VeraBold" # SIZE 7 # POSITION ur # OFFSET 0 0 # BUFFER 4 # COLOR 128 0 0 # OUTLINECOLOR 255 255 255 # ANTIALIAS TRUE # END # STYLE # SYMBOL "tree" # COLOR 255 50 100 # OUTLINECOLOR 0 0 0 # SIZE 6 # END # TEMPLATE "void" # END # END # P 9 LAYER NAME "Vehicles" GROUP "Vehicles" STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from f.v_truck_geom" LABELITEM "c_org_truck_id" TOLERANCE 30 TOLERANCEUNITS pixels CLASS NAME "Truck" LABEL TYPE truetype FONT "VeraBold" SIZE 7 POSITION uc OFFSET 0 -10 BUFFER 4 COLOR 128 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE END STYLE SYMBOL "truck" COLOR 255 50 100 OUTLINECOLOR 0 0 0 END TEMPLATE "void" END METADATA "DESCRIPTION" "Vehicles" "RESULT_FIELDS" "c_org_truck_id,i_speed,i_bearing,d_timestamp" "RESULT_HEADERS" "Multi #,Speed,Bearing,Time" END # Metadata END END sorry for such a long message and thanks in advance Gabriel |
From: Emanuele M. <ema...@ho...> - 2006-11-01 11:38:56
|
ITALIANO Ciao a tutti! Forse non =E8 il posto giusto per porre questa domanda, ma =E8 l'unica = comunit=E0 che conosco... Qualcuno conosce l'estensione AmeIn? = http://sourceforge.net/projects/avein/ Serve per convertire i progetti di ArcGIS in codice da inserire nel = mapfile di MAPSERVER Ho provato ad usarla ma non succede niente! Qualcuno ha qualche consiglio pratico? Grazie emanuele =20 =20 ENGLISH (translation) Hi everybody! Maybe this is not appropriate place to ask this..., but I know only this = comunity... Can you use the AmeIn extension? http://sourceforge.net/projects/avein/ It converts project ArcGIS in mapfile of MAPSERVER I try but it happens nothing! I need a good advice Thank Emanuele Sorry for my English. |
From: SeUr2000 <seu...@gm...> - 2006-10-31 13:37:32
|
i beilieve of "updateMap(opener.PM_XAJAX_LOCATION + x_load.php?' + SID +......" is the way for the higtlight the objects, and I not secure if is possible a new procedure for only hightlight obj in pmjson.js thanks and escusme for the speak english not correctly and for the stupit required 2006/10/31, SeUr2000 <seu...@gm...>: > > wel, > I as create a new button in toolbars "selectarray" and have setting new > type "aquery" in mapserver.js > //============================================================================seur2000 > > else if (varform.mode.value == 'aquery') { > var selform = document.getElementById("selform"); > if (!selform.selgroup) return false; > if (selform.selgroup.selectedIndex != -1) { > // only with single click > if ((minx + jitter) > maxx && (miny + jitter) > maxy) > { // x/y point > showqueryresult('aquery', imgxy); > // with zoom box > } > } > > } > //==============================================================================seur2000 > > //==============================================================================seur2000 > > } else if (button == 'selectarray') { > resetFrames(); > varform.mode.value = ' aquery'; > varform.maction.value = 'click'; > var selurl = PM_XAJAX_LOCATION + 'x_select.php?'+SID; > updateSelectTool(selurl, ''); > varform.tool.value = 'selectarray'; > //==============================================================================seur2000 > > //==============================================================================seur2000 > > }else if (type == 'aquery'){ > var queryurl = PM_XAJAX_LOCATION + 'x_infoarray.php?' +SID+ > '&mode='+type + '&imgxy='+xy + '&groups=' + getSelectLayer(); > varform.zoomselected.value = '0'; > } > //==============================================================================seur2000 > > the new x_infoarray.php is for use future for record data and next query > > //==============================================================================seur2000 > function resetFrames() { > var varform = $("varform"); > if (varform.mode.value == 'nquery' || varform.mode.value == 'iquery' > || varform.mode.value == 'aquery' || varform.maction.value == 'measure') { > if (varform.maction.value == 'measure') jg.clear(); > if (varform.mode.value == 'iquery') hideLayer('iqueryLayer'); > > } else { > $('bottomMapFrame').innerHTML = ''; > } > } > > //===============================================================================seur2000 > in xmlhttp.js is the function getQueryResult(..) > i not understein what is possible enabled only hightlith on select an > disable openResultwin(' info.phtml?'+SID); > thanks > > > > > 2006/10/25, SeUr2000 <seu...@gm...>: > > > > thanks, > > so, this is possible. > > and is possible created a button for this procedure. > > I will try this, and I will return the result or another questions for > > help me. > > > > sergio > > > > > > 2006/10/25, Armin Burger <arm...@gm...>: > > > > > > The select function works also for mouse clicks, not just for a box > > > draw. The result is saved in the session variable 'JSON_Results', it > > > can > > > be parsed with JSON functions of PHP (either PEAR module or a PECL > > > extension) or JS. Then you get an array containing various arrays and > > > objects. The structure is explained in the file > > > /incphp/query/json_query_doc.txt. > > > > > > Or save the query results in a file with Mapscript functions, there is > > > a short listing for that on the wiki > > > http://www.pmapper.net/wiki/doku.php?id=faq:customizations > > > > > > armin > > > > > > SeUr2000 wrote: > > > > Hi there, I don't speak english correctly, and i have a question: > > > > i must select more elements with the click of the mouse. > > > > the elements selected must change color and recorded on array for > > > successive > > > > query. > > > > what is the way? it is possible? > > > > thanks. > > > > sergio > > > > > > > ------------------------------------------------------------------------- > > > > Using Tomcat but need to do more? Need to support web services, > > > security? > > > > Get stuff done quickly with pre-integrated technology to make your > > > job easier > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > _______________________________________________ > > > > pmapper-users mailing list > > > > pma...@li... > > > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > > > > > > > > > > > > |
From: SeUr2000 <seu...@gm...> - 2006-10-31 12:52:25
|
wel, I as create a new button in toolbars "selectarray" and have setting new type "aquery" in mapserver.js //============================================================================seur2000 else if (varform.mode.value == 'aquery') { var selform = document.getElementById("selform"); if (!selform.selgroup) return false; if (selform.selgroup.selectedIndex != -1) { // only with single click if ((minx + jitter) > maxx && (miny + jitter) > maxy) { // x/y point showqueryresult('aquery', imgxy); // with zoom box } } } //==============================================================================seur2000 //==============================================================================seur2000 } else if (button == 'selectarray') { resetFrames(); varform.mode.value = 'aquery'; varform.maction.value = 'click'; var selurl = PM_XAJAX_LOCATION + 'x_select.php?'+SID; updateSelectTool(selurl, ''); varform.tool.value = 'selectarray'; //==============================================================================seur2000 //==============================================================================seur2000 }else if (type == 'aquery'){ var queryurl = PM_XAJAX_LOCATION + 'x_infoarray.php?' +SID+ '&mode='+type + '&imgxy='+xy + '&groups=' + getSelectLayer(); varform.zoomselected.value = '0'; } //==============================================================================seur2000 the new x_infoarray.php is for use future for record data and next query //==============================================================================seur2000 function resetFrames() { var varform = $("varform"); if (varform.mode.value == 'nquery' || varform.mode.value == 'iquery' || varform.mode.value == 'aquery' || varform.maction.value == 'measure') { if (varform.maction.value == 'measure') jg.clear(); if (varform.mode.value == 'iquery') hideLayer('iqueryLayer'); } else { $('bottomMapFrame').innerHTML = ''; } } //===============================================================================seur2000 in xmlhttp.js is the function getQueryResult(..) i not understein what is possible enabled only hightlith on select an disable openResultwin('info.phtml?'+SID); thanks 2006/10/25, SeUr2000 <seu...@gm...>: > > thanks, > so, this is possible. > and is possible created a button for this procedure. > I will try this, and I will return the result or another questions for > help me. > > sergio > > > 2006/10/25, Armin Burger <arm...@gm...>: > > > > The select function works also for mouse clicks, not just for a box > > draw. The result is saved in the session variable 'JSON_Results', it can > > be parsed with JSON functions of PHP (either PEAR module or a PECL > > extension) or JS. Then you get an array containing various arrays and > > objects. The structure is explained in the file > > /incphp/query/json_query_doc.txt. > > > > Or save the query results in a file with Mapscript functions, there is > > a short listing for that on the wiki > > http://www.pmapper.net/wiki/doku.php?id=faq:customizations > > > > armin > > > > SeUr2000 wrote: > > > Hi there, I don't speak english correctly, and i have a question: > > > i must select more elements with the click of the mouse. > > > the elements selected must change color and recorded on array for > > successive > > > query. > > > what is the way? it is possible? > > > thanks. > > > sergio > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > pmapper-users mailing list > > > pma...@li... > > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > > > > > > |
From: Gabe <ga...@ag...> - 2006-10-31 00:36:35
|
Thanks - I can see that is going to be very useful On 10/28/06, Armin Burger <arm...@gm...> wrote: > > if you need it dynamically adapted to a search value you either have to > modify via Mapscript the DATA tag with the complete SQL (adapting the > one below), or modify the FILTER tag with the WHERE part of the SQL. > > armin > > Gabe wrote: > > Where would we put this sql ? > > > > in the mapfile layer object ? > > > > or as a view in postgis ? > > > > > > G > > > > > > On 10/27/06, Gail Long <cod...@ho...> wrote: > >> For post gis layers: > >> > >> > >> select streetnameField, > >> oid, xmin(box3d(p.the_geom)) AS minx, ymin(box3d(p.the_geom)) AS miny, > >> xmax(box3d(p.the_geom)) AS maxx, ymax(box3d(p.the_geom)) AS maxy > >> from streettable p, (select the_geom from streettable where > >> upper(nameField) > >> like 'street1%') a > >> where intersects(a.the_geom,p.the_geom) and upper(nameField) like > >> 'street2'; > >> > >> > >> -- > >> Things are only difficult while you don't understand them. > >> > >> > >> > >> > >> > >>> From: "Cristian Rougier" <cri...@la...> > >>> To: <pma...@li...> > >>> CC: pma...@fa... > >>> Subject: [Pmapper-users] Street intersection PLEASE !! > >>> Date: Wed, 25 Oct 2006 23:32:55 -0500 > >>> > >>> Dears, this is very urgent for me. > >>> > >>> I have a shape with street lines with a name field. > >>> > >>> I can find a street well in search section , but i need to find the > >>> intersection of 2 streets. > >>> > >>> Is this possible ? Please any idea !! > >>> > >>> Thank in advance > >>> > >>> Cristian > >>> > >>> > >>> La Info > >>> Tecnolog=EDa y Programaci=F3n en Internet. > >>> http://www.lainfo.com.mx <http://www.lainfo.com.mx/> > >>> cri...@la... > >>> Emails muy pesados a: cri...@gm... > >>> Tel:(++5255) 8589-1554 > >>> Movil: 04455-1967-1907 > >>> > >>> > >>> > >>> > >> > >>> _______________________________________________ > >>> Pmapper-users mailing list > >>> Pma...@fa... > >>> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users > >> _________________________________________________________________ > >> Get FREE company branded e-mail accounts and business Web site from > >> Microsoft Office Live > >> http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ > >> > >> > >> > >> > >> _______________________________________________ > >> Pmapper-users mailing list > >> Pma...@fa... > >> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users > >> > >> > >> > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > > pmapper-users mailing list > > pma...@li... > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > |
From: Armin B. <arm...@gm...> - 2006-10-28 10:19:00
|
if you need it dynamically adapted to a search value you either have to=20 modify via Mapscript the DATA tag with the complete SQL (adapting the=20 one below), or modify the FILTER tag with the WHERE part of the SQL. armin Gabe wrote: > Where would we put this sql ? >=20 > in the mapfile layer object ? >=20 > or as a view in postgis ? >=20 >=20 > G >=20 >=20 > On 10/27/06, Gail Long <cod...@ho...> wrote: >> For post gis layers: >> >> >> select streetnameField, >> oid, xmin(box3d(p.the_geom)) AS minx, ymin(box3d(p.the_geom)) AS miny, >> xmax(box3d(p.the_geom)) AS maxx, ymax(box3d(p.the_geom)) AS maxy >> from streettable p, (select the_geom from streettable where >> upper(nameField) >> like 'street1%') a >> where intersects(a.the_geom,p.the_geom) and upper(nameField) like >> 'street2'; >> >> >> -- >> Things are only difficult while you don't understand them. >> >> >> >> >> >>> From: "Cristian Rougier" <cri...@la...> >>> To: <pma...@li...> >>> CC: pma...@fa... >>> Subject: [Pmapper-users] Street intersection PLEASE !! >>> Date: Wed, 25 Oct 2006 23:32:55 -0500 >>> >>> Dears, this is very urgent for me. >>> >>> I have a shape with street lines with a name field. >>> >>> I can find a street well in search section , but i need to find the >>> intersection of 2 streets. >>> >>> Is this possible ? Please any idea !! >>> >>> Thank in advance >>> >>> Cristian >>> >>> >>> La Info >>> Tecnolog=EDa y Programaci=F3n en Internet. >>> http://www.lainfo.com.mx <http://www.lainfo.com.mx/> >>> cri...@la... >>> Emails muy pesados a: cri...@gm... >>> Tel:(++5255) 8589-1554 >>> Movil: 04455-1967-1907 >>> >>> >>> >>> >> >>> _______________________________________________ >>> Pmapper-users mailing list >>> Pma...@fa... >>> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users >> _________________________________________________________________ >> Get FREE company branded e-mail accounts and business Web site from >> Microsoft Office Live >> http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ >> >> >> >> >> _______________________________________________ >> Pmapper-users mailing list >> Pma...@fa... >> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users >> >> >> > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users >=20 >=20 |
From: Gabe <ga...@ag...> - 2006-10-28 01:31:54
|
Where would we put this sql ? in the mapfile layer object ? or as a view in postgis ? G On 10/27/06, Gail Long <cod...@ho...> wrote: > > For post gis layers: > > > select streetnameField, > oid, xmin(box3d(p.the_geom)) AS minx, ymin(box3d(p.the_geom)) AS miny, > xmax(box3d(p.the_geom)) AS maxx, ymax(box3d(p.the_geom)) AS maxy > from streettable p, (select the_geom from streettable where > upper(nameField) > like 'street1%') a > where intersects(a.the_geom,p.the_geom) and upper(nameField) like > 'street2'; > > > -- > Things are only difficult while you don't understand them. > > > > > > >From: "Cristian Rougier" <cri...@la...> > >To: <pma...@li...> > >CC: pma...@fa... > >Subject: [Pmapper-users] Street intersection PLEASE !! > >Date: Wed, 25 Oct 2006 23:32:55 -0500 > > > >Dears, this is very urgent for me. > > > >I have a shape with street lines with a name field. > > > >I can find a street well in search section , but i need to find the > >intersection of 2 streets. > > > >Is this possible ? Please any idea !! > > > >Thank in advance > > > >Cristian > > > > > >La Info > >Tecnolog=EDa y Programaci=F3n en Internet. > >http://www.lainfo.com.mx <http://www.lainfo.com.mx/> > >cri...@la... > >Emails muy pesados a: cri...@gm... > >Tel:(++5255) 8589-1554 > >Movil: 04455-1967-1907 > > > > > > > > > > > >_______________________________________________ > >Pmapper-users mailing list > >Pma...@fa... > >http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users > > _________________________________________________________________ > Get FREE company branded e-mail accounts and business Web site from > Microsoft Office Live > http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ > > > > > _______________________________________________ > Pmapper-users mailing list > Pma...@fa... > http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users > > > |
From: luca m. <luc...@gm...> - 2006-10-26 07:49:43
|
It's not a question related to pmapper because it doesn't do it. My suggestion is to import shape into postgis and prepare a query for searching intersections. You can easily do there such. So the right pace to ask is postgis or mapserver ML. luca On 10/26/06, Cristian Rougier <cri...@la...> wrote: > > > Dears, this is very urgent for me. > > I have a shape with street lines with a name field. > > I can find a street well in search section , but i need to find the > intersection of 2 streets. > > Is this possible ? Please any idea !! > > Thank in advance > > Cristian > > > La Info > Tecnolog=EDa y Programaci=F3n en Internet. > http://www.lainfo.com.mx > cri...@la... > Emails muy pesados a: cri...@gm... > Tel:(++5255) 8589-1554 > Movil: 04455-1967-1907 > > > > _______________________________________________ > Pmapper-users mailing list > Pma...@fa... > http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users > > > --=20 luca marletta www.beopen.it |
From: SeUr2000 <seu...@gm...> - 2006-10-25 18:10:15
|
thanks, so, this is possible. and is possible created a button for this procedure. I will try this, and I will return the result or another questions for help me. sergio 2006/10/25, Armin Burger <arm...@gm...>: > > The select function works also for mouse clicks, not just for a box > draw. The result is saved in the session variable 'JSON_Results', it can > be parsed with JSON functions of PHP (either PEAR module or a PECL > extension) or JS. Then you get an array containing various arrays and > objects. The structure is explained in the file > /incphp/query/json_query_doc.txt. > > Or save the query results in a file with Mapscript functions, there is > a short listing for that on the wiki > http://www.pmapper.net/wiki/doku.php?id=faq:customizations > > armin > > SeUr2000 wrote: > > Hi there, I don't speak english correctly, and i have a question: > > i must select more elements with the click of the mouse. > > the elements selected must change color and recorded on array for > successive > > query. > > what is the way? it is possible? > > thanks. > > sergio > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > pmapper-users mailing list > > pma...@li... > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > |
From: Armin B. <arm...@gm...> - 2006-10-25 17:55:53
|
The select function works also for mouse clicks, not just for a box draw. The result is saved in the session variable 'JSON_Results', it can be parsed with JSON functions of PHP (either PEAR module or a PECL extension) or JS. Then you get an array containing various arrays and objects. The structure is explained in the file /incphp/query/json_query_doc.txt. Or save the query results in a file with Mapscript functions, there is a short listing for that on the wiki http://www.pmapper.net/wiki/doku.php?id=faq:customizations armin SeUr2000 wrote: > Hi there, I don't speak english correctly, and i have a question: > i must select more elements with the click of the mouse. > the elements selected must change color and recorded on array for successive > query. > what is the way? it is possible? > thanks. > sergio > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > |
From: Armin B. <arm...@gm...> - 2006-10-25 17:48:47
|
If the map file is already in Unicode then this should be 0. If it is eg. in Latin1 then it should normally be 1. I usually got parsing errors when having the map file in Unicode, but for others it seems to work. armin Alessandro Pasotti wrote: >>From this sentence and from the on-line manual seems that when you have a > mapfile in UTF8 (that is non-ASCII) you must set map2unicode to 1. > > Experimenting, I found that to make it display correctly, this parameter must > be set to 0. > > ; if map file contains non-ASCII characters > ; eg for layer DESCRIPTION or CLASS names, set value to 1 > ;---------------------------------------------------------- > map2unicode = 0 > > Is manual right AND my is a strange setup OR is the manual wrong OR I have > misunderstood everything? > > Thanks. |
From: Alessandro P. <al...@ti...> - 2006-10-25 17:38:14
|
=46rom this sentence and from the on-line manual seems that when you have a= =20 mapfile in UTF8 (that is non-ASCII) you must set map2unicode to 1. Experimenting, I found that to make it display correctly, this parameter mu= st=20 be set to 0. ; if map file contains non-ASCII characters ; eg for layer DESCRIPTION or CLASS names, set value to 1 ;---------------------------------------------------------- map2unicode =3D 0 Is manual right AND my is a strange setup OR is the manual wrong OR I have= =20 misunderstood everything? Thanks. =2D-=20 Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 |
From: SeUr2000 <seu...@gm...> - 2006-10-25 14:03:17
|
Hi there, I don't speak english correctly, and i have a question: i must select more elements with the click of the mouse. the elements selected must change color and recorded on array for successive query. what is the way? it is possible? thanks. sergio |
From: SeUr2000 <seu...@gm...> - 2006-10-25 13:56:45
|
Hi there, I don't speak english correctly, and i have a question: i must select more elements with the click of the mouse. the elements selected must change color and recorded on array for successive query. what is the way? it is possible? thanks. sergio |
From: Armin B. <arm...@gm...> - 2006-10-24 19:35:38
|
If I will find some time I will have a closer look again to set up and=20 use SVN. But even in the case of an SVN "Write access to the SVN archive=20 will be provided to developers who are making frequent contributions to=20 the codebase." This is the usual policy how the SVN's I know are set up=20 (the quote comes from Postgis svn). Until a svn exists, it's possible for users to provide me with=20 extensions, code, themes, etc. by mail. So far, this just happened once=20 (the second one was not really usable and implementable). In any case, I=20 found it normal that a contribution is discussed at least shortly before=20 sending it as zip file. armin ps: contributions to the p.mapper documentation were already possible=20 for everybody on the wiki since March, I haven't seen anybody writing a=20 single line for it... Ideas could be added and discussed since several=20 months. Alessandro Pasotti wrote: > Il 19:42, venerd=EC 20 ottobre 2006, Paolo Cavallini ha scritto: >> That's right, but perhaps somebody else can take care of this? >> I noticed that, given the relatively small size of the project, and th= e >> relative ease at modifying it, many people tend to fix bugs in their >> particular installation, develop small new tools etc, but all this wor= k >> does not flow back into the main project. >> All the best. >> pc >=20 > Well Paolo, I would say that this kind of decisions should be taken by = the=20 > original author and actual maintainer. >=20 > So the main question is: Armin where do you want to go with pmapper? >=20 > Should it become a real cooperative project or continue like now as a=20 > one-man-project with you as leader, developer, maintainer etc. etc. >=20 > I personally think that you (Armin) have done an impressive very good j= ob, I=20 > like pmapper and continue to use it in my projects, but I agree with Pa= olo=20 > (and other members of this list) that sometimes a broader discussion ab= out=20 > new features or how to fix some issues and bug should be taken. >=20 > Ok, now we are just saying we would like to participate more in pmapper= =20 > development, also contributing patches, plugins, code, ideas documentat= ion=20 > etc. >=20 > But to allow a better cooperation we definitely need a code repository = and a=20 > bugtracking system plus a comitee of major contributors who will take t= he=20 > final decision on controversial topics. At least this is how other Open= =20 > Source projects work. >=20 > As a final note, I (and probably others) will not duplicate our job ins= erting=20 > bugs and fixes in two systems or discussing in two lists, I really hope= we=20 > will find a constructive and cooperative way of improving pmapper. >=20 > Regards. |
From: Armin B. <arm...@gm...> - 2006-10-24 18:49:49
|
it's a bug... but without consequences, because the return value is not used later on. It will be removed in a later version, but since it causes no problems it is less urgent. armin Alessandro Pasotti wrote: > Hi, > > I don't know if this is a bug, but at least it is not readable: > > in map.php around line 128 > > function pmap_returnMapH() > { > return$this->mapheight; > } > > > should read > > > function pmap_returnMapH() > { > return $this->mapheight; > } > > > Regards. > |
From: Armin B. <arm...@gm...> - 2006-10-24 18:42:39
|
Stephan Holl wrote: > Hello *, > Currently there are at least 2 mailinglist (sourceforge, faunalia), > probably some more at wald?! > Which one is the 'master' mailinglist? We should I am only subscribed to pma...@li... and hence will also only reply to posts there. My post on the old list regarding that had the subject "MOVE of p.mapper mailing list" and I thought this would be clear enough. If others move/subscribe to this new list it's up to them. armin |
From: Armin B. <arm...@gm...> - 2006-10-23 16:09:35
|
Gabe if you group layers together in the map file by using the GROUP tag, then use always this entry for all configurations in p.mapper (allGroups, defGroups, etc). If a layer is not part of a group then use the entry under the tag NAME. The entries are used to refrence the layer and are used like variables in programming languages, they should not contain blanks in p.mapper. the metadata tag "DESCRIPTION" is the name used to display the layer on the user interface (TOC, legend, etc.), if 2 layers belong to the same group then just the setting from the 1st layer in the map file will be taken for this 'display name'. The docs http://pmapper.net/wiki/doku.php?id=doc:manual contain a description 'Layer/Group Descriptions and Fields for Queries' for the results display of queries. If it is not clear just post again on this list. armin -------- Original-Nachricht -------- Datum: Sun, 22 Oct 2006 00:29:57 +1000 Von: Gabe <ga...@ag...> An: pma...@li... Betreff: [pmapper-users] groups and names in pmapper 2.1.1 configuration > I am getting a bit confused about layers and names. I have searched the > docs and havent found a clear explanation of using the Groups and Names of > layers yet. Also there is a Description line in the META tag. > > > > Can someone please clue me in here ? > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl |
From: luca m. <luc...@gm...> - 2006-10-23 12:03:22
|
I fixed it. Not a pmapper or mapserver bug but just it's my personal bug on some device inside my head :-) Was an error in mapfile. Sorry for asking before further and more accurate investigations luca On 10/23/06, luca marletta <luc...@gm...> wrote: > I got a strange error never happen to me before. > I use the same application (cp -a ..), pmapper 2.1, I have installed > on an ubuntu server and where works well. Also here, my localhost, I > have ubuntu and old versions of pmapper work well (so not a mapserver > problem) but this new one does not. > When I try to browse /map.phtml > the map.phtml got as for downloading. > It's not a basic error when you forget for istance apache2-mod-php > Nothing in php error log > > but in apache2 error I have > > *** glibc detected *** double free or corruption (!prev): 0x0000000000a753f0 *** > [Mon Oct 23 12:08:08 2006] [notice] child pid 5598 exit signal Aborted (6) > > and googling I got that it is likely to be a problem with php(pmapper) > application. > "The message says your application tries to free more than once the > memory it allocated. I recall there was a thread about the latest > version of glibc becoming stricter about possible memory mishandling > like above - that may be why you're getting this error where you > didn't before." > > But the point is that I have the same version for libglibc both on > working server and local so.. > > Have someone experimented the same? > > Thanks for reply > > luca > > > -- > luca marletta > www.beopen.it > -- luca marletta www.beopen.it |
From: luca m. <luc...@gm...> - 2006-10-23 10:18:48
|
I got a strange error never happen to me before. I use the same application (cp -a ..), pmapper 2.1, I have installed on an ubuntu server and where works well. Also here, my localhost, I have ubuntu and old versions of pmapper work well (so not a mapserver problem) but this new one does not. When I try to browse /map.phtml the map.phtml got as for downloading. It's not a basic error when you forget for istance apache2-mod-php Nothing in php error log but in apache2 error I have *** glibc detected *** double free or corruption (!prev): 0x0000000000a753f0 *** [Mon Oct 23 12:08:08 2006] [notice] child pid 5598 exit signal Aborted (6) and googling I got that it is likely to be a problem with php(pmapper) application. "The message says your application tries to free more than once the memory it allocated. I recall there was a thread about the latest version of glibc becoming stricter about possible memory mishandling like above - that may be why you're getting this error where you didn't before." But the point is that I have the same version for libglibc both on working server and local so.. Have someone experimented the same? Thanks for reply luca -- luca marletta www.beopen.it |
From: Alessandro P. <al...@ti...> - 2006-10-23 07:24:27
|
Hi, I don't know if this is a bug, but at least it is not readable: in map.php around line 128 function pmap_returnMapH() { return$this->mapheight; } should read function pmap_returnMapH() { return $this->mapheight; } Regards. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 |
From: Gabe <ga...@ag...> - 2006-10-21 14:30:00
|
I am getting a bit confused about layers and names. I have searched the docs and havent found a clear explanation of using the Groups and Names of layers yet. Also there is a Description line in the META tag. Can someone please clue me in here ? |
From: luca m. <luc...@gm...> - 2006-10-21 14:03:32
|
Hi Stephan, here my other 0.02=A2. Armin is away these days and we all will wait HIS replay but I talked with him these days and he was always much clear on these points and never told something different. The official list is pma...@li... You are right all the other are a lose of time and effort, also because Armin read with attention just post on this list. About WIKI there is http://88.198.37.99/wiki/doku.php (everyone can get a registration and writ= e) and none post on it from the beginning so why talk about other wiki. For CVS, I can just report Armin opinion that it requires much effort and he has no time for now. It could be useful but you cannot ask people what that are not at ease to do in this moment. I repeat, this is my 0.01=A2 luca On 10/21/06, Stephan Holl <ste...@in...> wrote: > Hello *, > > On Fri, 20 Oct 2006 17:07:43 -0700 > pma...@li... wrote: > > > essage: 8 > > Date: Fri, 20 Oct 2006 20:11:02 +0200 > > From: Armin Burger <arm...@gm...> > > Subject: Re: [pmapper-users] bug in pmapper 2.1.1 > > To: Alessandro Pasotti <al...@ti...> > > Cc: pma...@li... > > Message-ID: <453...@gm...> > > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > > > I uploaded version 2.1.2 with this bug fix and one for Postgis layers. > > I will not stress it too much again, but I have some questions > regarding the pmapper-development strategies for upcoming releases. > > Currently there are at least 2 mailinglist (sourceforge, faunalia), > probably some more at wald?! > Which one is the 'master' mailinglist? We should > > I would like to see a concentration of our power to one list, one SVN, > one tracker, one wiki, one whateverweneed. > > This will definetly bring p.mapper to a wider range of people. As Paolo > also mentioned this will help bugfixes/extensions/scripts apply to > upstream version managed by Armin. > > I know it was discussed thousand times, but why dont we use a > centratlized source-code storage, e.g. at sourceforge or wald? This > would make lots of things easier and p.mapper would definetly benefit > from this approach. > > just my 0.02=A2 > > Cheers > Stephan > > -- > Stephan Holl : www.intevation.de/~stephan | GISpatcher: > www.gispatcher.de Intevation GmbH: www.intevation.de | GAV > e.V.: www.grass-verein.de Georgstr.4 : 49074 Osnabr=FCck | > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > --=20 luca marletta www.beopen.it |
From: Stephan H. <ste...@in...> - 2006-10-21 12:50:13
|
Hello *, On Fri, 20 Oct 2006 17:07:43 -0700 pma...@li... wrote: > essage: 8 > Date: Fri, 20 Oct 2006 20:11:02 +0200 > From: Armin Burger <arm...@gm...> > Subject: Re: [pmapper-users] bug in pmapper 2.1.1 > To: Alessandro Pasotti <al...@ti...> > Cc: pma...@li... > Message-ID: <453...@gm...> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed >=20 > I uploaded version 2.1.2 with this bug fix and one for Postgis layers. I will not stress it too much again, but I have some questions regarding the pmapper-development strategies for upcoming releases. Currently there are at least 2 mailinglist (sourceforge, faunalia), probably some more at wald?! Which one is the 'master' mailinglist? We should=20 I would like to see a concentration of our power to one list, one SVN, one tracker, one wiki, one whateverweneed. This will definetly bring p.mapper to a wider range of people. As Paolo also mentioned this will help bugfixes/extensions/scripts apply to upstream version managed by Armin. I know it was discussed thousand times, but why dont we use a centratlized source-code storage, e.g. at sourceforge or wald? This would make lots of things easier and p.mapper would definetly benefit from this approach. just my 0.02=A2 Cheers Stephan --=20 Stephan Holl : www.intevation.de/~stephan | GISpatcher: www.gispatcher.de Intevation GmbH: www.intevation.de | GAV e.V.: www.grass-verein.de Georgstr.4 : 49074 Osnabr=FCck |= =20 |