Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Projectwise Set Folder Geospatial Location
    • Sign In

    • State Not Answered
    • Replies 4 replies
    • Subscribers 65 subscribers
    • Views 1254 views
    • Users 0 members are here
    • Geospatial
    • set-pwfolderGeoSpatialLocation
    • ProjectWise Programming
    • ProjectWise PowerShell Modules

    Projectwise Set Folder Geospatial Location

    Jacob Henkel
    Offline Jacob Henkel over 5 years ago

    Hello,

    I'm attempting to assign geospatial locations to folders in my projectwise datasource. It seems like the best way to do this would be by using the 'Set-PWFolderGeoSpatialLocation' cmdlet. The issue I'm having is that I can't seem to generate a WKT in the correct format for projectwise. 

    Currently I've tried generating the WKT from a shapefile using GDAL and Arcpy, as well as from a KML using GDAL ogr2ogr. The WKT results from the KML file seem to give the most promising coordinates for use. 

    Does anybody know the correct way to do this? What's the desired format for WKT when using this command?

    Thanks in advance for your help

    • Sign in to reply
    • Cancel
    Parents
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Mar 23 2018 2:11 PM

      You can use the Get-PWFolderGeoSpatialLocation cmdlet to get the WKT format from a folder which already has the geospatial location set.  The results should resemble the following:  

      Get-PWFolderGeoSpatialLocation -FolderPath 'bsi900 - adelaide tower' -Verbose
      polygon((-96.7289 39.8353 0,-96.7289 31.8462 0,-82.5943 31.8462 0,-82.5943 39.8353 0,-96.7289 39.8353 0))

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Mar 23 2018 2:11 PM

      You can use the Get-PWFolderGeoSpatialLocation cmdlet to get the WKT format from a folder which already has the geospatial location set.  The results should resemble the following:  

      Get-PWFolderGeoSpatialLocation -FolderPath 'bsi900 - adelaide tower' -Verbose
      polygon((-96.7289 39.8353 0,-96.7289 31.8462 0,-82.5943 31.8462 0,-82.5943 39.8353 0,-96.7289 39.8353 0))

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    • Jacob Henkel
      0 Offline Jacob Henkel Mon, Mar 26 2018 12:41 PM in reply to Brian Flaherty

      Thanks for the prompt reply, Brian. 

      I tried that and I notice no obvious difference between the WKT I've generated and the existing WKTs for the folders projectwise. However since I'm using a shapefile to create my WKT, the WKT consists of hundreds to thousands of coordinates. Is there a limit to the size of an acceptable WKT?

      I could send you some snippets of powershell if it'll help. 

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Mon, Mar 26 2018 12:57 PM in reply to Jacob Henkel

      I am not aware of any limits, however, that does not mean one does not exist. Hopefully, someone else can comment on that. Feel free to provide some snippets.   Also, can you use the same shapefile information to create the shape within ProjectWise Explorer? 

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Jacob Henkel
      0 Offline Jacob Henkel Mon, Mar 26 2018 1:45 PM in reply to Brian Flaherty

      I'm not sure how to create the shape within Projectwise Explorer. If you can show me how to do so, I'll give it a shot.

      I have a set of folders in projectwise that represent counties in a state, I'm trying to use county shapefiles to assign a spatial location to these projectwise folders. So any way that I can do that will suffice.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies