MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Problem with geoshowbyzoomlevel in C#

This is a discussion on Problem with geoshowbyzoomlevel in C# within the Development forums, part of the MapPoint 2006/2009 Discussion category; I'm trying to use DisplayDataMap with geoshowdataby=geoshowbyzoomlevel but not work; give an error geography type I've try same code with ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-07-2007
Junior Member
Yellow Belt
 
Join Date: Jul 2007
Location: Brescia (ITALY)
Posts: 13
Send a message via Skype™ to rlisario
Question Problem with geoshowbyzoomlevel in C#

I'm trying to use DisplayDataMap with geoshowdataby=geoshowbyzoomlevel but not work; give an error geography type

I've try same code with same import file with geoshowdataby=georegion1 or with geoshowdataby=georegion2 or with geoshowdataby=geopostal1 and it's all ok.

The file that import has name, latitude, longitude and data.

The same file imported with MapPoint Application work with zoom level

Somebody has used DisplayDataMap with geoshowdataby=geoshowbyzoomlevel ?

Thanks,
Rinaldo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-17-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
Re: Problem with geoshowbyzoomlevel in C#

Have you tried importing the file through the MapPoint wizard interface (not code) and choose the zoom by all levels option - does it give you that option?

Can you post a sample part of the file as an attachment here?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-20-2007
Junior Member
Yellow Belt
 
Join Date: Jul 2007
Location: Brescia (ITALY)
Posts: 13
Send a message via Skype™ to rlisario
Re: Problem with geoshowbyzoomlevel in C#

Dear Eric,

The strangeness that is through the MapPoint wizard interface to import the same file csv (that i've attach) is all ok.

The my code in C# is:

object[,] arrObjCampi = new object[4, 2];
arrObjCampi[0, 0] = "Nome";
arrObjCampi[0, 1] = MapPoint.GeoFieldType.geoFieldName;
arrObjCampi[1, 0] = "Latitudine";
arrObjCampi[1, 1] = MapPoint.GeoFieldType.geoFieldLatitude;
arrObjCampi[2, 0] = "Longitudine";
arrObjCampi[2, 1] = MapPoint.GeoFieldType.geoFieldLongitude;
arrObjCampi[3, 0] = "Fatturato";
arrObjCampi[3, 1] = MapPoint.GeoFieldType.geoFieldData;

m_ds1 = pMappa.ActiveMap.DataSets.ImportData(System.IO.Pat h.Combine(Application.StartupPath, "provaRivenditori2.csv"), arrObjCampi, MapPoint.GeoCountry.geoCountryItaly, MapPoint.GeoDelimiter.geoDelimiterSemicolon, 0);
object objNomeParametro = "Fatturato";
object missing = System.Type.Missing;

MapPoint.Field objParametro = m_ds1.Fields.get_Item(ref objNomeParametro);
MapPoint.DataMap dm = m_ds1.DisplayDataMap(MapPoint.GeoDataMapType.geoDa taMapTypeShadedArea, objParametro, MapPoint.GeoShowDataBy.geoShowByZoomLevel, MapPoint.GeoCombineDataBy.geoCombineByAdd, MapPoint.GeoDataRangeType.geoRangeTypeContinuous, MapPoint.GeoDataRangeOrder.geoRangeOrderDefault, 13, 0, missing, missing, missing, missing, missing);

Thanks for help,
Rinaldo
Attached Files
File Type: txt provaRivenditori2_cvs.txt (1.4 KB, 0 views)
File Type: txt codice.txt (1.1 KB, 0 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/problem-geoshowbyzoomlevel-c-6711.html

Posted By For Type Date
Snap to a Road - MapPoint Articles - MP2K Magazine This thread Refback 11-09-2007 10:15 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Problem with geoshowbyzoomlevel in C# rlisario MapPoint 2006/2009 Discussion 0 11-06-2007 06:23 AM
geoShowByZoomLevel - Not zooming? mikechayes MapPoint 2006/2009 Discussion 0 02-13-2003 02:45 PM


All times are GMT -5. The time now is 09:27 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Catered Chalet
Book a catered chalet online through Holiday Hypermarket. It's easy to use the ski holidays search to find the right holiday for you.

Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards

Portugal Holiday
For such a small country, you have many options from which to choose. A Portugal Holiday can include fantastic beaches and stunning scenery. Check out our great deals.

Maldives Holidays
If you are looking for a serene, laid back break in the sunshine, Maldives holidays are the choice for you. Be enchanted by the Maldives!

Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.

Cheap holiday comparison
Travel.co.uk is a comparison service which makes it easy to search and find your cheap holiday options.

Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51