Home

PX-Map2 User Manual

image

Contents

1. 42 APPENDIX QN Eee 43 1 PX Map2 introduction 1 1 What PX Map 2 is and what it is not PX Map2 is a tool for presenting statistical data PX Map2 15 not a tool for analysing statistical data By using PX Map2 analyses happens in the user s brain while viewing maps and other graphics 1 2 History In recent years Statistics Norway in line with the majority of National Statistical Institutes has increased the use of thematic maps and other graphic means in different ways of disseminating statistics The demand for thematic maps was increasing and Statistics Norway decided to develop in house systems for production of thematic maps when no off the shelf products were considered satisfactory due to price performance complexity of user interface and interfaces with statistical data statistical databases PX Map 15 one of the contributions to the PC Axis Family from Statistics Norway The former versions of PX Map were developed in 2 different developing environments PX Map 1 x the Windows version was developed in Visual Basic and PX iMap the Web version was developed in ASP When further developments were demanded Statistics Norway decided to freeze the existing PX Map modules and start from scratch developing source code that easily could be utilized for both Windows environment and Web environment The choice of development technology and tools were Net C an
2. SE pud Gs 15 Figure 22 Start values for the different classes cerano a RTE 15 F le 25 OF Symbol Mp aa 16 Dieurc FE TNT 17 Fisure 25 Functionalities 46 55 E see see red 18 Figure 26 Preview of print functionality in IE Norwegian version 19 2 Then A ternatbVe Aanes 20 Figure 28 Ex ofa classification phenomena that sums up to a total 100 per cent shown in pies 21 Figure 29 Ex of a time series classification shown in bar 21 Figure 30 Catalogue structure required for 2 1 1 4 7 4 0000000000000 0 27 Figure 31 PX Map2 named PX MapWeb2 in PX Web structure 23 Fisure 32 PX Map2 button in th PC SAXIS eb tabo t esee ono eds 24 Figure 33 CSS files and their relation to the user interface sse 27 Figure 34 Sectton TOM COS ME a barer 27 Figure 35 Excel message box Could not find path to PX Map2 28 Figure 30 Excel Toolbar dau 28 Figure 37 Checking CountryCode in Excel 47 is 29 Figure 38 Example or Dialog iiu Die uio ee
3. ee edes veles eme Ue Mi 25 ENE 25 052 HOW Todelete OS 22 OB Tb NR mit utenti dtu bI aUe D aU 29 6 9 CHANGING THE LAYOUT OF PX MAPZ pe ne dos snouts AGE 27 6 10 INSTALLING AND CONFIGURING THE EXCEL MACRO 0 0 28 7 STATISTICAL DATA REOUIREMENTCIS 30 7 1 PEAS FE FORMAT CM I epa UE 30 2 TEXT FORMAT SEPARATED TXT CSV 31 3 4 2 EXC EL RNA 31 5 BASIC DATA REQUIREMENTS duo Saee ERE SENE 33 8 1 PREPARINGS VEI MAPS ser 33 8 2 SHAPEFILFEREOUREMENIS se NN 34 8 3 RUNNING THE PROGRAMS TRANSFORMATION FROM SHAPE TO 29 9 KNOMNBIGS sie 38 9 1 GE EE NR E EN 38 92 EN TE NN EE EEE EN 38 10 ACKNOWLEDGEMENTS sussebass Area 38 11 DOWNLOADS AND CON TAG TS Se 39 Table of Figures Figure 1 Chorpleth map illustrating the figures in the grey dotted column in Figure 2 6 Figure 2 Regional statistics for detached houses in Norway Counties eese 6 Figure 3 Symbol map with bars illustrating th
4. UD LIEN Mo 29 Figure 39 Example of a semicolon separated text file valid for PX Map2 31 Figure 40 Excel dialog box asking for the basic 32 Figure 41 Excel dialog box requiring data range 32 Figure 42 Excel dialog box requiring the row number of column 33 Fire 23 Exccl example OF Or NESS aieo 33 Figure 44 Dataflow for transforming shape files to SVG 35 Figure 45 Running ogis2svg exe from Command prompt 35 Figure 46 Running ogis2svg exe from the Command prompt 36 Figure 47 Dialogs when running OBISZSVE eXO Lasker 36 Iucure 45 Dialogen Or FME Eva 37 Pi ure 49 Dialog entry tor Transtorm exe example Lasse 37 Figure 50 Savine he temp see 38 homepage sene 39 He TN 40 Figure 53 Example of teady to use SVe TIIG Lundenes satt roter tapa dd quo 41 Figure 54 Language ME vassere 42 55 Example opa conr ml uo RE RR D MM 44 Table of Appendices APPENDIX A TEME SVG sje 40 APPENDIX B lt FIEENAME gt Gene 41 APPENDIX C LANGUAGE XM Diss 25556446595 oo den appro adeo eae ee
5. g id regions stroke black stroke width 4700 5 stroke linecap round stroke linejoin round fill none gt path id ID AD attrib area 461605662 attrib x coord 181618 14641 attrib y coord 5239118 28458 onmouseover mouseover AD onmouseout mouseout AD d M198297 4 5247924 11 3706 5 17611 71 27798 7 25141 1853 3 12579 9133358 5 2517 8z gt path id ID AL attrib area 4 804e 010 attrib x coord 2242885 90079 attrib y coord 5026111 20700 onmouseover mouseover AL onmouseout mouseout AL d M2 152532 9 5135204127259 4 102382 8168599 8 21256 9125714 6 76784 5159132 1 154889 610 7347 31 72276 7 124068 51 29651 9 38604 41 68570 2 123580 61 10207 1 196987 8z gt Figure 53 Example of ready to use svg file 42 Appendix Language xml Example some parts of language xml lt xml version 1 0 encoding UTF 8 gt Language version 1 0 xmlns xsi http www w3 org 2001 XMLSchema instance xsi noNamespaceSchemaLocation language xsd gt lt Section gt lt Description gt Application phrases lt Description gt lt Phrase id Version gt lt Translation lang en gt Version lt Translation gt lt Translation lang nb NO gt Versjon lt Translation gt lt Translation lang nn NO gt Versjon lt Translation gt lt Phrase gt lt Section gt lt Section gt lt Description gt Statistics phrases lt Description gt Phrase id Statistics gt Translation la
6. Phrase After deletion Phrase gt Translation gt lt gt Phrase 6 8 3 How to add a new language For all Translation sections copy and paste an existing Translation section Change in the lang xx to your language code ISO certified language codes are recommended and translate the text between the brackets gt and lt to your language Example adding a new language copy and paste Phrase gt Translation lang en gt Map lt Translation gt Phrase After copy and paste Phrase gt Translation lang en gt Map lt Translation gt Translation lang en gt Map lt Translation gt Phrase Adaptation to German for the phrase Map Phrase gt Translation lang en gt Map lt Translation gt Translation lang de gt Karte lt Translation gt Phrase If the new language 15 desired as the default language for PX Map2 the Config xml file must be updated see Chapter 6 7 26 27 6 9 Changing the layout of PX Map2 Important Edit the files with care Tip make copies of the files in advance It 15 possible to change the size and placement of the different modules in PX Map2 layout Both screen and print layout may be changed This is done by CSS Cascading Style Sheets and provides possibilities for describing present
7. Statistisk sentralbyr Statistics Norway N ot at e mvd 19 November 2009 PX Map2 User Manual Table of Contents 1 PXSNTAP2 INTRODUCTION escis us ka VE 5 1 1 WHAT PX MEAP IS AND WHAT TIT IS NOT PEU NON 3 1 2 HR acta cette iMt LE MM M ME IL 5 1 3 WINE A MAP ro eter ag E I RI EK M EI MM TUE 5 2 LAUNCHING PR M PS 8 2 1 AS KS PANDA BONE PROGRA NM as ttem aset I C LS AREE MEE Lea apa 8 2 2 FOG Mva 8 2 3 FOR 8 3 9 3 ON 9 2 2 ETR MR 9 3 3 EN NNN NN 10 3 4 STN NNN 11 2 BIADISTICOL Eh xA c 13 3 6 CONFIGURATION 13 DOA 8 05 7107 re 2 12 107701 13 OL OND 16 3 7 Pee 16 4 EUNCTIONALELIES TN PX MAP ss 17 4 1 ZOOM IN ZOOM OUT AND PAN ee 17 4 2 COPYING AN SVG PICTURE TO WORD POWERPOINT vennen ennen enes 18 4 3 ERINTI ONC TIO NVE 18 5 TIDSAERICKS o Hei 19 S l AVOIDING WARNING MESSAGE IN MICR
8. 6 7 Adaptation of Config xml file 6 7 1 General The Config xml file contains all default attributes for the controls in PX Map2 These attributes are among others language colours classification type Number of classifications font types and font sizes If an end user changes colours when running 2 this will NOT affect the config xml file This kind of change 15 stored in a cookie on the client For editing XML files it is recommended to use an XML editor ex XMLSpy but a traditional text editor like Notepad can be used as well An example of a Config xml file is shown in Appendix D The config xml 15 more or less self describing thus only some specific attributes are explained in this document for more details see Chapter 11 6 7 20 Setting primary secondary and default languages lt Item id LanguagePrimary gt en lt Item gt lt Item id LanguageSecondary gt nb NO lt Item gt lt Item id LanguageDefault gt en lt Item gt For the time being it is only the default language lt Item id LanguageDefault gt XX lt Item gt that 1s in use XX can be language code for any language Check that the language code in config xml file 1s consistent with the language code in language xml file 6 7 3 Setting default classification type lt Item id ClassificationTypeDefault gt XX lt Item gt This setting 15 reserved for future use 6 7 4 Setting minimum default and maximum number of divisions classi
9. Before starting the transformation your dialog box should look like this Transform PENE File Transform Source file C TEMP2 temp svg Browse Transformation file C TEMP2 svg2sva xs Transformationparameter s Name Add Namespace Value Delete Transform Figure 49 Dialog entry for Transform exe example 7 Press Transform button a dialog box Save to file appears 5 Write name of your output file in dialog box 38 Save to file Lagre I TEMPZ 4 temp svg Mine siste dokumenter Skrivebord Mine dokumenter 1450924 mvd Mine Filnavn europe nettverkssteder Filtype Scalable Vector Graphics File 7 svg Avbryt Figure 50 Saving the temp svg The transformation starts immediately after the save key Lagre in Norwegian is pressed In the example above the output SVG file 15 named europe and the filename extension 15 automatic set to svg 9 Known bugs 9 1 General When using Microsoft Internet Explorer IE and Adobe SVG Reader sometimes the spacebar or the ENTER key has to be pushed for some SVG controls to be activated This problem 15 due to security in IE and not to PX Map2 To avoid this see Chapter 5 1 9 20 PX Map2 e The PX file needs both keywords STUB and HEADING for PX Map2 to run properly e Error in Config xml when checking Registry for default browser e Character separated files sdv files with blank cells no da
10. actual data Choose a range Rm meme oo ooo oom oo Figure 41 Excel dialog box requiring the data range After the data range is marked the macro highlights a row as a proposal for column titles see Figure 42 33 Microsoft Excel The row containing headings is marked If it is wrong give the right row number Cancel Figure 42 Excel dialog box requiring row number of column titles If the proposed row 15 not the right one then type the right row number The macro performs several checks of the parameters and data If there are error s then error messages are displayed see Figure 43 for example of an error message Checking region codes You have marked this range Number of rows Of which filled in column empty in column Of the filled cells valid region code invalid region code light blue background Of the unvalid containing valid code other lacking leading zero to become valid code Figure 43 Excel example of error message When no error then 2 is launched and choropleth map is made immediately 8 Basic Map data Requirements 8 1 Preparing SVG maps PX Map2 requires a valid SVG file as format for the basic map data Due to the fact that a lot of users have their map data stored in ESRI shape format Statistics Norway provides a routine for converting shape files to valid SVG file
11. region Sweden Stockholm Orebro VALUES time 1990 12 31 VALUES marital status unmarried married total VALUES sex men women CONTENTS Population UNITS numbers of persons DECIMALS 0 DATA 2155484 1842207 1710484 1713821 4244017 4346613 167965 162184 110463 111697 316041 358411 28909 26791 23822 23982 58352 62592 The first records of the file contain metadata and consist of a key word followed by text within quotation marks and a semicolon Longer texts are divided into several records except for value text or variable names which must in one line when in parenteses after a keyword Texts are delimited with quotation marks which means that a text itself cannot contain a quotation mark If the keyword CHARSET is missing it means that all texts are in DOS text format so that the same files can be used both in the DOS and the Windows version of PC AXIS In the Windows version the texts are translated into Windows format when read When a file 15 saved in PC AXIS file format it 1s always saved in DOS text format in versions prior to 2000 Starting with version 2000 the files can be either in DOS or Windows texts If they are in Windows texts this information is added CHARSET ANST The keywords can be either mandatory 1 e the file cannot be read in PC AXIS if the key word 15 missing or optional e g footnotes for tables Starting with version 2005 it 1s possible to have more than one langua
12. 163 rgb 255 194 133 rgb 194 102 102 rgb 108 134 182 rgb 153 194 194 rgb 255 214 173 rgb 214 153 153 rgb 158 177 212 rgb 191 217 217 rgb 255 229 204 rgb 229 191 191 rgb 200 216 234 rgb 217 232 232 rgb 255 240 224 rgb 240 217 217 rgb 50 56 84 rgb 20 102 102 rgb 255 153 71 rgb 153 0 20 rgb 63 72 107 rgb 71 133 133 rgb 255 173 112 rgb 173 51 71 rgb 85 90 135 rgb 96 148 148 rgb 255 184 132 rgb 184 76 96 rgb 99 109 163 rgb 122 163 163 rgb 255 194 153 rgb 194 102 122 rgb 128 134 182 rgb 173 194 194 rgb 255 214 193 rgb 214 153 173 rgb 178 177 212 rgb 211 217 217 Y rgb 255 229 224 rgb 229 191 211 rgb 220 216 234 rgb 237 232 232 rgb 255 240 244 rgb 240 217 237 rgb 40 76 84 rgb 0 122 102 rgb 205 153 51 rgb 153 0 0 rgb 53 92 107 rgb 51 153 133 rgb 205 173 92 rgb 173 51 51 rgb 65 110 135 rgb 76 168 148 rgb 205 184 112 rgb 184 76 76 rgb 79 129 163 rgb 102 183 163 rgb 205 194 133 rgb 194 102 102 rgb 108 154 182 Tgb 153 214 194 rgb 205 214 173 rgb 214 153 153 rgb 158 197 212 rgb 191 237 217 rgb 205 229 204 rgb 229 191 191 rg
13. information about PX Web PAX go to http www pc axis scb se Do the adaptations as 6 4 and place the folder under PX Web 7 PxWebz 7 Admin database C Dialog 1 iGraph EJ PxMapwebz J bin colorpicker i config m css graphics 71 language macro maps JJ pxdata pxtemp 71 template Figure 31 PX Map2 named PX MapWeb2 in the PX Web structure 16 49 1 14 4 Create a folder for temporary files under PxMapWeb2 called for instance pxtemp Give write permission to this folder In Globall asp in PX Web dialog includes make the change mapversion 2 Outputmap PxMapWeb2 pxtemp PX Map starts with PxMapWeb aspx 6 6 Adaptations for PC Axis The ini file pcax2000 ini must be adapted 1f PX Map2 should be launched from PC Axis The pcax2000 in1 is located in the WINDOWS catalogue on your local disc Open the ini file in a text editor ex Notepad and change the PXMAP part to Pgm lt program path gt Pathtxt lt temp directory path gt Example from the pcax2000 1ni file in Statistics Norway 24 PXMAP Pgm C Programfiles PxMap2 PX Map2 exe Pathtxt C temp x PC AXIS c PXMap _2 3april Svelib PxMap2_WinForm pxdata Euro_AcessComputers PX 5 Fil Rediger Beregn Vis Vindu Hjelp SP exe EAA Figure 32 PX Map2 button in the PC Axis menu
14. see Figure 20 This colour bar can modified by clicking the first and or last colour with the selected colour The colours between are generated automatically When Tresholdscale 15 selected a two scale colour bar 15 displayed see Figure 21 Colour bar Figure 20 One scale colour bar Thresholdvalue 15318 5 Start values Er 5 Bl 5 Figure 21 Two scale colour bar G Start values Start values 1 2 S 129043 Figure 22 Start values for the different classes The start values are automated generated for equal intervals and quantile intervals You can set your own start values if you choose Userdefined classification type H Set colours to default values Click the button to set colours to default values 16 3 6 2 Of symbol map Choropleth Symbol Statistics Configuration Help About Color Picker Type of map Symbol RGB 255 00 Symbol coverage percent 10 B Circle symbol color gt 0 lt 0 Symbol colors BED _ D Set colors to default values Brightness 100 0 Saturation 100 0 Figure 23 Configuration of symbol map Type of map symbol B Symbol coverage percent This percentage is the total area of all symbols in proportion to the total area of the map polygons C Circle symbol color The end user can choose different colours for circles representing negative and positive figures D Sy
15. the original colour picker made by Kevin Hughes see chapter 5 3 for link to the original colour picker 3 2 Colour picker The colour picker works in the same way for choropleth and symbol maps Color Picker RGB 25500 Selected Colour in the middle Brightness 100 0 Saturation 100 0 Figure 6 Colour picker The most noticeable thing about the Color Picker is the color wheel You can click on the rainbow ish area of the wheel to select a color or click and drag the color wheel arm to choose a color Your selected color will appear in the center The color wheel toggle initially looks like a minus sign at the bottom left corner of the color wheel Click it to hide the outside rainbow part of the color wheel and click the toggle again to show it At top is the color 10 information area Your selected color will appear as RGB values hexadecimal Web values and CMYK values You can select copy and paste these values as needed into other applications saturation and brightness scrollbars allow you to change the saturation and brightness aka value of the selected color You can drag the scrollbar widgets or click anywhere within the scrollbars to change color In the same manner you can select colors by using the red green and blue RGB scrollbars Another way of selecting colour Click within the sliders and the color wheel near a gray tick mark to snap to that value The color wheel has
16. tick marks every 30 degrees The saturation and brightness sliders have quarter and third marks and marks at 10 20 80 and 90 percent The RGB sliders have marks at 50 percent and every 20 percent which snap to Web safe colors The quoted text is copied from http www kevcom com colorpicker 3 3 Choropleth maps Choropleth Symbol Statistics Configuration Help About from OECD by Country Time and Subject ONLY for test purposes FJ 3 V 100 4 4 e 50 Wow ans i t we A Ne ar Interval Observations 0 i gt 98 110 7 111 112 7 vi v El 113 116 7 E 117 128 7 129 7 Country Mexico M Time 200502 200502 Subject CPALTT CPALTT Selected value 127 2237 Figure 7 Example of a default map made from a PC Axis file yt rr re Seer ge PIT Bere HH IS MT yee yup AAT NNN ST 11 Choropleth Symbol Statistics Configuration Help About Country Time Subject Selected value Figure 8 Dynamic viewing of variables Brazil _ 200502 200502 v CPALTT CPALTT v 151 9825 MEI from OECD by Country Time and Subject ONLY for test purposes aD SEEREN EEE SEE EEE nM C E E Sr Ser 2005 2 EE SEE es 200 t
17. y coord 5026111 20700 d M2152532 9 5135204127259 4 102382 8168599 8 21256 9125714 6 76784 5159132 1 154889 610 7347 31 72276 7 124068 51 29651 9 38604 41 68570 2 123580 61 10207 1 196987 8z gt lt path id temp AD attrib area 461605662 attrib x coord 181618 14641 attrib y coord 5239118 28458 d M198297 4 5247924 11 3706 5 17611 71 27798 7 25141 1853 3 12579 9133358 5 2517 8z gt path id temp AT attrib area 1 800e 011 attrib x coord 1484451 46051 attrib y coord 6052656 03535 d M1352870 7 5924559 61 122314 1 18977 21 66717 8127 910 2711 31 87102 7 29877 21 9266 2 01 2223 9 9800 61 5189 22910 313706 6 43807 1175414 7 19310 8120954 2 5358135211 6 27414 2194515 5 5493 11131580 7 0133358 4 16500 91 12972 7 88544 1196368 8 92281 9159682 4 34568 8170045 1 59911 31177991 4 24774 4162930 9 126161 21 44477 9 55232 91 11119 5 11004 11 46331 2 109278 11 14826 2 13563 61 111194 8 31116 51 111194 8 31006 31 44477 9 8077 91 172352 2 64894 27 gt lt g gt lt svg gt Figure 52 Temp svg example The lines within the curly bracket should be identical for all temp SVG files that are input to the program transform exe 41 Appendix lt filename gt svg Example europe svg lt xml version 1 0 encoding utf 8 gt lt xml stylesheet type text css href css map css gt lt DOCTYPE svg PUBLIC W3C DTD SVG 1 1 EN http www w3 org Graphics SVG 1 1 DTD svgl 1 dtd lt ATT
18. Figure 39 Example of semicolon separated text valid for PX Map2 The first row refers to the SVG map holding the geographic data The second row contains the header names of the different columns with statistical data All rows from the 3 to the end are statistical figures The first column must always refer to the regions defined in your map The regions could be municipalities counties or other geographical divisions 7 3 Excel format The spreadsheet must contain at least two columns with data The first column has to include the regions and the following column s the statistical variable s The first row should contain the header text of the region and the different variables The following rows must contain the statistical figures When clicking the button EB the macro opens a dialog box asking for a basic map from your PX Map2 installation see Figure 40 32 fil Mine siste dokumenter Norway county SVG 4 Norway municipality 2006 svg 8 Norway municipality 2007 svg amp amp Sweden county svg Sweden municipality 2003 svg 8 5 municipality 2004 svg 4 Sweden municipality svg ne theWorld svg Figure 40 Excel dialog box asking for the basic map After the map 1s chosen a new dialog box appears requiring the figures to be visualized in PX Map de ode ad de adle ass az aa Mark the area Variable Variable2 containing
19. LIST svg xmlns attrib CDATA IMPLIED gt lt ATTLIST path attrib area CDATA IMPLIED attrib x_coord CDATA IMPLIED attrib y coord CDATA IMPLIED gt lt svg width 10092 height 100 viewBox 2935135 8 11594886 7 9401027 9 7667897 5 preserveAspectRatio xMidY Mid meet zoomAndPan magnify onload init evt xmlns http www w3 org 2000 svg xmlns xlink http www w3 org 1999 xlink xmins attrib http www carto net attrib gt metadata id version gt 1 0 lt metadata gt lt There are a lot of identifiers that start with a number According to the XML standard this is not allowed The workaround is using textprefix gt lt metadata id idprefix gt ID_ lt metadata gt metadata id timeprefix gt TIME lt metadata gt lt script type text ecmascript xlink href js map js gt lt empty gt lt script gt lt script type text ecmascript gt var map function init evt 1 map new evt target ownerDocument if parent registerMap 1 var type parent registerMap map map setType type j function mouseover region id if map 1 map onmouseover region id j j function mouseout region id if map map onmouseout region_id j j lt script gt title K K K K K K K gt lt title gt TITLE lt title gt TIL The map description K K K gt desc DESCRIPTION x desc
20. OSOFT INTERNET EXPLORER 0 00 0 0 0 19 5 2 SYMBOL OR CHOROPLETH MAP WHEN THE ONE AND WHEN THE 20 5 3 B S SENE d EEUU m T T UU T m 21 6 SUPER USER SGUMDANC E telis tot bo sera i Cei Ned orto ta ode 21 6 1 SYSTEM RBOUIREMENTS POR PA MP cas en p eee ed At ced Al 6 2 SYSTEM REQUIREMENTS FOR THE CLIENT LOCAL 22 Ol VNR 22 02 7 MIROS IMANA EXDIOFVEF Av 22 0 49 MANN 22 6 3 NO INSTALLATION OF PX MAP2 REQUIRED ccccccsscssccsccssesscesccescenccesscessesccesseuscesccesseuscesccessesceceess 22 6 4 ADAPTATIONS FOR WEP SERVER aske tod ped Comune 22 6 5 ADAPTATIONS 23 6 6 ADAPTATIONS FOR PC AXo 23 6 7 ADAPTATION OF CONFIG XML FILE armenske ikje 24 TERE 24 6 7 2 Setting primary secondary default 24 63 Sed ASTANA NE sandnes 24 6 7 4 Setting minimum default and maximum number of divisions classifications 24 6 8 ADAPTATION OF LANGUAGE rn
21. ations By altering values in ayout css and or layout print css both files placed in the css folder under your PX Map2 installation the screen and or print layout will be changed Figure 33 shows examples of elements that can be modified and their relation to the ayout css file Choropleth Symbol Statistics Configuration About Framskrevet folkemengde per 01 01 etter region kj nn alder tid og statistikkvariabel container for the map object pre osition absolute eft 1px top 50px width 600px height 600px the actual map i osition absolute eft 1px top 1px width 600px height 600px parent containter for all map variables formvariables absolute eft top 655px width 500px height 750px the region variable paneRegionvariable width 400px the rest of the variable panevariable width 400px the selected value 1 1 width 400px parent container for sidegraphics to choropleth and panechoropleth panesymbo Menn 1 0 4r 000 v 2005 2005 Sdlected value absolute eft 620px top 50px width 500px height 50px 3 histogram for choropleth map osition absolute eft 1px top 1px width 450px height 300px 241 for choropleth lege Figure 33 CSS files and their relation to user interfa
22. b 200 236 234 rgb 217 252 232 rgb 205 240 224 rgb 240 217 217 rgb 50 56 84 rgb 20 102 102 Tgb 205 153 71 rgb 133 0 20 rgb 63 72 107 rgb 71 133 133 rgb 205 173 112 rgb 153 51 71 Y rgb 85 90 135 Tgb 96 148 148 rgb 205 184 132 rgb 164 76 96 rgb 99 109 163 rgb 122 163 163 rgb 205 194 153 rgb 174 102 122 rgb 128 134 182 rgb 173 194 194 rgb 205 214 193 rgb 194 153 173 rgb 178 177 212 rgb 211 217 217 Y rgb 205 229 224 rgb 209 191 211 rgb 220 216 234 rgb 237 232 232 rgb 205 240 244 rgb 220 217 237 lt Item gt lt Item id OutlineStrokeWidthFactor gt 5 lt Item gt lt Item id SymbolCoveragePercentage gt 10 lt Item gt lt Item id SymbolFillOpacity gt 0 9 lt Item gt lt Item id SymbolStrokeOpacity gt 1 lt Item gt lt Item id SymbolToolTipFillColor gt rgb 102 163 163 lt Item gt lt Item id SymbolToolTipFillOpacity gt 0 7 lt Item gt lt Item id SymbolToolTipStrokeColor gt rgb 53 72 107 lt Item gt lt Item id SymbolToolTipStrokeOpacity gt 0 7 lt Item gt lt Item id SymbolToolTipTextColor gt rgb 255 255 255 lt Item gt lt Item id SymbolToolTipTextOpacity gt 1 lt Item gt lt Item id SymbolToolTipTextAnchor gt start lt Item gt lt Item id SymbolToolTipTextFont gt Courier lt Item gt lt I
23. be added to your Excel installation and the file dialog ini 1s copied to your user catalogue typical c Document and Settings lt yourname gt The macro creates a new toolbar called PX MapExcel with the button EB in Excel see Figure 36 Figure 36 Excel Toolbar for PX Map As default two languages Norwegian 47 and English 1 are supported in the system The language elements are defined in the file Dialog ini mentioned above It is possible to add other languages by editing the dialog ini file in a text editor ex Notepad Copy and paste all elements under the English language code 1 and translate to the language desired To find the language code for your Excel installation do as follow Launch Excel Press Alt 11 opens the Visual Basic environment Press Ctrl g opens the Immedialte window Write Application International xICountryCode Press ENTER Excel will answer with a number which is the language code you have to use in the dialog ini file Immediate pplication International xlCountryCode 47 79 3 Internet Expl 2 MirosoftOff Excel makro 04 Veileder 2005 Figure 37 Checking the CountryCode in Excel 47 is Norwegian 1 MenuText PX Map from Excel DescText Shows data in PX Map Folderl Choose the folder containing PX MapExcel xla Folder2 Check or choose your folder for Excel Addins ToolTipText PX Map Finishedl The installation 15 finished Finish
24. button General SVG functionality Here you can write anything you want but it is a good idea if it has something to do with the use of Norwegian map module PX Map2 Good Luck lt Translation gt lt Phrase gt Figure 24 Extending Help text 4 Functionalities in PX Map2 4 1 Zoom in zoom out and pan It is possible to zoom in zoom out and pan in all SVGs in PX Map2 The map picture and data distribution view are separated SVGs The way to zoom and pan depends on the SVG functionality supported by your browser Using Adobe Reader in Microsoft Internet Explorer the SVG functionalities are viewed and can be selected by right clicking in the SVG Examples see Figure 25 Zoom In Zoom Out v Higher Quality wd Find 100000 Select View SYG View Source Create Shortcut Save SVG As 60000 Add to Favorites Help View Source About Adobe SVG Viewer 40000 20000 Print Refresh 0 Properties Figure 25 Functionalities in Adobe SVG Reader 4 2 Copying an SVG picture to Word Powerpoint etc Select Copy SVG see Figure 25 Open a document in Word Powerpoint or similar Select Edit and Paste special and picture 4 3 Print functionality The PX Map2 preview and print functionalities make use of the corresponding functionalities in the current browser When using Microsoft Internet Explorer IE the direction of the print out must be set to andscape to get all the scree
25. ce The files ayout css and layout print css include comments to help finding the elements that are adaptable The values possible to modify are written in brackets below the unique identity marker for each different object in the user interface For example resizing the map 15 done by first finding the identity and then setting the desired values for width and height attributes map position absolute The values are left 1px given in number of top pixels width 600px height 600px Figure 34 Section from CSS file Some experience in CSS 15 recommended before doing any modifications For more information about CSS see http www w3 org Style CSS 28 6 10 Installing and configuring Excel macro To run 2 from Excel it 1s required to install an Excel macro in advance The macro 15 Install PX Map Excel xlb and it looks up Registry for the path where 2 is stored on your computer The Registry 15 updated by PX Map2 itself That means PX Map2 has to be launched at least once before the xIb macro can be activated Unless the xlb macro shows the message box in Figure 35 Could not find path toPxMap EJ Start 2 once first and try again Figure 35 Excel message box Could not find path to PX Map2 To install the macro double click the file Install PX Map Excel xlb in the macro folder on your PX Map2 installation The macro will
26. d Java Scripts Js Another important change was replacing ESRI shape file format for basic map data with the format Scalable Vector Graphic SVG PX Map2 as the previous versions of PX Map supports PC Axis file format as well as character separated text files for the statistical input data 1 3 Why using PX Map2 PX Map2 gives an instant and visualized overview of your statistical data The thematic maps the data distribution view and bar charts are easy and not least efficient ways to communicate a message to people It is intuitive reading a thematic map compared to reading a table of figures see Figure 1 Figure 2 and Figure 3 Prices per square meter by region time type of detached houses andcontents 1 4 H 1 Interval Observations 0 2 5 2 10 8 15 7 Nordland 2000 2000 New detached houses 01 Percentage change from previous year 3364 2 Selected value 6 6 Figure 1 Chorpleth map illustrating the figures in the grey dotted column in Figure 2 Prices per square meter by region time type of detached houses and contents 2000 2007 New detached houses Used detached houses New detached houses Used detached houses Price per square Percentage change Price per square Percentage change Price per square Percentage change Price per square Percentage change meter NOK from previous year
27. dds some functionality defined in the style sheet svg2svg xsl to the final SVG file These functionalities are essential for PX Map2 to work properly Valid SVG file for use in PX Map2 transform exe Temporary SVG file without events handling mouse over mouse out etc ogis2svg exe ESRI shape file Figure 44 Dataflow for transforming shape files to SVG file 8 3 Running the programs transformation from shape to SVG ogis2svg exe The program ogis2svg exe must be run from the command prompt on your computer IMPORTANT 1 be sure that shp2pgsql exe is stored in the same directory as ogis2svg exe Ogis2svg exe is dependent of shp2pgsql exe to run properly To see the syntax Write the program name ENTER key COWINDOWS system3 cmd exe Microsoft Windows AP Versjon 5 1 2 6 1 gt Copyright 1985 2061 Microsoft Corporation temp 15 oyls 2svy exe version H 4 2005 06 21 gt Usage ogis2svg exe input yourinputShapeFile output youroutput svg raundu i scale 250801 inputunits m outputunits mm 1 you have to specify an input file G rtenp gt Figure 45 Running ogis2svg exe from the Command prompt syntax The syntax 15 as the example above shows gt ogis2svg exe input yourinputShapeFile output youroutput svg roundval 0 1 scale 25000 inputunits m outputunits mm refer
28. e figures in red and blue marked columns in Figure 2 7 Figure 4 PX Map2 as a standalone 8 Pie SFO HERE ehm dp 8 Fe UC a Me usto der 9 Figure 7 Example of a default map made from a 10 Figure s Dynamic yiewine Of VANNER 11 Fete Sb PT Cir Cl et uu eu que ine Prod aea fida fetu ta cenit ead i 12 Fig re TO Symboldn ap with Last 12 Pouce TE Statistics Se MAIN Le uode 13 Figure T2 Cont curation Of choropleth Cp lette Mov bes ep 13 Hue 3 Type OF Map RR uU tm 14 Figure T4 me OG A 14 Fie I Hebr 14 Figure 16 Show No Data and No Data 0 eene 14 Feus dasa e naaa 14 BiG ube IS Classica lon De scusa de IM al AM MEL I M IM E 15 Fie CC 15 20 Orlov 15 Oo br
29. ed2 You will find a new button at the right end of the Standard Toolbar Finished3 and an option called PX Map from Excel in the Insert menu below the option Diagram OpenSheet You must have an open and visible worksheet containing data UF2Ib119 yellow typeface UF2chk1 Let the macro add leading zero UF2cmdOK Continue UF2cmdCancel Cancel 47 MenuText PX Map kart DescText Viser data 1 PX Map Folderl Oppgi mappenavn der filen PX MapExcel xla finnes Folder2 Kontroller eventuelt oppgi din mappe for Excel tillegg ToolTipText PX Map Finished1 Verkt y for visning av Exceltabell i PX Map er installert Finished2 Du skal finne en ny knapp lengst til h yre Standardverkt ylinja Finished3 og et valg som heter PX Map kart p Sett inn menyen nedenfor valget Diagram OpenSheet Du m ha et pent og synlig regneark med data UF21bl 19 gul skrift UF2chk1 La makroen legge til innledende 0 UF2cmdOK Fortsett UF2cmdCancel Avbryt Figure 38 Example of Dialog ini file 29 30 7 Statistical data Requirements 7 1 PC Axis file format The file format consists of optional and mandatory keywords The mandatory keywords are illustrated by this example MATRIX BE001 SUBJECT CODE BE SUBJECT AREA Population TITLE Population by region time marital status and sex STUB region HEADING time marital status sex VALUES
30. enceframe The mandatory parameters without brackets are the only used for PX Map2 36 gt ogis2svg exe input yourinputShapeFile output youroutput svg roundval 0 1 Co temproqis2zsvg exe input europe shp output temp svy 1 1 Figure 46 Running ogis2svg exe from the Command prompt example In the example above yourinputShapeFile Europe shp and youroutput svg temp svg Click ENTER key and the program requests which attributes to be included in the SVG file IMPORTANT 2 include ONLY the 4 attributes area x coord y coord and the attribute that should be the unique SVG ID i e the attribute that 1s the link to your statistical data In the example below this attribute 1s iso code working on layer temp converting shapefile to a temporary sqlfile done tablename temp The following attributes are available Please select the attributes you want to include in the SUG export Attribute gid Type serial Do you want to include it vinl n Attribute country Type varchar Do you want to include it vinl n fittribute area Type int Do you want to include it yin y Attribute iso code Type varchar Do you want to include it yinl y Attribute x_coord Tupe float8 Do you want to include it yin y Attribute y_coord Type float Do you want to include it vyinl y You selected the following Attributes area iso code Which one would you like to
31. equired Unpack the zip file and run the program 2 stored in the main directory named 2 PX Map2 to requires the directory structure illustrated Figure 30 to run properly 12 08 2009 12 12 08 2009 12 12 08 2009 12 12 08 2009 12 12 08 2009 12 2 08 2009 12 12 08 2009 12 12 08 2009 12 02 09 2009 13 00 02 09 2009 14 22 12 08 2009 12 42 hab Db DL db DA Db NNN FO NN NoSvgSupport htm 1kB Firefox Document 18 06 2008 12 14 JPxMap2 exe 28 Program 19 06 2009 08 41 gt 9 32 Programutvidels 19 06 2009 08 41 E PxMapWeb aspx SPX fil 18 06 2008 12 14 E PxMapWeb aspx cs 1kB CS fi 18 06 2008 12 14 PxMapWebStart aspx B ASPX fi 18 06 2008 12 14 PxMapWebStart aspx cs 18 CS fi 18 06 2008 12 14 Ed web config 28 CONFIG f 23 06 2008 12 Figure 30 Catalogue structure required for PX Map2 PxMap2 exe and PxMapLib2 dll has to be stored the main directory 6 4 Adaptations for Web server The bin catalogue and the files NoSvgSupport htm PxMapWeb aspx PxMapWeb aspx cs PxMapWebsStart aspx PxMapWebsStart aspx cs are only used by the WEB solution NET 2 0 Framework must be installed on the web server Unpack the PX Map2 zip file to a catalogue physical on the web server virtual catalogue on IIS Internet Information server to the physical catalogue PxMap2 6 5 Adaptations PX Web FA WEE For download and
32. er ee eee dd SEE ERA SETE 150 AREE 100 50 0 Interval Observations No data 0 98 110 7 111 112 7 113 116 7 117 128 7 129 7 Pointing in the map highlights the actual polygon region ex country county municipality and the corresponding bar in data distribution view bar chart In the example in Figure 8 the mouse pointer has been moved over Brazil When scrolling the drop down lists the map the bar chart and the legend change dynamically 3 4 Symbol maps PX Map2 provides 3 types of symbol maps circles pies and bar charts See chapter 5 2 for recommendations for use of the different symbol types Choropleth Symbol Statistics gt Configuration Help About Storting election Norwegian citizens with immigrant background by region country of birth time and contents Region Hedmark Country of birth Norden 200 2001 2001 Norwegian citizens 5303 1 Figure 9 Symbol map with circles Choropleth Symbol Statistics Configuration Help About Symbol Circle Storting election Norwegian citizens with immigrant background by region country of birth time and contents Region Ostfold Country of birth 2001 2001 Norwegian citizens 5303 1 Figure 10 Symbol map with pies Symbol Symbol detail country of birth 2001 2001 Norwegian citizens 5303 1 stfold Total Norden 200 W
33. estern Europe except the Nordic countries 250 Eastern Europe 300 North America and Oceania 350 Africa Asia Turkey and South and Central America 400 12 3 5 Statistics Choropledh symbol Minimaom Obsenaions Average Miamira standard deviance 498 0 9 vears 0 Males 1 2004 2004 Mean bapulati n 3037 1 3 Figure 11 Statistics example The statistic figures change dynamically when scrolling the drop down lists 3 6 Configuration 3 6 1 Of choropleth map Choropleth Symbol Statistics Configuration Help Color Picker Version 1 01 RGB 255 0 0 Web FF0000 CMYK 05 1009 100 0 Brightness 100 0 Saturation 100 0 Type of map Choropleth Highlight method Fil Highlightcolor Nodata color c Show No Data Divisions 5 Classificationtype Quantile intervals Colorscaletype Colorscale Start values 1 2 1106 3 Set colors to default values Figure 12 Configuration of choropleth map A Type of map 13 14 of map Choropleth v TE Figure 13 Type of map Be sure to have selected relevant type of map before manipulating the settings B High light method Highlight method Fil Fill Figure 14 Highlight method The highlight method tells how the selected polygon region in the choropleth map should be coloured either filling the polygon with t
34. fications lt Item id DivisionsMinimum gt N lt Item gt lt Item id DivisionsDefault gt N lt Item gt lt Item id DivisionsMaximum gt N lt Item gt These settings are reserved for future use 25 6 8 Adaptation of Language xml 6 8 1 General PX Map2 supports unlimited number of languages Adding a new language or updating existing language in 2 is done by editing the language xml file This file is located the Language catalogue see Figure 30 For editing XML files it is recommended to use an XML editor ex XMLSpy but a traditional text editor like Notepad can be used As default the Language xml file consists of English and the two Norwegian official languages nb NO and see Appendix The language xml file 1s built up of different sections The only sections to be added changed or deleted are the Translation sections ex Translation lang nb NO gt Kart lt Translation gt IMPORTANT do NOT delete the English Translations while this 1s the default language of PX Map2 6 8 2 How to delete an existing language For all Translation sections delete all existing Translation sections for language s of no interest Example deletion of the Norwegian languages Phrase gt Translation lang en gt Map lt Translation gt Translation lang nb NO gt Kart lt Translation gt Translation lang nn NO gt Kart lt Translation gt
35. from a Language xml file Appendix D Config xml Example config xml adapted for Statistics Norway lt xml version 1 0 encoding UTF 8 gt Config version 1 0 xmlns xsi http www w3 org 2001 XMLSchema instance xsi noNamespaceSchemaLocation config xsd gt lt Item id LanguagePrimary gt en lt Item gt lt Item id LanguageSecondary gt nb NO lt Item gt lt Item id LanguageDefault gt en lt Item gt lt Item id EmbedMap Width gt 500 lt Item gt lt Item id EmbedMapHeight gt 600 lt Item gt lt Item id EmbedPieWidth gt 350 lt Item gt lt Item id EmbedPieHeight gt 500 lt Item gt lt Item id EmbedHistogram Width gt 450 lt Item gt lt Item id EmbedHistogramHeight gt 300 lt Item gt lt Item id EmbedColorscaleWidth gt 400 lt Item gt lt Item id EmbedColorscaleHeight gt 2 10 lt Item gt lt Item id EmbedThresholdscaleWidth gt 400 lt Item gt lt Item id EmbedThresholdscaleHeight gt 450 lt Item gt lt Item id EmbedSingleColorWidth gt 400 lt Item gt lt Item id EmbedSingleColorHeight gt 100 lt Item gt lt Item id ClassificationTypeDefault gt quantile lt Item gt lt Item id DivisionsMinimum gt 3 lt Item gt lt Item id DivisionsDefault gt 5 lt Item gt lt Item id DivisionsMaximum gt 9 lt Item gt lt Encodings ASCII ANSI UTF7 UTF8 UNICODE BIGENDIANUNICODE aos lt The input encoding lt Item id DataFileEncoding gt ANSI
36. g dra musepeker til onsket omrade lt Translation gt Translation lang nn NO gt Zoome inn hold CTRL knappen inne mens venstre museknapp holdes nede og dra musepeker til onsket omrade lt Translation gt lt Phrase gt Phrase id HelpSVGZoomOut gt lt Translation lang en gt Zoom Out Press the Ctrl key and the Shift key at the same time and click the left mouse button lt Translation gt lt Translation lang nb NO gt Zoome ut hold CTRL knappen og Shift knsppen inne samtidig og klikk venstre museknapp lt Translation gt lt Translation lang nn NO gt Zoome ut hold CTRL knappen og Shift knsppen inne samtidig og klikk venstre museknapp lt Translation gt lt Phrase gt Phrase id HelpSVGPan gt lt Translation lang en gt Pan Press the Alt key and the left mouse button while dragging the mouse pointer lt Translation gt lt Translation lang nb NO gt Panorere hold Alt knappen inne og venstre muse knapp mens musepeker flyttes lt Translation gt lt Translation lang nn NO gt Panorere hold Alt knappen inne og venstre muse knapp mens musepeker flyttes lt Translation gt lt Phrase gt Phrase id HelpS VGIdentitylnMap gt lt Translation lang en gt Identify a region in the map mouseover a polygon shows the name of the selected region in the Region field lt Translation gt Translation lang nb NO gt Identifiser en region i kartet med musa i kartet og regionens navn vises 1 regionsfeltet lt Translation
37. ge in a px file The second language is repeated for all necessary keywords CONTENTS Population CONTENTS sv Befolkning etc Which languages are available are given in the keyword LANGUAGES The text quoted 15 the introduction to the entire documentation of PC Axis file format and can be found at http www pc axis scb se TechDoc asp When a PC Axis file 1s used as a basis for making maps in PX Map the keyword MAP is required The MAP keyword 15 used as a link to the basic map The value 15 the name of the svg file that holds the maps coordinates 3l Example region Norway municipality svg Name of the svg file the extension is optional 7 22 Text format character separated txt csv While PC Axis files includes both data and metadata the text files valid for PX Map2 include only data in addition to the name of the basic map the svg file and headings for the different columns Figure 39 shows an example of a valid text file Norway Municipality svg Mun nr Pop density number km2 Pop 0 14 years per cent Pop 15 64 years per cent Pop 65 years and more per cent Total Population Area included lakes km2 0101 41 38 18 4 62 8 18 8 26523 641 0104 416 54 17 6 65 8 16 6 26242 63 0105 115 78 18 0 65 2 16 8 47122 407 0106 232 47 18 1 64 7 17 2 67415 290 0111 39 62 18 2 66 3 15 5 3487 88 0118 4 54 18 9 61 3 19 8 1458 321 0119 7 97 17 5 61 7 20 8 3290 413
38. gt Translation lang nn NO gt Identifiser en region i kartet med musa i kartet og regionens navn vises 1 regionsfeltet lt Translation gt lt Phrase gt Phrase id HelpS VGIdentitylnHistogram gt lt Translation lang en gt Identify a region by pointing in the Histogram lt Translation gt Translation lang nb NO gt Identifiser en region i kartet ved peke i datafordelingen lt Translation gt Translation lang nn NO gt Identifiser en region i kartet ved peke i datafordelingen lt Translation gt lt Phrase gt lt Phrase id HelpS VGColourPicker gt Translation lang en gt Change colours Point and move in colour wheel the selected colour is shown in middle of the wheel To use this colour just point and click in the field you want to change colour lt Translation gt Translation lang nb NO gt Forandre farger Pek og roter i fargehjulet Den valgte fargen vises i midten For benytte denne fargen pek og klikk i det feltet du nsker endre farge lt Translation gt lt Translation lang nn NO gt Endre farger Pek og roter i fargehjulet Den valgte fargen vises i midten For benytte denne fargen pek og klikk i det feltet du nsker endre farge lt Translation gt lt Phrase gt lt Section gt More informative text can be added within any of the Phrase paragraphs Example see Figure 24 Phrase id HelpS VGGeneral gt Translation lang en gt Press right mouse
39. he highlight colour or only outline the polygon with the highlight colour High light colour Highlightcolor Figure 15 Highlight colour The highlight colour can be changed by selecting the desired value in the colour picker see chapter 3 2 and click the Highlightcolor field D Show No data Highlightcolor Nodata color Show No Data Figure 16 Show No Data and No Data colour The Show No Data box must be ticked if polygons regions without values should be shown These polygons will then be shown in the colour selected in the No Data colour field see chapter 3 2 for selection of colours Untick the Show No Data box if polygons without data not should be shown E Divisions classification type and colour scale type Divisions 5 v Classificationtype 2 Colorscaletype Figure 17 Divisions Could be a number between 2 and 9 15 Divisions E vi Classificationtype Quantile intervals v Colorscaletype Equal intervals Userdefined Figure 18 Classification type PX Map2 provides 2 statistical classification types 1 e quantile classification and equal intervals In addition it 1s possible to set limit value for each class userdefined Divisions 5 v Classificationtype Quantile intervals v Colorscaletype Colorscale Colorscale Thresholdscale Figure 19 Colour scale type When Colorscale 15 selected a one scale colour bar 1s displayed
40. istical data requirements Opening file results in a choropleth map on your screen The map s default attributes colour language type of classification etc are based on the settings in the Configuration file config xml of PX Map2 These settings can be changed see Chapter 6 7 for adaptation of the Config xml file 2 2 From PC Axis Launch PX Map by pressing the button in PC Axis In advance make sure that your PC Axis installation 15 set up ready to run PX Map2 for details see Chapter 6 6 IMPORTANT the MAP keyword 15 required in the PC Axis files and its value has to be the name of the SVG file representing the basic map Ex if your PC Axis file contains municipality data the SVG file has to contain the coordinates for the relevant municipalities See chapter 8 for more information about map requirements 2 3 From Excel To launch PX Map2 from an excel spreadsheet requires a macro installed in advance See chapter 6 10 for details Scroll bars After installing the macro the button EB is visible on the standard toolbar When clicking the button some dialog boxes are displayed before 2 is launched 3 Making maps 3 1 General To decide what kind of map choropleth or symbol that best suits your data see chapter 5 2 for information The default map type is choropleth can be changed in the Config xml file see Chapter 6 7 The colour picker in PX Map2 15 a simplified version of
41. lated information http www kevcom com colorpicker the homepage of the colour picker used in 2 http www pc axis scb se this is the homepage for PC Axis also including links to other PX modules 6 Super User s Guidance 6 1 System Requirements for PX Map2 Microsoft NET Framework Version 2 0 must be installed on the machine dedicated for 2 The machine can be a local PC or a Web Server The need for a separate installation or not of Microsoft NET Framework Version 2 0 depends on your Operation System OS For example the framework is embedded in Windows XP The Framework 15 free of charge and can be downloaded from http www microsoft com downloads 22 6 2 System Requirements for the Client local PC 6 2 1 Different browsers PX Map2 supports two different browsers Microsoft Internet Explorer and Mozilla Firefox To run PX Map2 properly the program needs to know the current browser The default browser can be set in the configuration file see Chapter 6 7 6 2 2 Microsoft Internet Explorer e Microsoft Internet Explorer 6 0 Adobe SVG Reader Microsoft IE does not have native SVG support thus Adobe SVG Reader must be installed on the Client Adobe SVG Reader is free of charge and can be downloaded from http www adobe com svg viewer install 6 2 3 Mozilla Firefox 2 0 Firefox 2 0 has native SVG support 1 e no SVG plugin is required 6 3 No installation of PX Map2 r
42. lt Item gt lt The output encoding gt lt Item id HtmlTemplateFileEncoding gt UTF8 lt Item gt lt Set to SystemDefault if default system web browser should be used or specify browser e g C Programfiles Internet Explorer IEXPLORE EXE lt Item id DefaultWebBrowserPath gt SystemDefault lt Item gt lt Item id ColorScaleStart gt rgb 255 240 224 lt Item gt lt Item id ColorScaleEnd gt rgb 153 0 0 lt Item gt lt Item id ColorThresholdScaleNegativeStart gt rgb 153 0 0 lt Item gt lt Item id ColorThresholdScaleNegativeEnd gt rgb 255 240 224 lt Item gt lt Item id ColorThresholdScalePositiveStart gt rgb 224 240 255 lt Item gt lt Item id ColorThresholdScalePositiveEnd gt rgb 0 102 102 lt Item gt lt Item id ColorHighlight gt rgb 255 237 77 lt Item gt lt Item id ColorBlank gt rgb 250 250 250 lt Item gt lt Item id ThresholdValue gt 0 lt Item gt lt Item id ColorScaleStartR gt 255 lt Item gt lt Item id ColorScaleStartG gt 240 lt Item gt lt Item id ColorScaleStartB gt 224 lt Item gt lt Item id ColorScaleEndR gt 153 lt Item gt lt Item id ColorScaleEndG gt 0 lt Item gt lt Item id ColorScaleEndB gt 0 lt Item gt lt Item id ColorThresholdScaleNegativeStartR gt 153 lt Item gt lt Item id ColorThresholdScaleNegativeStartG gt 0 lt Item gt lt Item id ColorThresholdScaleNegativeStartB gt 0 lt Item gt lt Item id ColorThresh
43. mbol colors Clear out colorpalette Reset the colours These colours are for other symbols than circles The colour palette can be customized by the user One can keep and modify working set of colors Click once on an empty or filled square to fill that space with the selected color These colours are stored in a cookie on the computer E Set colors to default values The default values are set but can be modified in the Config xml file It is the item id Colorpalette that holds the default values which are defined by RGB values 3 7 Help The text in the Help pane 15 all written in the Language xml see chapter 6 8 There is an own section in the Language xml for the help text see below Section lt Description gt Help section lt Description gt Phrase id HelpS VGGeneral gt 17 Translation lang en gt Press right mousebutton for General SVG functionality lt Translation gt Translation lang nb NO gt Press heyre museknapp for generell SVG funksjonalitet lt Translation gt Translation lang nn NO gt Press heyre museknapp for generell SVG funksjonalitet lt Translation gt lt Phrase gt Phrase id HelpSVGZoomln gt lt Translation lang en gt Zoom In Press the Ctrl key while clicking the left mouse button and dragging the mouse pointer to area of interest lt Translation gt lt Translation lang nb NO gt Zoome inn hold CTRL knappen inne mens venstre museknapp holdes nede o
44. meter NOK from previous year meter NOK from previous year meter NOK from previous yea 01 stfold 1125 7125 18 7 18 6 14 637 12 4 02 Akershus 14 7 11 228 17 4 16 6 21 278 12 8 03 Oslo 22 6 15 645 17 0 10 5 31 046 10 5 04 Hedmark 20 5 5 551 12 3 4 5 11 842 7 1 05 Oppland 4 2 5811 13 5 17 0 11 697 9 4 06 Buskerud 10 5 7 605 16 9 11 6 15138 07 Vestfold 152 8 120 14 8 13 8 16 220 08 Telemark 1 4 5 667 8 8 15 3 12 527 09 Aust Agder 18 8 6 862 11 1 18 4 13 666 10 Vest Agder 11 9 6 670 8 0 15 7 16 035 11 Rogaland 10 8 7 835 8 0 18 2 18 955 12 Hordaland l 13 6 7 581 16 2 12 0 19 893 14 Sogn og l Fjordane l l l l l l 15 M re og Romsdal 16 S r Tr ndelag 17 Nord Tr ndelag 18 Nordland 19 Troms Romsa 18 7 5 671 15 0 11 754 5 825 12 144 5 6 980 16 389 5 207 9 544 5 468 13 079 6 889 17 218 20 Finnmark L 4 930 15 084 Figure 2 Regional statistics for detached houses in Norway Counties Statistics Configuration Help About Prices per square meter by region time type of detached houses andcontents Symbol Bar graph Symbol detail time New detached houses 01 Price per square meter NOK Hedmark Mi 2000 2000 2007 2007 Hedmark New detached houses 01 Price per square meter 3364 1 v Figure 3 Symbol map with bars illustrating the figures in red and blue marked colum
45. n content printed Use of Microsoft Internet Explorer IE and the preview functionality 15 shown in the example below 19 E Forhandsvisning Skriv ut we Side1 av2 gt amp 5 75 Lukk 200502 200502 CPALTT Figure 26 Preview of print functionality in IE Norwegian version 5 Tips amp Tricks 5 1 Avoiding Warning message in Microsoft Internet Explorer Depending on the security level on your computer warning message can be shown when running SVG applications in Microsoft Internet Explorer IE This message seems very annoying and to avoid the message it 15 possible to change the security level In the menu select Tools Internet Options Advanced Tick off Allow active content to run in files on My Computer see Figure 27 BE AWARE that this permission may cause opening of a security hole in IE especially if the computer is directly connected to Internet 20 Internet Options E 2 x General Security Privacy Content Connections Programs Advanced Settings Just display the results in the main window gt Just goto the most likely site B Security active content from CDs ta run om D Lie Allow ERE lor rur or 3 install even if the ae Is invalid Check tor publisher s certificate revocation C Check for server certificate revocation requires restart Check for signatures on downloaded programs Do n
46. ng en gt Statistics lt Translation gt Translation lang nb NO gt Statistikk lt Translation gt Translation lang nn NO gt Statistikk lt Translation gt lt Phrase gt continues Phrase id HelpSVGldentityInMap gt Translation lang en gt Identify a region in the map mouseover a polygon shows the name of the selected region in the Region field lt Translation gt Translation lang nb NO gt Identifiser en region i kartet pek med musa i kartet og regionens navn vises i regionsfeltet lt Translation gt Translation lang nn NO gt Identifiser en region i kartet pek med musa i kartet og regionens navn vises i regionsfeltet lt Translation gt lt Phrase gt continues Phrase id AlertWaitMessage gt Translation lang en gt This might take a few seconds lt Translation gt Translation lang nb NO gt Dette kan ta flere sekunder lt Translation gt Translation lang nn NO gt Dette kan ta fleire sekund lt Translation gt lt Phrase gt lt Phrase id AlertAreaAttribMissing gt lt Translation lang en gt Area attributes are missing Symbols can not be created lt Translation gt lt Translation lang nb NO gt Areal attributter mangler 1 kart svg Symbol kart kan ikke genereres lt Translation gt lt Translation lang nn NO gt Areal attributter manglar i kart svg Symbol kart kan ikkje lagas lt Translation gt lt Phrase gt lt Section gt lt Language gt Figure 54 Example
47. ns in Figure 2 PX Map2 provides functionalities that give several possibilities to visualize subsets of your dataset in different ways Some of them are e several variables in one dataset symbol maps with pies symbol maps with charts symbol maps with circles in different colours for negative and positive figures tool tips in symbol maps choropleth maps with 2 colour scales round a user defined threshold value scrolling a variable produces fake animation pointing to a region in the map highlights the corresponding bar in the Data Distribution View and opposite the corresponding region 15 highlighted when pointing to a bar in Data Distribution View e end user settings of colours are stored in Cookies 2 Launching PX Map2 Make sure that your system 15 set up ready to run PX Map2 see Chapter 6 2 1 Asastandalone program Look up PxMap32 exe in the Catalogue PxMap2 in your Windows explorer Double click on PxMap2 exe You get the following picture on your screen File Figure 4 PX Map2 as a standalone program Point to File and then Open see Figure 5 Px Map Figure 5 File Open An Open Dialog Box appears and shows the same directories and files as in Figure 30 Go to the pxdata catalogue Select the file containing the Statistical data you want to visualize in PX Map2 This file has to be a PC Axis file px or a character separated text file see Chapter 7 for details of stat
48. oldScaleNegativeEndR gt 255 lt Item gt lt Item id ColorThresholdScaleNegativeEndG gt 240 lt Item gt lt Item id ColorThresholdScaleNegativeEndB gt 224 lt Item gt lt Item id ColorThresholdScalePositiveStartR gt 224 lt Item gt lt Item id ColorThresholdScalePositiveStartG gt 240 lt Item gt lt Item id ColorThresholdScalePositiveStartB gt 255 lt Item gt lt Item id ColorThresholdScalePositiveEndR gt 0 lt Item gt lt Item id ColorThresholdScalePositiveEndG gt 102 lt Item gt lt Item id ColorThresholdScalePositiveEndB gt 102 lt Item gt lt Item id ColorHighlightR gt 0 lt Item gt lt Item id ColorHighlightG gt 0 lt Item gt lt Item id ColorHighlightB gt 0 lt Item gt lt Item id ColorBlankR gt 255 lt Item gt lt Item id ColorBlankG gt 255 lt Item gt lt Item id ColorBlankB gt 255 lt Item gt lt Item id ColorSymbolText gt rgb 0 0 0 lt Item gt 43 44 lt Item id ColorCircleSymbol gt rgb 40 56 84 lt Item gt lt Item id ColorCircleSymbolNegative gt rgb 255 0 0 lt Item gt Item id ColorSymbolStroke gt rgb 40 56 84 lt Item gt lt Item id ColorPalette gt rgb 40 56 84 rgb 0 102 102 rgb 255 153 51 rgb 153 0 0 rgb 53 72 107 rgb 51 133 133 J Tgb 255 173 92 rgb 173 51 51 rgb 65 90 135 rgb 76 148 148 rgb 255 184 112 rgb 184 76 76 rgb 79 109 163 rgb 102 163
49. ot save encrypted pages to disk Empty Temporary Internet Files folder when browser 1 closed Enable Integrated Windows Authentication requires restart Enable Profile Assistant Use SSL 20 Use SSL 30 Use TLS 1 0 m 4 Restore Defaults med Figure 27 Internet Alternatives 5 2 Symbol map or choropleth map when the one and when the other A rule of thumb 15 to choose choropleth maps for relative numbers ex percentages per thousand inhabitants and symbol maps for absolute numbers i e exact figures for the variables For symbol maps not all symbols are suited for all kind of data Pies are suitable for classifications that make a total 100 per cent of a phenomena ex gender male and female Pies are NOT suitable for time series Bar charts are suitable for time series but can be used for other purposes as well 21 2001 2001 Norwegian citizens 5303 1 Mare and Romsdal Total Norden 200 Westem Europe except the Nordic countries 250 Eastern Europe 300 North America and Oceania 350 Africa Asia Turkey and South and Central America 1400 Figure 28 Ex of a classification phenomena that sums up to a total 100 per cent shown in pies 2001 2001 Norwegian citizens 5303 1 Oslo 2001 2001 2005 2005 Figure 29 Ex of a time series classification shown in bar charts 5 3 Useful links http www w3 org Graphics SVG this site provides all kind of SVG re
50. s 34 8 2 Shape file requirements To be able to make symbol maps PX Map2 the basic map data requires attributes for a label point x y coordinates for each polygon region If this is lacking PX Map2 can not create symbol maps In addition to the coordinates PX Map2 needs the area attribute for each polygon The area attribute is used for calculating the total size of all symbols in the final map so the symbols will have an appropriate size in proportion to map IMPORTANT it is required that the x coordinate attribute and the y coordinate attribute MUST have the names x coord and y coord respectively Similarly the area attribute MUST have the name area Hint you can find suitable scripts on http arcscripts esri com that help calculating x coord y coord and area Statistics Norway has used addxycoo ave to generate the x coord and y coord and Xtools to calculate area The program MapViewS VG http www mapviewsvg com is an extension for ArcGIS 8 x 9 x or ArcView GIS 3 x by ESRI It provides the possibility to convert maps from ArcView GIS ArcGIS into SVG format The transformation routine provided by Statistics Norway includes 2 programs The first one ogis2svg exe which uses the shp2pgsql exe can be downloaded for free on http www carto net papers svg utils shp2svg This program converts a shape file to an SVG file The second program transform exe is made by Statistics Norway Transform exe a
51. select as a unique svq id Type in attribute Name or none if you don t want to include a unique id iso code you selected iso code as unique attribute i J or gt Do you want to group the data according to one attribute Ctupe n y Mould you like to include event handlers to the individual elements Type amp yin n Geometry type MULTIPOLVGON Converted 47 MULTIPOLYGON objects Done xmin 27113081 8 xmax 62426568 1 ymin 4109558 2 ymax 11412317 7 writing SUG file removing temporary sqlfile done done Figure 47 Dialogs when running ogis2svg exe Transform exe 5 Start program transform exe Windows environment 1 e double click in Windows Explorer the below screen picture 1s shown 27 Transform File Transform Source file Browse Transformation u Browse Transformationparameter s Name O Add Namespace p 3 Value gg Delete Transform Figure 48 Dialog entry Transform exe The Transformation parameters the add key and delete key are not utilized for the time being 7 The source file must be your temp svg file Select it by writing the filename and path in the field or find it by using the Browse button 7 The Transformation file must be svg2svg xsl Select it by writing the filename and path in field or find it by using the Browse button
52. ta are not read correctly by PX Map2 10 Acknowledgements Thanks to Kevin Hughes for his Color Picker 39 11 Downloads and contacts 2 and Transform exe ShapeToSVG20061215 zip can be downloaded from www ssb no pxmap Koblinger http www ssb no pxmap Statistisk sentra A Forsiden Kommuner Programvare PX Map 2 PX Map 2 er en applikasjon for lage dynamiske temakart i Windows milj eller Web miljo Applikasjonen kan kj res som et frittst ende program eller implementeres i andre program f eks PC Axis PX Map 2 vil erstatte tidligere PX Map 1 x for Windows og PX iMap for Web motsetning til tidligere PX Map versjoner er versjon 2 utviklet i dotNet miljo og benytter Scalable Vector Graphics SVG som format for kartdata og annen grafikk Statistikkdataene m ligge i PC Axis filer eller tegnseparerte filer f eks semikolonseparerte PX Map 2 innehar langt mer funksjonalitet enn tidligere versjoner PC Axis Maskinen PC eller server PX Map 2 skal kj res p M dotNET Framework 2 0 installert og ha st tte for SVG PX Map 2 1 NY Inntil videre st tter PX Map 2 Microsofts Internet Explorer IE med Adobe SVG reader installert Det forventes at applikasjonen p sikt vil st tte andre nettlesere bl a Firefox Mozilla PX Map ver 1 07 PX Map 2 er raskt installere og ta i bruk Det f lger eksempeldata med applikasjonen og brukeren kan enkelt tilpasse egne sta
53. tem id SymbolToolTipTextFontSize gt 10 lt Item gt lt Item id SymbolKeyRectangleX gt 0 lt Item gt lt Item id SymbolKeyRectangleY gt 20 lt Item gt lt Item id SymbolKeyRectangleWidth gt 10 lt Item gt lt Item id SymbolKeyRectangleHeight gt 10 lt Item gt lt Item id SymbolKeyRectangleR X gt 0 5 lt Item gt lt Item id SymbolKeyRectangleR Y gt 0 5 lt Item gt lt Item id SymbolKeyRectangleOpacity gt 1 lt Item gt lt Item id SymbolKeyTextFont gt Arial lt Item gt lt Item id SymbolKeyTextFontSize gt 12 lt Item gt lt Item id SymbolKeyTextColor gt rgb 0 0 0 lt Item gt lt Item id SymbolKeyTextOpacity gt 1 lt Item gt lt Item id SymbolKeyTextX gt 15 lt Item gt lt Item id SymbolKeyTextY gt 10 lt Item gt lt Item id SymbolKeyTextAnchor gt start lt Item gt lt Item id Font gt arial lt Item gt lt Item id TextSize gt 20 lt Item gt lt Item id NumOfSymbolDetail WaitLimit gt 1500 lt Item gt lt Config gt Figure 55 Example of a config xml file
54. tistikkdata og kartdata for bruk i PX Map 2 PROGRAMVARE Releases e 2009 september 10 PX Map 2 12 o PX Map2_20090910 zip 2008 may 22 PX Map 2 11 o 2 11 zip 2007 Desember 27 PX Map 2 1 o Getting started o 2 1 2007 September 5 2 02 o Getting started o PX Map2 20070905 zip 2007 March 30 PX Map 2 01 o PX Map2 20070330 zip Other downloads e ShapeToSVG20061215 zip External downloads e Microsoft NET Framework Version 2 0 Redistributale Package x86 e Adobe SVG Viewer e Shape to svg converter from Contacts e Marianne Dysterud gssb no pxmap ssb no 2008 Statistisk sentralbyra Figure 51 PX Map homepage 40 AppendixA temp svg lt xml version 1 0 encoding UTF 8 gt lt DOCTYPE svg PUBLIC W3C DTD SVG 1 1 EN http www w3 org Graphics SVG 1 1 DTD svgl 1 dtd lt ATTLIST svg xmins attrib CDATA IMPLIED 3 lt ATTLIST path attrib area CDATA ZIMPLIED attrib x coord CDATA IMPLIED attrib y coord CDATA IMPLIED gt lt svg width 10094 height 10096 viewBox 2935135 8 11594886 7 9401027 9 7667897 5 xmlns http www w3 org 2000 svg xmlins xlink http www w3 org 1999 xlink xmlns attrib http www carto net attrib gt lt g id temp fill none stroke black stroke width 4700 5 stroke linecap round stroke linejoin round path id temp AL attrib area 4 804e 010 attrib x coord 2242885 90079 attrib

Download Pdf Manuals

image

Related Search

Related Contents

W5-JDC4 User Manual 1 - Western Reserve Controls  、そこから、ビ - セイコーソリューションズ株式会社  POUR VOTRE - MG Form Rhônes Alpes  Saeco HD7019  Samsung SP-L250 Uživatelská přiručka  Dataram DTM63344E memory module  コンピュータ化システム適正管理ガイドラインが対象となる新規  ToxiRAE Pro PID User`s Guide  Olympus M1200 User's Manual  USB741UK Compact USB Charger Item ref: 421.741UK User Manual  

Copyright © All rights reserved.
Failed to retrieve file