[Geomoose-users] Data Projected in wrong area

Joshua Meyer jmeyer at lcsheriff.com
Thu Jul 12 08:20:32 PDT 2012


Thank you very much!  That fixed it!


Joshua Meyer


-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com] 
Sent: Thursday, July 12, 2012 10:04 AM
To: Joshua Meyer
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Data Projected in wrong area

Joshua,

     From your posts, I assume you want to display the data in EPSG:3857 to
allow overlaying your data on to Google/Bing/Yahoo map layers?  And your
data is currently stored in NAD_1983_StatePlane_Missouri_West_FIPS_2403_
**Feet** which (according to SpatialReference) is not defined by EPSG, but
is defined by ESRI.  
EPSG does define the State Plane zone with units of meters, EPSG:26998, but
that won't help.

So the only part of the configuration that needs to define the State plane
zone is in the LAYER's PROJECTION object (it specifies the coordinate system
of the source data).  The MAP's PROJECTION object needs to define the target
coordinate system (EPSG:3857) as mapserver will handle the re-projection
from the source system to the target system.  And the GeoMoose needs only to
be configured for EPSG:3857 since there is no need for it to know about the
coordinate system of the source data.

In your Mapserver map file, the LAYER should have

LAYER
     PROJECTION
         'init=esri:102698'
     END

(note the esri, not epsg as the defining authority).  And the MAP object
should have

MAP
     PROJECTION
         'init=epsg:3857'
     END

Best Regards,
Brent Fraser

On 7/12/2012 8:30 AM, Joshua Meyer wrote:
> I may not totally understand your question.  Here is the Projection 
> from one of the map files.
> 	
> 	WEB
> 		METADATA
> 			'ows_title' 'County'
> 			'ows_srs' 'EPSG:102698 EPSG:26998 EPSG:26915
> EPSG:4326 EPSG:900913 EPSG:3857'
> 			'ows_enable_request' '*'
> 		END
> 	END
>
> 	PROJECTION
> 		'init=epsg:26998'
> 		
> 	END
>
> I have added the projection to the geomoose.html file.
>
> 	<script type="text/javascript"
> src="projections/EPSG26998.js"></script>
>
> Here is the projection file as I copied off of spatialreference.
> 	
> 	Proj4js.defs["EPSG:26998"] = "+proj=tmerc +lat_0=36.16666666666666
> +lon_0=-94.5 +k=0.999941177 +x_0=850000 +y_0=0 +ellps=GRS80 
> ++datum=NAD83 units=m +no_defs";
>
>
>
> Deputy Joshua Meyer #198
> Lafayette County Sheriff's Department GIS
> 107 S. 11th Street
> Lexington Mo, 64067
> Phone: (660) 259-2796 | Fax: (660) 259-2545
> Cell: (660) 259-1234
>
>
> -----Original Message-----
> From: Brent Fraser [mailto:bfraser at geoanalytic.com]
> Sent: Thursday, July 12, 2012 9:18 AM
> To: Joshua Meyer
> Cc: geomoose-users at lists.osgeo.org
> Subject: Re: [Geomoose-users] Data Projected in wrong area
>
> So what does your Mapserver mapfile contain in terms of projections?
>
> Best Regards,
> Brent Fraser
>
> On 7/12/2012 8:08 AM, Joshua Meyer wrote:
>> I have performed all those steps.  If I leave the projection in 
>> mapbook.xml as 3857 my data is projected off the coast of Maine and
> rotated clockwise.
>> The map files I created(modified) are initialized as 26998.  The 
>> settings.ini and mapbook.xml are both 3857. I have changed the 
>> projection in settings.ini to 26998 and this has no effect on how my 
>> data
> is projected.
>> Joshua Meyer
>>
>> -----Original Message-----
>> From: TC Haddad [mailto:tchaddad at gmail.com]
>> Sent: Tuesday, July 10, 2012 3:56 PM
>> To: Joshua Meyer
>> Cc: geomoose-users at lists.osgeo.org
>> Subject: Re: [Geomoose-users] Data Projected in wrong area
>>
>> Make sure to look closely at:
>>
>> http://www.geomoose.org/docs/projections.html
>>
>> In particular, both parts of Step 2.
>>
>> Tanya
>>
>> On Tue, Jul 10, 2012 at 12:03 PM, Joshua Meyer <jmeyer at lcsheriff.com>
> wrote:
>>> I am new to GeoMoose.  I have added my data and have it projecting.
>>> The data is all NAD_1983_StatePlane_Missouri_West_FIPS_2403_Feet.  I 
>>> looked up the information on spatialreference.com and found I needed 
>>> EPSG:26998.  I added the new EPSG as per the GeoMoose instructions 
>>> on http://www.geomoose.org/docs/projections.html.
>>>
>>>
>>>
>>> My data is being projected over Africa.  Does anyone know what I am 
>>> doing wrong?
>>>
>>>
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Josh
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Geomoose-users mailing list
>>> Geomoose-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>>
>> _______________________________________________
>> Geomoose-users mailing list
>> Geomoose-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>
>
>




More information about the Geomoose-users mailing list