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

Possible to get of shape file before import (.net)?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
brianchapmandesign
523 Views, 2 Replies

Possible to get of shape file before import (.net)?

Does MAP API have a way of determining outer limits / min/max coordinates of a shape file prior to actually importing it?  If not, does anyone know any opensource applications with this particular feature? 


"Very funny, Scotty. Now beam down my clothes.
2 REPLIES 2
Message 2 of 3

By "Map API", if you mean the ObjectARX Map API (namespace Autodesk.Gis.Map.ImportExport, or any Autodesk.Gis.Map.xxxxx), then, no, there is no direct APIs exposed to get data in SHP file without actually importing the data into AutoCAD (as AutoCAD native entities).

 

However, with AutoCAD Map, it comes another set of APIs (purely .NET) - Geospatial APIs (previously Platform APIs), which is based on FDO APIs. You can use it to read SHP data as FDO source, thus query its data, be it geometric, or non-geometric attributes.

 

You can even directly use FDO APIs, which comes with AutoCAD Map installation and is required by geospatial APIs. And yes, FDO is open sourced, and there are quite some open-source FDO apps, free or not, that you can find. But if you only need to do as you described, it would be simply enough to write your own code in .NET with FDO APIs, which are already available to any AutoCAD Map installation anyway.

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3

Thank you @norman.yuan that's exactly the direction I needed. Thanks for taking the time to help people, in this particular forum especially.


"Very funny, Scotty. Now beam down my clothes.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report