AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Decimal places.....and export to shape files.

3 REPLIES 3
Reply
Message 1 of 4
Hubert_Switalski
633 Views, 3 Replies

Decimal places.....and export to shape files.

Ok, I have been running Map 5 for over two weeks now, and I have come across an unusual problem. Everytime I export data to a shape file it appends 8 zeros after the decimal point. It takes an extra step or two to clean all the zeros in Excel. Is there a setting in Acad MAP 5 that would limit the number of decimal places? Usually, I bring in info coverages and shape files, edit them in map, then export them into their appropriate formats. However, I always end up with unneccesarry zeros. If there is a way to resolve this problem it would be greatly appreciated. Any suggestions and ideas are always welcome.

Thanks
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Hubert_Switalski

Hello Hubert,

 

I would like to further research this issue.

Can you replicate the issue with a new drawing that
you export?  I so, please provide a detailed step by step.

 

When you say 8 zeros are being appended, what type
of entities is this happening to?

 

Regards,

 

Mark Christian

GIS Product Support

Autodesk, inc.

 

 

 


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Ok,
I have been running Map 5 for over two weeks now, and I have come across an
unusual problem. Everytime I export data to a shape file it appends 8 zeros
after the decimal point. It takes an extra step or two to clean all the zeros
in Excel. Is there a setting in Acad MAP 5 that would limit the number of
decimal places? Usually, I bring in info coverages and shape files, edit them
in map, then export them into their appropriate formats. However, I always end
up with unneccesarry zeros. If there is a way to resolve this problem it would
be greatly appreciated. Any suggestions and ideas are always welcome.

Thanks

Message 3 of 4

Mark, here's what's happening. I have noticed that this happens with either new or imported drawing (from Arcview 3.2a).
Creating new drawing with a table attached, field set to "real", when I enter the value 32.64 (this is for acres, autocad map displays this as 32.64000000. Integer, point, and other data types are fine. What's even more bizzare is that if I export the drawing to Arcview shapefile, the value is displayed as 32.640000000000000.

Here's a quick step by step (new drawing)
Create table first, define my fields, one of them for acreage is "real", some include text, integers, but these are ok. Then I create my polygons, as each polygon is created, i attach object data to each, fill out the appropriate info, then I export the data to a shapefile.

Imported drawing: i use mostly shape files, the only chages are make in this case are polygon boundary and I may add several new polygons depending on what needs to be updated. In this case acreage field has 5 decimal places, when imported to acad map it adds additional 3 for a total of 8 so 64.32000 looks like 64.32000000.
When exporting back to .shp, acad map adds additional 7 so in arcview when looking at attribute data is see 64.320000000000000.

Thanks for your help, I hope that there is a quick fix to that if not perhaps the new patch will fix this.

Hubert Switalski
Kern Council of Governments
GIS/Technical Support Division
Message 4 of 4
Anonymous
in reply to: Hubert_Switalski

Hello Hubert,

 

Autodesk Map 5 will display object data values in
accordance with the decimal precision assigned to the Autodesk Map 5
project.  The default setting is four decimal places. To change this
setting, go to Format>Units and change the decimal precision.

 

Concerning the variances in the display of the
decimal precision of exported/imported SHP files, I can import the same SHP
file (created in Autodesk Map 5) in ArcView 3.0a and ArcExplorer 2 and the
two programs display differences in the coordinate precision of the same
objects.  Also, re-importing the SHP file into Autodesk Map 5, doesn't
add any further decimal places. It appears that the problem you are seeing can
be attributed to the way the ESRI products are interpreting this
data.

 

Regards,

 

Mark Christian

GIS Product Support

Autodesk, Inc.

 


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Mark,
here's what's happening. I have noticed that this happens with either new or
imported drawing (from Arcview 3.2a).
Creating new drawing with a table
attached, field set to "real", when I enter the value 32.64 (this is for
acres, autocad map displays this as 32.64000000. Integer, point, and other
data types are fine. What's even more bizzare is that if I export the drawing
to Arcview shapefile, the value is displayed as 32.640000000000000.

Here's a quick step by step (new drawing)
Create table first, define my
fields, one of them for acreage is "real", some include text, integers, but
these are ok. Then I create my polygons, as each polygon is created, i attach
object data to each, fill out the appropriate info, then I export the data to
a shapefile.

Imported drawing: i use mostly shape files, the only chages are make in
this case are polygon boundary and I may add several new polygons depending on
what needs to be updated. In this case acreage field has 5 decimal places,
when imported to acad map it adds additional 3 for a total of 8 so 64.32000
looks like 64.32000000.
When exporting back to .shp, acad map adds
additional 7 so in arcview when looking at attribute data is see
64.320000000000000.

Thanks for your help, I hope that there is a quick fix to that if not
perhaps the new patch will fix this.

Hubert Switalski
Kern Council of Governments
GIS/Technical Support
Division

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost