[mapserver-users] On the fly Projection
Richard Greenwood
richard.greenwood at gmail.com
Thu Jul 26 13:47:13 PDT 2012
It looks like your imagery is EPSG:2246 and your
SBET_Trajectory_Source is EPSG:4269
So keep it simple to start with:
1. Set your map to EPSG:2246
2. Set your map extents to the ones for the imagery 1532496.038000,
197080.590000 1543965.215000, 203467.824241
3. Set your SBET_Trajectory_Source to EPSG:4269
See if you get acceptable results.
Rich
On Thu, Jul 26, 2012 at 1:51 PM, Sowmya Tiramdasu
<stiramdasu at qcoherent.com> wrote:
> Hi Jeff,
>
> Thanks for the references you provided . I gave the output projections
> under the MAP section and the LAYER Projection under the layer section. But
> I am not sure what is the error. The projection is not happening correctly.
> I do not see any specific errors in the log file also.
>
> Below are the details of my two different shape files. I want the
> SBET_Trajectory_source to be projected in to the Photogrammetric_point's
> projection.
>
> ----------------------------------------------------------------------------
> -----------
> Layer name: Photogrammetric_Point
> Geometry: 3D Point
> Feature Count: 33
> Extent: (1532496.038000, 197080.590000) - (1543965.215000, 203467.824241)
> Layer SRS WKT:
> PROJCS["NAD_1983_StatePlane_Kentucky_North_FIPS_1601_Feet",
> GEOGCS["GCS_North_American_1983",
> DATUM["North_American_Datum_1983",
> SPHEROID["GRS_1980",6378137,298.257222101004]],
> PRIMEM["Greenwich",0],
> UNIT["Degree",0.0174532925199433]],
> PROJECTION["Lambert_Conformal_Conic_2SP"],
> PARAMETER["False_Easting",1640416.66666667],
> PARAMETER["False_Northing",0],
> PARAMETER["Central_Meridian",-84.25],
> PARAMETER["Standard_Parallel_1",37.9666666666667],
> PARAMETER["Standard_Parallel_2",38.9666666666667],
> PARAMETER["Latitude_Of_Origin",37.5],
> UNIT["Foot_US",0.304800609601219]]
> Name: String (254.0)
> Desc: String (254.0)
> EntityType: String (254.0)
> EntTypDesc: String (254.0)
> ID: Real (11.0)
> GUID: String (254.0)
> LyrName: String (254.0)
> LyrDesc: String (254.0)
> CentroidX: Real (18.9)
> CentroidY: Real (18.9)
> CentroidZ: Real (18.9)
>
> C:\ms4w\tools\gdal-ogr>ogrinfo
> C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source
> .shp SBET_Trajectory_Source -summary
> INFO: Open of `C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: SBET_Trajectory_Source
> Geometry: 3D Line String
> Feature Count: 1
> Extent: (-84.760205, 37.880771) - (-84.333587, 38.208327)
> Layer SRS WKT:
> GEOGCS["GCS_North_American_1983",
> DATUM["North_American_Datum_1983",
> SPHEROID["GRS_1980",6378137,298.257222101004]],
> PRIMEM["Greenwich",0],
> UNIT["Degree",0.0174532925199433]]
> Name: String (254.0)
> Desc: String (254.0)
> EntityType: String (254.0)
> EntTypDesc: String (254.0)
> ID: Real (11.0)
> GUID: String (254.0)
> LyrName: String (254.0)
> LyrDesc: String (254.0)
> NumVerts: Real (11.0)
> EntLength: Real (18.9)
> LengthUnit: String (254.0)
> ----------------------------------------------------------------------------
> ----------------------------
> The projections I mentioned in my mapfile are :
>
> The output projection : PROJECTION
> "proj=utm"
> "zone=17"
> "ellps=WGS84"
> "datum=WGS84"
> "units=m"
> "no_defs"
> END
>
> SBET_Trajectory_Source projection : PROJECTION
> "proj=longlat"
> "ellps=GRS80"
> "datum=NAD83"
> "no_defs"
> END
>
> --------------------------------------------------------------
>
> Can you identify where I am going wrong ? I am kind of stuck , don't have
> any clues why it is not working. Thanks again for all your time and patience
> in helping me.
>
> Thanks,
> Sowmya.
> _______________________________
> Sowmya Tiramdasu
> QCoherent Software
> 9668 Madison Blvd., Suite 202
> Madison, AL 35758
> (256) 461-8289 Telephone
> (256) 461-8249 Fax
> www.geocue.com
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna
> Sent: Thursday, July 26, 2012 10:03 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] On the fly Projection
>
> Hello Sowmya,
>
> A really helpful site for searching for projections and then different
> syntax examples for them is: http://spatialreference.org
>
> Yours might be here: http://spatialreference.org/ref/sr-org/15/
>
> Have fun!
>
> -jeff
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 12-07-26 11:22 AM, Sowmya Tiramdasu wrote:
>> Hi,
>>
>>
>>
>> I have a projection given as follows :
>>
>>
>>
>>
> GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS
> _1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174
> 532925199433]]
>>
>>
>>
>> How can I specify this under the PROJECTION in mapfile and also I would
>> like to project this on to epsg : 32617. How can I achieve this.
>>
>>
>>
>> Any help will be appreciated. Thanks in advance!
>>
>>
>>
>> Thanks,
>>
>> Sowmya.
>>
>> *_______________________________*
>>
>> Sowmya Tiramdasu
>>
>> *QCoherent Software*
>>
>> 9668 Madison Blvd., Suite 202
>>
>> Madison, AL 35758
>>
>> (256) 461-8289 Telephone
>>
>> (256) 461-8249 Fax
>>
>> www.geocue.com <http://www.geocue.com/>
>>
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
More information about the MapServer-users
mailing list