<div>Thanks!</div>
<div> </div>
<div>Sorry for the typo... i was refering to the correct EPSG...</div>
<div>That was just what I needed... though I got another different workaround for it that got it solved =)</div>
<div>That had nothing to do with my app haha... (though I might think to getting back to solving this through the app... cause I think it would make things a lot quicker...)</div>
<div> </div>
<div>The problem was at the integration between PostGIS and Mapserver... I solved it changing the DATA parameter of my layers at the generated .map file...</div>
<div>(Mapserver was reading 4326... while PostGIS was delivering 900914... that was why I was trying to force PostGIS to get 4326... actually letting the user choose which to enforce)</div>
<div>Right now... I'm letting ogr2ogr assume the Spatial References... so that makes me manually change the .map files...</div>
<div> </div>
<div>I'll see if a can get any workaround that flows better...</div>
<div> </div>
<div>I'm hearing suggestions =)</div>
<div> </div>
<div>Again... thanks!</div>
<div><br> </div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">On 11-05-18 12:44 PM, David Litvak wrote:<br>> I'm Making a front-end application for using ogr2ogr to upload files to a<br>
> PostGIS database<br>><br>> My problem is that when i use the -a_srs, -t_srs or -s_srs... the path for the<br>> proj_lib folder where the EPSG projs are stored is not defined... so i cant<br>> access them...<br>
...<br>> The function that retrieves me the -a_srs, -s_srs or -t_srs string is<br>> toPostGisObject.getSistemaGeografico()<br>> which returns i.e. "-a_srs EPGS:4326 " when WGS84 is selected at the Form...<br>
><br>> When running the process... it retrieves me the following error:<br>> Failed to process SRS definition: EPGS:4326<br>><br>> Is there any Enviroment variable or anything i have to set for redirecting the<br>
> proj_lib path??<br><br>David,<br><br>First, please ensure that you are using EPSG:4326 not EPGS:4326. Second<br>you can set the PROJ_LIB and GDAL_DATA environment variables to point to<br>the relavent directories to ensure that PROJ.4 and GDAL can find their<br>
coordinate system definitions.<br><br>The PROJ_LIB environment variable should point to a directory containing<br>the init file "epsg". The GDAL_DATA environment variable should point to<br>a directory containing the files gcs.csv and pcs.csv.<br>
<br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush | Geospatial Programmer for Rent<br><br><br>-- <br>
</blockquote>
</div>
<div>David Litvak</div>
<div> </div>
<div>ConsultoresGIS</div>
<div><a href="http://www.consultoresgis.com/" target="_blank">www.consultoresgis.com</a></div><br>