Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Import partial shapefile

Anonymous

Import partial shapefile

Anonymous
Not applicable

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?

 

0 Likes
Reply
Accepted solutions (1)
1,154 Views
4 Replies
Replies (4)

Anonymous
Not applicable

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

Gary_Braun
Collaborator
Collaborator
Accepted solution

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.

Anonymous
Not applicable
Thank you! Worked perfectly!
0 Likes

Anonymous
Not applicable
Hi,

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

Rob
0 Likes