[Geomoose-users] air photo not showing up print when using wms
& reprojecting
Brent Fraser
bfraser at geoanalytic.com
Tue Apr 20 11:55:19 EDT 2010
The print_util.php code appears to be limited to requesting WMS images in the
same projection as the output view/map.
While it looks like you can specify the SRS as a "params" setting in the Map
Source (so the WMS server knows which coordinate system you want), the PHP does
not transform the BBOX coordinates from the view/map projection into the SRS of
the WMS request. And even if it did, it does not project (or even warp) the
returned image to target coordinate system.
As a side note, I think adding a projection='EPSG:4326' option to the Map
source tag allows Geomoose to do a warp (as an approximate re-projection). I
suppose it could have looked for a <param name="SRS" value="EPSG:4326"/>, but
there could be a case where the two need to be different.
So the work-around for now is to use mapserver on your server as a WMS client to
do the re-projection. Unless I missed something...
Best Regards,
Brent Fraser
Mark Volz wrote:
> Len,
>
> It appears that GeoMoose is sending the request for printing in County
> Coordinates, which the lmic server doesn't handle. I wonder if there is a
> way to use the wms directly for viewing the map, but then turn on an
> alternate layer for printing? My other thoughts are that maybe I could use
> UTM-15, then modify the displayCoordinates in main.js to display the county
> coordinates...
>
>
>
> When Viewing the map:
>
> http://geoint.lmic.state.mn.us/cgi-bin/wms?LAYER=&SERVICE=WMS&VERSION=1.1.1&R
> EQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=imag
> e%2Fjpeg&LAYERS=fsa2009&SRS=EPSG%3A4326&BBOX=-95.93229014080966,44.4136078637
> 4146,-95.82239333904468,44.45166020637491&WIDTH=2037&HEIGHT=984
>
>
> When printing the map:
>
> http://geoint.lmic.state.mn.us/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=
> GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG:127083&FORMAT=ima
> ge/jpeg&WIDTH=800&HEIGHT=700&BBOX=494127.36728056,178566.75342801,513259.4773
> 4712,190556.02122377&LAYERS=fsa2009
>
>
> Thanks for your help
>
>
> Mark Volz
> GIS Specialist
> Lyon County, MN
>
> -----Original Message-----
> From: Len Kne [mailto:lkne at houstoneng.com]
> Sent: Monday, April 19, 2010 4:49 PM
> To: 'bfraser at geoanalytic.com'; Mark Volz
> Cc: geomoose-users at lists.sourceforge.net
> Subject: RE: [Geomoose-users] air photo not showing up print when using wms &
> reprojecting
>
> Check the URL in the map-source, it cannot have any params on it as the
> print_util script adds a "?" to the end of the string if it is not there.
> Thus if you have something like:
>
> http://geoint.lmic.state.mn.us/cgi-bin/wms?format=image/jpeg
>
> the script will do this:
>
> http://geoint.lmic.state.mn.us/cgi-bin/wms?format=image/jpeg?
>
> Move the params to tags in the map-source.
>
> For diagnostics, you can uncomment lines 173 and 174 in php/print_util.php to
> get the URL string, feed that into a browser to see if the server returns any
> info.
>
> Len
>
> -----Original Message-----
> From: Brent Fraser [mailto:bfraser at geoanalytic.com]
> Sent: Monday, April 19, 2010 2:17 PM
> To: Mark Volz
> Cc: geomoose-users at lists.sourceforge.net
> Subject: Re: [Geomoose-users] air photo not showing up print when using wms &
> reprojecting
>
> Mark,
>
> I don't have that particular case, but I notice that there is projection
> support in GM v2.2 print_util.php so it is supposed(?) to work.
>
> Since you've got the layer displaying interactively, you have something
> like projection='EPSG:4326' in the map source tag. Perhaps there's a
> limitation by the WMS server on the number of pixels you can request?
> Did you try requesting a print with "Image Quality" = standard (this
> will request less pixels)?
>
> Brent
>
>
>
>> Hi,
>>
>> I noticed that my air photo does not appear to show up my map when I use
>> the
>> "print" tool. I am reprojecting the air photo. I am assuming this is
>> either
>> a bug or a limitation. Has anyone had success with having the air photo
>> show
>> up on the map when using the print tool when the map-source type is wms
>> and
>> it is being reprojected?
>>
>>
>>
>>
>>
>> Mark Volz
>> GIS Specialist
>> Lyon County, MN
>> 507-532-8218
>>
>>
>>
> -----------------------------------------------------------------------------
> -
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>>
> http://p.sf.net/sfu/intel-sw-dev_____________________________________________
> __
>> Geomoose-users mailing list
>> Geomoose-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>
>
>
>
>
> -----------------------------------------------------------------------------
> -
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>
More information about the Geomoose-users
mailing list