InfraWorks General Discussion

InfraWorks General Discussion

Reply
Active Contributor
david.lawrence
Posts: 29
Registered: ‎11-24-2002
Message 1 of 2 (349 Views)

Connecting to an image service.

349 Views, 1 Replies
06-18-2012 03:57 PM

 

I am trying to connect to a image service from the Arizona state cartographers office. each time i try to connect i get a message that says “there is no valid source to import” I have a model set up with a smaller area and I use this data in Arc map often so I know the server is working I just can’t get AIM to access the data. If someone can help me get the connection string to work it would be appreciated.

 

This is the link to the sites information on the image data sets. i would like to use the NAIP 2012 imagery.

http://sco.az.gov/imagery.htm

 

 

Employee
konstantin.baumann
Posts: 88
Registered: ‎01-04-2011
Message 2 of 2 (341 Views)

Re: Connecting to an image service.

06-20-2012 09:07 AM in reply to: david.lawrence

I haven't found 2012er data, just 2010...

 

With the following steps I was able to import something into AIM:

 

1) Create a file "NAIP_2010.wms" with the following content:

 

<GDAL_WMS>	
    <Service name="WMS">
        <Version>1.1.1</Version>
        <ServerUrl>http://asco5.asurite.ad.asu.edu/arcgis/services/AZ_2010_Imagery_WMS/MapServer/WMSServer?</ServerUrl>
        <SRS>EPSG:4326</SRS>
        <ImageFormat>image/jpeg</ImageFormat>
        <Transparent>FALSE</Transparent>
        <Layers>0</Layers>
    </Service>	
    <DataWindow>
        <UpperLeftX>-115.429635</UpperLeftX>
        <UpperLeftY>37.396191</UpperLeftY>
        <LowerRightX>-108.533593</LowerRightX>
        <LowerRightY>30.954413</LowerRightY>
        <SizeX>100000</SizeX>
        <SizeY>100000</SizeY>
        <YOrigin>top</YOrigin>
    </DataWindow>	
    <Projection>EPSG:4326</Projection>
    <BandsCount>3</BandsCount>
    <DataType>Byte</DataType>
    <BlockSizeX>2048</BlockSizeX>
    <BlockSizeY>2048</BlockSizeY>
    <MaxConnections>4</MaxConnections>
    <Timeout>60</Timeout>
    <OfflineMode>false</OfflineMode>
    <ClampRequests>false</ClampRequests>
    <ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes>
</GDAL_WMS>

 

I don't know about the values for SizeX and SizeY which should be the number of pixels of the whole image in the highest resolution; so you need to adjust them appropriately; the current values are probably way too low...

 

2) start AIM

3) open or create a model

4) select "import raster"

5) within the file chooser navigate to the folder where your NAIP_2010.wms file is in

6) if it doesn't show up in the file chooser, select "all file types" above the "open" buttom

7) select the NAIP_2010.wms file

8) import the data; this can take some time

 

Maybe this web page could also be of help: http://www.gdal.org/frmt_wms.html

 

Let me know if that worked for you (and what SIzeX and SizeY values would be correct)... :-)

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.