Jump to content
Software FX Community

marco.shaw

Members
  • Posts

    249
  • Joined

  • Last visited

Everything posted by marco.shaw

  1. In build 2508, labellinkfile is missing from the cmdlets help in the 'Contents' tab. I don't see it listed under "PowerGadgets cmdlets"->"Out-Map Parameters"->"Details". The path "PowerGadgets cmdlets"->"Out-Map Parameters"->"Summary" has a link for "LabelLinkFile", but clicking on it link gives an error page. One can use the search option though, and find 2 hits...
  2. In the help file, the palette parameter documentation lists "HighContrast.HighContrast" in the listing of supported palette options. I believe the proper use is only "HighContrast".
  3. Assuming I'm using the Template Creator properly, when I change the color palette, I only see the background of the sample map being changed. It would be a nice visual addition to have the actual series colors change also in the sample map in the left pane. Is this possible? (Hopefully I've explained myself clearly enough.) RealtimeTest.zip
  4. Is it possible to not require a physical file with -labellinkfile or -createlabellinkfile? I'd like to avoid having to write files to the local host when possible. I'd like to see -createlabellinkfile and -labellinkfile (along with a renaming) be able to use a simple PS variable object. For example: out-map -createlabellinkstring $some_string_variable out-map -labellinkstring $some_string_variable
  5. Answer here: http://community.softwarefx.com/forums/t/9223.aspx
  6. Perhaps something useful for others... I asked a question in the forum here, and the microsoft.public.windows.powershell newsgroup about whether the import-csv output could be copied using some other cmdlet like write-output... Yes it can! PS C:\> gc country.csvCountry,PointsU.S.A.,20Canada,10PS C:\> import-csv country.csv Country Points------- ------U.S.A. 20Canada 10 PS C:\> "U.S.A.,20","Canada,10"|select-object @{e={$_.split(',')[0]};n='Country'},@{e={$_.split(',')[1]};n='Points'} Country Points------- ------U.S.A. 20Canada 10 So, instead of using import-csv to pipe to out-map, one can use write-output or as illustrated above. I haven't tried it yet, but that might keep me from having to write temporary files in some scripts of mine. I might also be able to throw in scriptblocks into the data piped to out-map.
  7. I'm assuming that ASP.NET does a compile of the Forum's "front page" and keeps it in an easier to access/faster cache of some sort. I'll notice that after adding a post or a thread that it doesn't update the page for me right away. Doing a refresh doesn't seem to do it either. It may be something you want to keep the web server running faster...
  8. PS C:\> gc country.csvCountry,PointsU.S.A.,20Canada,10 Instead of going with import-csv like this:PS C:\> import-csv country.csv|out-map -label country -values points -mapsource world\worldcountries Might it be possible to add entries directly from a write-output? Like this: PS C:\> write-output "Country,Points" `>> "U.S.A.,20" `>> "Canada,10"|out-map -label country -values points -mapsource world\worldcountries>>
  9. Thanks for replying so quickly. I'm sure I can loop through all the countries.
  10. I'm tired, and sleepy... It is actually "-ConditionalAttributes_0_Condition_From" and "-ConditionalAttributes_0_Condition_To".
  11. The documentation on pointlabels refers to this string: Out-Map -ConditionalAttributes_0_PointLabels_From 20 -ConditionalAttributes_0_PointLabels_To 60 -ConditionalAttributes_0_PointLabels_Visible true -ConditionalAttributes_0_PointLabels_Font "Arial, 12" I tried this, but it doesn't work: PS C:\> gc country.csvCountry,PointsU.S.A.,20Canada,10PS C:\> import-csv country.csv|Out-Map -mapsource world\worldcountries -ConditionalAttributes_0_PointLabels_From 20 -ConditionalAttributes_0_PointLabels_To 60 -ConditionalAttributes_0_PointLabels_Visible true -ConditionalAttributes_0_PointLabels_Font "Arial, 12"WARNING: Property from not foundWARNING: Property to not found Documentation error?
  12. I guess these are called "pointlabels"... I'll keep reading... ;-)
  13. This may be documented, and I just don't know what I'm looking for... When mouse-ing over a US state or a country in the world maps, a tooltip will popup with the name of that element (state or country), as well as the element name will appear directly on the map. They both appear to have about the same font. I can't find whether I can change the font/size of what shows for both or either of these. Is it possible to modify the font/size?
  14. I'm testing something simple like: PS C:\> gc country.csvCountry,PointsU.S.A.,20Canada,10 And using out-map: [line wrapping might be an issue with this post] PS C:\> import-csv country.csv|out-map -values Points -label Country -mapsource World\WorldCountries -conditionalAttributes_0_condition_from 1 -conditionalAttributes_0_condition_to 1000 -conditionalAttributes_0_Color Red -conditionalAttributes_0_Text "1 to 1000" -defaultAttributes_Color Gray This gives me kind of what I want... A default color to all the countries not in country.csv, *but*, I'd also want a corresponding entry in the legend box that perhaps says something like "No entries" associated with the color gray. I tried this: PS C:\> import-csv country.csv|out-map -values Points -label Country -mapsource World\WorldCountries -conditionalAttributes_0_condition_from 1 -conditionalAttributes_0_condition_to 1000 -conditionalAttributes_0_Color Red -conditionalAttributes_0_Text "1 to 1000" -defaultAttributes_Color Gray -conditionalAttributes_1_condition_from 0 -conditionalAttributes_1_condition_to 0 -conditionalAttributes_1_Color Gray -conditionalAttributes_1_Text "No entries" But the thing is with the above... If I mouse-over the "1 to 1000" category in the legeng, all the other entries remain Gray. I want to be able to rollover the "1 to 1000" category, and have the default Gray change to a shade of white (like how the Red changes color if I mouse-over the "No entries" entry in the legend). Can I do this? I realize I could just add a "0" to every country in my country.csv file, but I'm lazy...
  15. Hmmm... Can one sign up for email alerts to the blog itself, and not just the comments to entries. Perhaps it will support RSS?
  16. I think creating a group specifically for users to share their cool scripts with everyone would be a nice addition to the forums. I'm not sure if www.microsoft.com/technet/scriptcenter will be adding a section on 3rd party cmdlets though.
  17. I've created a 'labellinkfile' as per the quick start guide: out-map -mapsource World\WorldCountries –createlabellinkfile countries0.xml I've then looped through the file to make some modifications: gc countries0.xml|foreach { if($_ -match "<DataText>U.S.A.</DataText>"){ write-output "<DataText>USA</DataText>" } elseif($_ -match "<DisplayText>U.S.A.</DisplayText>"){ write-output "<DisplayText>USA</DisplayText>" } elseif($_ -match "<DataText>U. K.</DataText>"){ write-output "<DataText>United Kingdom</DataText>" } elseif($_ -match "<DisplayText>U. K.</DisplayText>"){ write-output "<DisplayText>United Kingdom</DisplayText>" } elseif($_ -match "<DataText>Netherlands</DataText>"){ write-output "<DataText>The Netherlands</DataText>" } elseif($_ -match "<DisplayText>Netherlands</DisplayText>"){ write-output "<DisplayText>The Netherlands</DisplayText>" } else{ write-output $_ }}|out-file -encoding ascii countries.xml I'm assuming I need to change the DataText and DisplayText XML sections to match my data input and modify what the display text is for each country. Now, that doesn't seem to be working properly. Is this the proper way to call the XML file when I'm creating my map: out-map -labellinkfile countries.xml [some other stuff]
  18. Any updates on when the new installer will be available?
  19. I'm trying 'out-map -mapsource World\WorldCountries -listobjects' for example. If it makes a difference... I mistakingly installed PowerGadgets *before* installing PowerShell. So, the 'Windows Powershell with PowerGadgets' icon in the Start menu doesn't work, seemingly as a result. I open the regular PSH window, run 'add-pssnapin PowerGadgets', then run my commands. All seems OK, as just doing something like 'out-map -mapsource World\WorldCountries -configure' works fine as expected. I tried other maps, and none seem to work with -listobjects. I'll wait for the update... Is there a mailing list for updates or since I registered to get a key, will I be made aware via that email address?
  20. Actually, running just 'out-map' produces the same results. I installed a fresh Windows 2003 SP1 (with patches) in a VMWare session, and out-map works fine there. I checked the versions of mscorlib.dll on my Windows XP Pro SP2 system, and they match exactly the version in Windows 2003 SP1 .NET 2.0: 2.0.50727.42 (RTM.50727-4200). Something on my desktop is causing out-map to crash. I'm not overly concerned at this point, as long as I have my VM that can run the cmdlet...
  21. The quick start PDF refers to the -listobjects flag to get the listing of objects within a map. Giving that flag doesn't seem to produce the desired results, and returns nothing at all, except a, perhaps, default map. 'get-command out-map -detailed' or -full make no reference to -listobjects whatsoever either.
  22. Running "out-map -template MyTemplate" causes a .NET error: 'System.Reflection.TargetInvocationException' in mscorlib.dll. What details should I provide?
×
×
  • Create New...