This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Creating a shapefile for WaterGEMS (Water supply network)

Hi there,

I wish to know how to create a shapefile for Water supply distribution network to integrate the same for WaterGEMS.
1. I am at present working on Water Supply Distribution Network. In this project we need to supply water to all villages in Kalburagi district of Karnataka State of India. 
2. For this, I am trying to create a shapefile which contains contours, pipes, junction and reservoir etc. I tried to create a network in WaterGEMS using shapefile i have created but when i import using modelbuilder, it always ends up in creating a single junction or some random numbers in the main interface of watergems. Also the same case when i import elevation (contour shapefile i created using Global Mapper) i get this error "The data source must contain at least one contour"
3. So, I would want to know the procedure of creating shapefile with all the necessary parameters for importing the data to WaterGEMS and use that for my design and optimization. 
4. Any help like video, journals, project report, website, material or any other information on creating a shapefile for this specific purpose would be really helpful.
5. Any details regarding project shall be provided if necessary.
  • Hello Adithya,

    Please see the below wiki article, you may find it useful.
    communities.bentley.com/.../25685.tips-for-preparing-your-gis-data-for-a-successful-modelbuilder-import

    You may also want to go throuh the below article, which explains about importing GIS data using Modelbuilder
    communities.bentley.com/.../2821.building-a-model-using-modelbuilder-tn

    Regards,
    Sushma.

    Regards,

    Sushma Choure

    Bentley Technical Suppport

  • In general, Modelbuilder can work with polyline, point and polygon shapefiles. Check what the shapefiles look like in another application like ArcMap first. If they use a more complex shape type like Polyline Z, consider using available tools to convert to simple polylines, points and polygons.

    Adding the shapefiles as background layers can also help, as it allows you to see what the source data looks like and check its integrity before importing as model elements.

    If possible, upgrading to the latest version of WaterGEMS (currently 08.11.06.113) is a good idea. You can check this under Help>About.

    Re: "when i import using modelbuilder, it always ends up in creating a single junction or some random numbers in the main interface of watergems."

    First, check the "preview" option in the first step of Modelbuilder to check what the data looks like in the tables stored within your shapefiles. Make sure that you use an appropriate Key field in the Field Mapping step that contains unique labels. Use "<label>" for the key field if you would like to use an automatically generated unique ID for each imported element.

    If this post or the articles Sushma provided do not help, consider sending an example shapefile and screenshots of the configuration of each of the modelbuilder steps along with a screenshot of the end result.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

  • Hi thanks for the reply

    Let me first a brief intro to the project

    Objective of the project: To supply water to about 150 villages in a district using surface sources like rivers through gravity and pumping, if necessary

    Method i followed to create a shapefile
    a) Google Earth
    1. First i mark the 150 villages and rename them with the name of the village
    2. I also create the pipes using polyling tool along roads (We have permission to construct pipes only along the roads) and draw the network
    3. I create tank (my river source) as point.
    I now have the network ready. I need to create the shapefiles for these. I save these places as kmz/kml files. (Junctions.kmz = villages, tank.kmz = source, pipes.kmz= branches)

    b) ArcGIS
    1. Using KML to layer i convert these to shapefiles
    2. I make necessary changes like adding fields (shape, elevation, label,FID). I delete the other fields which are unnecessary.

    c) Global Mapper software
    1. Since I know the project area, i use global mapper for creating contours shapefile directly from global mapper. This i use in Trex for giving elevation (which also gives errors like there are no contours in the file)
    Now that i have four shapefiles namely junctions, pipes, tank, contours) i import them to watergems.

    d) WaterGEMS
    1. I use modelbuilder for importing the data
    2. I use preview option to see if the data has been added or not
    3. I assign parameters with respective labels (for e.g. diameter for diameter)
    4. I finish the model and sync with watergems
    But i get only get a single junction and some random numbers on the screen.

    Please let me know if there are any errors or flaws in this procedure. I learnt this procedure from youtube video. The link is as follows:
    www.youtube.com/watch

    Thank you
    Adithya
  • Thank you for your reply

    Sir, kindly refer to the procedure i have followed for creating a shapefile 

    Method i followed to create a shapefile

    a) Google Earth
    1. First i mark the 150 villages and rename them with the name of the village
    2. I also create the pipes using polyling tool along roads (We have permission to construct pipes only along the roads) and draw the network
    3. I create tank (my river source) as point.
    I now have the network ready. I need to create the shapefiles for these. I save these places as kmz/kml files. (Junctions.kmz = villages, tank.kmz = source, pipes.kmz= branches)

    b) ArcGIS
    1. Using KML to layer i convert these to shapefiles
    2. I make necessary changes like adding fields (shape, elevation, label,FID). I delete the other fields which are unnecessary.

    c) Global Mapper software
    1. Since I know the project area, i use global mapper for creating contours shapefile directly from global mapper. This i use in Trex for giving elevation (which also gives errors like there are no contours in the file)
    Now that i have four shapefiles namely junctions, pipes, tank, contours) i import them to watergems.

    d) WaterGEMS
    1. I use modelbuilder for importing the data
    2. I use preview option to see if the data has been added or not
    3. I assign parameters with respective labels (for e.g. diameter for diameter)
    4. I finish the model and sync with watergems
    But i get only get a single junction and some random numbers on the screen.

    Please let me know if there are any errors or flaws in this procedure. I learnt this procedure from youtube video. The link is as follows:

    I am attaching the shapefiles i have created. Please let me know if anything.

    WaterGEMS.rar

    Thank you

    Adithya Shourie

  • Hello Adithya,

    The elements are coming in correctly when imported with ModelBuilder. To see this, in WaterGEMS standalone, go to Tools > Options. In the Drawing tab, change the Symbol Size multiplier to 0.1. Next, open Element Symbology (View > Element Symbology). At the top of the Element Symbology dialog is an button that says Drawing Style when you place you mouse over it:

    Click this and select "GIS". Lastly expand the pipe, junction, and tank entries and uncheck the Label option. If you then zoom in on the drawing, you will see your model layout.

    The issue here is that the scale used in the creation of your shapefile is very small. If you open your shapefile in ArcCatalog, you will see the same layout. Moreover, if you check the X:Y coordinates, you will see that the entire system is smaller that 1 unit of measure in either the north-south or east-west directions. These same coordinates are imported into ModelBuilder as well. 

    This will depend on the units used in the shapefile compared to how it is imported into WaterGEMS. If the unit of measure in the shapefile is kilometers for example, that would needed to be selected as the unit in step 2 of the ModelBuilder process as well (even if it was kilometers, the scale of the model still seems small to represent 150 villages).

    Basically, you will need to double-check the process you are using to create the shapefile to assure that the scale, coordinates, and units are all accurately reflecting what you are trying to model. When you import this into ModelBuilder, the correct units should be used as well.

    Regards,

    Scott

    Answer Verified By: Adithya Shourie