Map Maker Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Legacy versions Map Maker
 Legacy questions
 Programmatically assign a style
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Marketal

United Kingdom
24 Posts

Posted - 10/02/2012 :  17:06:19  Show Profile
Hi,

I have inherited a GIS map and associated databse, of many hundreds of polygons.

I've successfully imported the polygons into MM, and the database is linked with the .DRA file.

I have created a 'Style' column in the database, which I want to populate with the style numbers I've created, so that MM paints the polygons with the style numbers I've created.

I've read the Manual chapter 4, and tinkered with the 'Utilities', 'Vector utilities','Actions'. In there I've followed 'Set styles by data' choosing the link and the style column, but it doesn't work, for my existing data. Does it only work for new data or something?

Any help would be gratefully received.

Cheers

Mark

Irvine

United Kingdom
51 Posts

Posted - 11/02/2012 :  09:35:49  Show Profile
I assume that with your project loaded in MapMaker, you have chosen Project Manager/Layers, selected your polygon layer and then clicked the Data link tab and then clicked the Choose Database button, selected the database and selected your unique ID field to be your Link Column.

If you then click the Style tab then the Assign according to tab and Select the option "Database" you will then see all your database fields in the box below. All you have to do is chose the field in which you have put your style numbers then click OK.

Cheers
Irvine
Go to Top of Page

Philippe

France
295 Posts

Posted - 12/02/2012 :  17:04:05  Show Profile
Mark,

The first step might be to make sure that 1 object in the vector layer finds 1 record in the database and 1 record of the database finds 1 object in the vector layer.
This can be checked as follows :
1) Edit - Load file into live layer with data
2) Edit - Live layer data - Show Object/Data linker

Otherwise the styles will not be reflected on the map.

Cheers

Philippe

Edited by - Philippe on 12/02/2012 17:05:06
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Forum Powered By: Snitz Forums 2000 Version 3.4.06
Return to home page