Shapefile Creation

Shapefile Creation

phil_mcdevitt
Advocate Advocate
3,114 Views
9 Replies
Message 1 of 10

Shapefile Creation

phil_mcdevitt
Advocate
Advocate

Hi All,

 

I got asked to provide a catchment boundary as an ESRI .shp file. I was able to the Planning and Analysis Workspace and do this without a problem.  I also assigned the correct co-ordinate system to the boundary. Civil 3D automatically generates a .dbf and .shx file when the .shp file is created. The software we are trying to import the .shp file into is called Good Earth Engine, it is prompting us for a .prj file which is the file that determines the co-ordinate system of the .shp file. Is anyone familiar with this file and can it be generated from Civil 3D? (files attached)

 

Regards

 

Phil

0 Likes
Accepted solutions (1)
3,115 Views
9 Replies
Replies (9)
Message 2 of 10

Pointdump
Consultant
Consultant

Hi Phil,
It's that Rectified Skew orthomorphic projection. >>>Known issue<<<. Probably has to do with Map's inability to include both Azimuth and Rectified Grid Angle parameters.
Workaround will be to MAPEXPORT to a different Coordinate System, maybe UTM, or to add and rename the EPSG:3168 PRJ. Attached.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

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

TerryDotson
Mentor
Mentor

You may be able to create one yourself, using this procedure:

 

  1. Obtain the current system name using the CGEOCS command (variable actually).
  2. Issue the MAPCSLIBRARY command.
  3. Paste the current system name in the search field.
  4. Select the record in the grid list at bottom.
  5. Click the [View] button at the bottom.
  6. Click on [WKT] in the left panel.
  7. Select the text content in the top right (WKT OGC).
  8. Start NOTEPAD or any pure text editor.
  9. Paste the content into the editor.
  10. Save to the same folder and name as the ShapeFile, using the .PRJ file extension.

 

Ask the recipient to confirm the quality of the projection.

Message 4 of 10

jefflambert9091
Advisor
Advisor

I typically use the mapexport command and in the Options tab I check the "Convert Coordinates to:" and just type in the same coordinate system code and it creates the .prj on export. I have brought them back in through mapwspace connection and it reads the system. So does ArcMap. Someone may want to verify this. 

Jeff
Civil 3D 2024
Message 5 of 10

Pointdump
Consultant
Consultant

Hi Jeff,
"...in the Options tab I check the "Convert Coordinates to:" and just type in the same coordinate system code and it creates the .prj on export."
I tried this just now. It still didn't create the PRJ file.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

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

Pointdump
Consultant
Consultant

Hi Terry,
"Select the text content in the top right (WKT OGC)."
That doesn't work with this particular coordinate system in Map. I tried it just now and QGIS doesn't recognize the copy-pasted PRJ. "Unknown CRS". That's why I used the PRJ from EPSG:3168.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

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

jefflambert9091
Advisor
Advisor

Interesting. I was in KY83-SF

Jeff
Civil 3D 2024
Message 8 of 10

jefflambert9091
Advisor
Advisor

I tried it again this morning. It creates a .prj file. When you click on Convert Coordinates to: it defaulted to LL84. That worked as well. See attached. 

Jeff
Civil 3D 2024
Message 9 of 10

ChicagoLooper
Mentor
Mentor
Accepted solution

You can try this:

  1. Select Sempadan Negeri border and change it to a CLOSED POLYLINE.. In Properties Palette+>Misc=>Closed=>Yes  (See Image-1)
  2. Start MAPEXPORT command. On Selection Tab, make your selections as shown on Image-2.
  3. On Options Tab, make your selection as shown on Image-3.
  4. Connect to the new shapefile using the DATA CONNECT palette. (See Image-4)

Image-1Image-1

 

Image-2Image-2

 

Image-3Image-3

 

Image-4Image-4

 

Notes:

  • On the DATA TAB of the MapExport procedure, you may SELECT ATTRIBUTES from (a) Properties or (b) Object Properties. Your choices will populate the shapefile's database file or dbf.
  • On the OPTIONS TAB, choose EPSG 3857 or WGS84.PseudoMercator. This 'Global' coordinate system has units of meters. 
  • You may also 'test' your newly created shapefile by importing it to Google Earth Pro (**Google Earth Pro is NOT Google Maps that you open in your browser, Google Earth Pro is a stand alone program.**) In GE Pro go to File=>Import=>Change File Type to ESRI Shape (*shp)=>Browse to shapefile=>OPEN. The appearance of the imported shp can be controlled on the bottom of the Places Panel on the left, scroll down to Temporary Places.

Chicagolooper

EESignature

Message 10 of 10

phil_mcdevitt
Advocate
Advocate

Thanks Jeff,

 

That worked, sorry for the slow reply, I got tied up and forgot to close this out.

 

Regards

 

Phil

0 Likes