Mapimport object data units

Mapimport object data units

M_c3d
Advisor Advisor
482 Views
3 Replies
Message 1 of 4

Mapimport object data units

M_c3d
Advisor
Advisor

Hi All,

 

Having an issue with the mapimport feature.

 

On import, I have created the object data from the shp file and this has added the name of the polyline to the polyline.  This has worked and the polyline name is the elevation of the polyline.  However when I do a query to set the name of the polyline as the actual polyline elevation, this does not work as the name includes the units.  I.e. '16 m' instead of '16'

 

Any ideas how to get around this and remove the 'm' from the name?

 

Thanks in advance!

 

M_c3d_0-1674667093839.png

 

0 Likes
Accepted solutions (1)
483 Views
3 Replies
Replies (3)
Message 2 of 4

Pointdump
Consultant
Consultant
Accepted solution

Hi @M_c3d,
I had that same question >>>Here<<<.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 3 of 4

ChicagoLooper
Mentor
Mentor

Hi @M_c3d 

 

You have to go back to the SOURCE of the Object Data and that means going back to the shapefile itself, more specifically, the shapeifle's database file (dbf). Trying to look at the MAPIMPORT procedure and the data it captures is not the strategy that'll produce the desired results. 

 

Is it possible to upload the shp, dbf, prj and shx so the elevation DATA can be thoroughly evaluated? If there's an m representing meters, or a tick mark such as ' (apostrophe) then you're looking at a STRING (text). In reality, though, the elevation value is numeric so integers or real (decimal) numbers without any extra characters is the 'data-type' topographic contours need.

 

While inside the shapefile's dbf, the 'DATA COLUMN' will need to be modified or edited to EXCLUDE the offending characters so the value can be numeric instead of string. Of course, this is all speculation since you haven't uploaded the dbf. It just seems easier to get rid of those extra characters in the database file as opposed to editing the object data after it's been captured during MapImport.

 

Once the elevations have been changed from string to numeric, then you can use Alter Properties function that's included in the MapImport command. The Alter Properties portion of mapimport will not only import the ESRI topographic contours as vanilla polylines, but it'll raise those contours to their proper elevations too.

 

Change the data (actually change the data-type) and the MapImport procedure, along w/ Alter Props, will perform flawlessly.   

Chicagolooper

EESignature

Message 4 of 4

M_c3d
Advisor
Advisor

Thanks @Pointdump !

 

The Define Object Data was exactly what I needed, it allowed me to change from character to integer which removed the metres units.  I've now been able to create the contour surface.

 

Appreciate the help.

0 Likes