Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Adding Shapefile to existing WEAP Model"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Devinder Dhillon

Subject: Adding Shapefile to existing WEAP Model   
Posted: 12/1/2015 Viewed: 25799 times
Hello,

I am having trouble adding a shapefile of CA rivers to an existing WEAP Model. I changed the coordinates as described in the User's Manual but the shapefile still does not appear.

Thank you in advance for your assistance.


Devinder
Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25786 times
If you're using GIS:

To project your shapefile in GIS, select the project tool (ArcToolbox/Data Management Tools/Projections and Transformations/Project

Input Dataset or Feature Class: [Your shapefile]
Input Coordinate System [whatever you're using - should auto populate]
Output Dataset or Feature Class [I usually leave as the default because I've had trouble trying to save it where I want the first time. These instructions include how to do that, later]
Output Coordinate system: [open up the menu and go to Geographic Coordinate Systems/World/WGS1984]

It will take a little while for the tool to work.

When you see the new shapefile appear on your map, right click it and go to Data/Export Data.

In the window that appears, select "This layer's source data" and save it into your WEAP Area in My documents. So on my computer it's C:\Users\Stephanie\Documents\WEAP Areas\[name of my area]. While you've opened up the window to navigate to this location, make sure the "Save as type" says "shapefile."

Then go into WEAP and right click on the small section of the schematic where the shapefiles are listed, and select + Add Vector Layer (or + Add Raster Layer, whichever) and navigate to your shapefile.

Let me know if it works.
Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25779 times
Thank you for the detailed instructions, Stephanie.

Unfortunately, it still did not work. Any additional suggestions?

Thank you for your help.

Devinder
Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25772 times
Are you using GIS?

Do you have other shapefiles already in your model?
Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25766 times
Yes, I used GIS to project the shapefile to WGS1984.

Yes, there is other shapefiles in the model. Only one is visible which is the CA Hydrologic Regions. The coordinate system is undefined. This might be the problem?


Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25756 times
Ah, the other shapefiles are most likely the problem. How could they be projected if they are undefined? Very confusing! It could be that they are a sub-category of WGS1984 (I have seen this before), because once you put in a sub-category, you can't use the non-subcategory version. It's like it changes the WEAP data frame, to make a GIS analogy. So, try to see if you can figure out what the other shapefiles are. I assume these are shapefiles you or a partner added in, not the default ones that came with WEAP, right?
Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/2/2015 Viewed: 25751 times
The CA HR shapefile projection is undefined. This was added by one of us. The default WEAP country shape file has the WGS1984 projection but is not visible. Only the CA HR shapefile is visible in our WEAP model. I removed the projection for the shapefile I want to add (CA Rivers) but no luck. Any other suggestions?
Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/3/2015 Viewed: 25738 times
Hi Devinder,

If the shapefile was showing on your screen, it had to have some sort of coordinate system. If you have built WEAP elements on top of that shapefile, they are now in that coordinate system, and that's why you can't project something different. I recommend trying to figure it out what your original shapefile's coordinate system was.

If you have that data layer still in GIS somewhere, you can try following the instructions here:

http://gis.stackexchange.com/questions/7839/identifying-coordinate-system-of-shapefile-when-unknown


Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/8/2015 Viewed: 25684 times
Sounds good. I'm still trying to figure out the coordinate system of the shapefile.

WEAP does not know the coordinate system the model is in?
Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/9/2015 Viewed: 25664 times
Unfortunately WEAP cannot tell you the name of the projection, you will have to find that in GIS, or perhaps your shapefile came with a .prj file that tells the name of the projection. You need the name if you're going to project your other shapefiles into the coordinate system so they can be displayed in your WEAP model. It sounds like you have to do that now because your WEAP elements have assumed that same coordinate system as your first shapefile and there's no way to change the projection of the WEAP elements once they are projected.
Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/14/2015 Viewed: 25621 times
Hello Stephanie,

I was finally able to figure it out. I projected the new shapefiles to the same projection and it worked!

Thank you for all the help!

Happy Holidays!

Devinder
Ms. Stephanie Galaitsi

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/15/2015 Viewed: 25612 times
Which projection was it? How did you figure it out?
Mr. Devinder Dhillon

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 12/15/2015 Viewed: 25605 times
I contacted the person who created the shapefile and they provided the original coordinate system. I tried following those instructions for the GIS forum but no luck. Luckily I was able to get hold of the person that created the shapefile.

Once again thank you for help!

Devinder
Eng. Reynner Raymundo Flores Estrada

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 1/22/2020 Viewed: 13064 times
Thank you for the all detailed information. I had the same problem, but I can solve after to save the .shp in the WEAP Areas Folder as you advice.
After to try many times I could solve the problem.
Have a nice day.
Greetings.

Mr. Muluken Alemu

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 4/13/2020 Viewed: 12578 times
Dear Stephanie; you are very helpful person it took me short time which I was trying for last two days. Appreciate and thank you so much.
Will benefit more from you while gong through all steps till successfully reached the end.
Happy that you are with us.
Regards
Muluken
Mr. Hatim Ahmed

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 11/7/2023 Viewed: 3353 times
Unfortunately it's not working.
I'm trying to add a point shapefile, but after doing all steps I cannot see it in the schematic diagram.
Mr. Hatim Ahmed

Subject: Re: Adding Shapefile to existing WEAP Model   
Posted: 11/8/2023 Viewed: 3334 times
Okay. It works now on an empty model. but it's not working on the existing model.
Topic "Adding Shapefile to existing WEAP Model"