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: 

Import partial shapefile

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
1118 Views, 4 Replies

Import partial shapefile

Hello,

 

Not sure what the best approach is here.

 

I have a huge shapefile from Florida GIS website. The issue I am having is, I want to crop a portion of this file because I really only need a small section. I tried the maptrim command and I have left my computer running for 48 hours and it still has not finished! I tried on two different computers with the same results (16GB RAM, i7 processor, SSD drive).

 

Is there an easier way of accomplishing this?

 

4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Hi,

if you have larger data sets you might be better off to a bit of "preprocessing" in order to reduce the data set.
In your case I see two approaches:

 

1) Connect to SHP vial via DataConnect(FDO)
2) Load features roughly only for extent you are interested in (either define QueryWindows before adding data to Map or afterwards in context menu of Layer add spatial filter)
3) export the reduced data set by choosing "Save layer as SDF" in context menu
4) import SFD via _mapimport
5) trim

 

or

 

1) import SHP data set (_mapimport)
2) save and close drawing
3) attach saved drawing to Map (_adedrawings)
4) query drawing - spatial query for area of interest (_adequery)
5) detach drawing
6) save drawing
7) trim

 

Good Luck, Rob

Message 3 of 5
Gary_Braun
in reply to: Anonymous

If you are referinging them through FDO then use Add to Map with Query and use the Locate on Map tool to define your area.

 

If you are importing them using MAPIMPORT then there is a spatial filter in the upper right of the dialog box, just define the window on screen.

 

Either method should give you want you need.

Message 4 of 5
Anonymous
in reply to: Gary_Braun

Thank you! Worked perfectly!
Message 5 of 5
Anonymous
in reply to: Anonymous

Hi,

sorry, didn't remember that there is a spatial filter available when importing.

Rob

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

Post to forums  

Autodesk Design & Make Report